KVM: arm64: Constify kvm_io_gic_ops
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Sat, 4 Dec 2021 21:35:18 +0000 (22:35 +0100)
committerMarc Zyngier <maz@kernel.org>
Mon, 6 Dec 2021 08:34:06 +0000 (08:34 +0000)
commit636dcd0204599f94680f8f87b46cef7c66034ac0
tree47f3bb187c6a9fe172003c9b361fd1282ffbfd96
parent00e228b31596c6bf5f08b5ef76f80cb26e620f02
KVM: arm64: Constify kvm_io_gic_ops

The only usage of kvm_io_gic_ops is to make a comparison with its
address and to pass its address to kvm_iodevice_init() which takes a
pointer to const kvm_io_device_ops as input. Make it const to allow the
compiler to put it in read-only memory.

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20211204213518.83642-1-rikard.falkeborn@gmail.com
arch/arm64/kvm/vgic/vgic-mmio.c
arch/arm64/kvm/vgic/vgic-mmio.h