Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit de56fb19 authored by Will Deacon's avatar Will Deacon Committed by Christoffer Dall
Browse files

KVM: vgic: declare probe function pointer as const



We extract the vgic probe function from the of_device_id data pointer,
which is const. Kill the sparse warning by ensuring that the local
function pointer is also marked as const.

Cc: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
Signed-off-by: default avatarChristoffer Dall <christoffer.dall@linaro.org>
parent 1fa451bc
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -1557,7 +1557,7 @@ static const struct of_device_id vgic_ids[] = {
int kvm_vgic_hyp_init(void)
int kvm_vgic_hyp_init(void)
{
{
	const struct of_device_id *matched_id;
	const struct of_device_id *matched_id;
	int (*vgic_probe)(struct device_node *,const struct vgic_ops **,
	const int (*vgic_probe)(struct device_node *,const struct vgic_ops **,
				const struct vgic_params **);
				const struct vgic_params **);
	struct device_node *vgic_node;
	struct device_node *vgic_node;
	int ret;
	int ret;