Skip to content
Commit 17d9a4b4 authored by Rikard Falkeborn's avatar Rikard Falkeborn Committed by Will Deacon
Browse files

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: default avatarRikard Falkeborn <rikard.falkeborn@gmail.com>
Reviewed-by: default avatarJean-Philippe Brucker <jean-philippe@linaro.org>
Link: https://lore.kernel.org/r/20211204223301.100649-1-rikard.falkeborn@gmail.com


Signed-off-by: default avatarWill Deacon <will@kernel.org>
parent cd76990c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment