summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2024-04-22 21:52:31 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2024-04-30 21:55:26 +1000
commit236a4c63491784ae4814100cca47bc3645c776df (patch)
tree2a3692d9e15f90cdadc262c1076bfcd18d7df34d /arch
parent84030aacf127d000180fa3cb4b589d8ab1b0d46b (diff)
downloadlinux-stable-236a4c63491784ae4814100cca47bc3645c776df.tar.gz
linux-stable-236a4c63491784ae4814100cca47bc3645c776df.tar.bz2
linux-stable-236a4c63491784ae4814100cca47bc3645c776df.zip
powerpc: Mark memory_limit as initdata
The `memory_limit` variable should only be used during boot, enforce that by marking it initdata. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://msgid.link/20240422115231.1769984-1-mpe@ellerman.id.au
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/mm/mem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/mm/mem.c b/arch/powerpc/mm/mem.c
index 3a440004b97d..12316ac66e7e 100644
--- a/arch/powerpc/mm/mem.c
+++ b/arch/powerpc/mm/mem.c
@@ -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);