Skip to content

Commit 8589cdf

Browse files
committed
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
1 parent 19f1bc3 commit 8589cdf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/powerpc/mm/book3s64/hash_utils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ int mmu_ci_restrictions;
125125
#endif
126126
static u8 *linear_map_hash_slots;
127127
static unsigned long linear_map_hash_count;
128-
struct mmu_hash_ops mmu_hash_ops;
128+
struct mmu_hash_ops mmu_hash_ops __ro_after_init;
129129
EXPORT_SYMBOL(mmu_hash_ops);
130130

131131
/*

0 commit comments

Comments
 (0)