diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2024-08-21 18:07:45 +1000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2024-09-05 22:29:31 +1000 |
commit | 8589cdf0cf0b0a03d2285fc46ada2f28113f8620 (patch) | |
tree | 86e4c411194a18d1f5b7abb766a0cd88c87a9e24 /arch/powerpc | |
parent | 19f1bc3fb55452739dd3d56cfd06c29ecdbe3e9f (diff) |
powerpc/64s: Make mmu_hash_ops __ro_after_init
The mmu_hash_ops are only assigned to during boot, so mark them
__ro_after_init to prevent any further modification.
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240821080745.872151-1-mpe@ellerman.id.au
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/mm/book3s64/hash_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/mm/book3s64/hash_utils.c b/arch/powerpc/mm/book3s64/hash_utils.c index 6727a15ab94f..e1eadd03f133 100644 --- a/arch/powerpc/mm/book3s64/hash_utils.c +++ b/arch/powerpc/mm/book3s64/hash_utils.c @@ -125,7 +125,7 @@ int mmu_ci_restrictions; #endif static u8 *linear_map_hash_slots; static unsigned long linear_map_hash_count; -struct mmu_hash_ops mmu_hash_ops; +struct mmu_hash_ops mmu_hash_ops __ro_after_init; EXPORT_SYMBOL(mmu_hash_ops); /* |