iommu/arm-smmu-v3: Constify arm_smmu_mmu_notifier_ops
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Sat, 4 Dec 2021 22:33:01 +0000 (23:33 +0100)
committerWill Deacon <will@kernel.org>
Tue, 14 Dec 2021 14:44:22 +0000 (14:44 +0000)
commit17d9a4b43b284c333bf2c0c347da28bf22fe7a97
treee64881864bda3767b617347cec69e0f0d3bd3167
parentcd76990c94bb2239e1bcf38087ce4be0512c1232
iommu/arm-smmu-v3: Constify arm_smmu_mmu_notifier_ops

The only usage of arm_smmu_mmu_notifier_ops is to assign its address to
the ops field in the mmu_notifier struct, which is a pointer to const
struct mmu_notifier_ops. Make it const to allow the compiler to put it
in read-only memory.

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Reviewed-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Link: https://lore.kernel.org/r/20211204223301.100649-1-rikard.falkeborn@gmail.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-sva.c