Skip to content

Commit

Permalink
powerpc: Mark memory_limit as initdata
Browse files Browse the repository at this point in the history
The `memory_limit` variable should only be used during boot, enforce
that by marking it initdata.

Signed-off-by: Michael Ellerman <[email protected]>
Link: https://msgid.link/[email protected]
  • Loading branch information
mpe committed Apr 30, 2024
1 parent 84030aa commit 236a4c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/mm/mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

#include <mm/mmu_decl.h>

unsigned long long memory_limit;
unsigned long long memory_limit __initdata;

unsigned long empty_zero_page[PAGE_SIZE / sizeof(unsigned long)] __page_aligned_bss;
EXPORT_SYMBOL(empty_zero_page);
Expand Down

0 comments on commit 236a4c6

Please sign in to comment.