linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] powerpc: Mark memory_limit as initdata
@ 2024-04-22 11:52 Michael Ellerman
  2024-05-03 10:41 ` Michael Ellerman
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Ellerman @ 2024-04-22 11:52 UTC (permalink / raw)
  To: linuxppc-dev

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>
---
 arch/powerpc/mm/mem.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
-- 
2.44.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] powerpc: Mark memory_limit as initdata
  2024-04-22 11:52 [PATCH] powerpc: Mark memory_limit as initdata Michael Ellerman
@ 2024-05-03 10:41 ` Michael Ellerman
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Ellerman @ 2024-05-03 10:41 UTC (permalink / raw)
  To: linuxppc-dev, Michael Ellerman

On Mon, 22 Apr 2024 21:52:31 +1000, Michael Ellerman wrote:
> The `memory_limit` variable should only be used during boot, enforce
> that by marking it initdata.
> 
> 

Applied to powerpc/next.

[1/1] powerpc: Mark memory_limit as initdata
      https://git.kernel.org/powerpc/c/236a4c63491784ae4814100cca47bc3645c776df

cheers

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-05-03 10:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-22 11:52 [PATCH] powerpc: Mark memory_limit as initdata Michael Ellerman
2024-05-03 10:41 ` Michael Ellerman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).