All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] arm64: mm: apply __ro_after_init to memory_limit
@ 2021-12-15  6:45 ` Peng Fan (OSS)
  0 siblings, 0 replies; 26+ messages in thread
From: Peng Fan (OSS) @ 2021-12-15  6:45 UTC (permalink / raw)
  To: catalin.marinas, will, rppt
  Cc: akpm, david, anshuman.khandual, geert+renesas, linux-arm-kernel,
	linux-kernel, linux-imx, Peng Fan

From: Peng Fan <peng.fan@nxp.com>

This variable is only set during initialization, so mark with
__ro_after_init.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
 arch/arm64/mm/init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/mm/init.c b/arch/arm64/mm/init.c
index a8834434af99..db63cc885771 100644
--- a/arch/arm64/mm/init.c
+++ b/arch/arm64/mm/init.c
@@ -172,7 +172,7 @@ int pfn_is_map_memory(unsigned long pfn)
 }
 EXPORT_SYMBOL(pfn_is_map_memory);
 
-static phys_addr_t memory_limit = PHYS_ADDR_MAX;
+static phys_addr_t memory_limit __ro_after_init = PHYS_ADDR_MAX;
 
 /*
  * Limit the memory size that was specified via FDT.
-- 
2.25.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2022-01-21  2:30 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-15  6:45 [PATCH 1/2] arm64: mm: apply __ro_after_init to memory_limit Peng Fan (OSS)
2021-12-15  6:45 ` Peng Fan (OSS)
2021-12-15  6:45 ` [PATCH 2/2] arm64: mm: support bootparam max_addr Peng Fan (OSS)
2021-12-15  6:45   ` Peng Fan (OSS)
2021-12-15  7:32   ` Ard Biesheuvel
2021-12-15  7:32     ` Ard Biesheuvel
2021-12-15  7:59     ` Peng Fan
2021-12-15  7:59       ` Peng Fan
2021-12-15  9:24       ` Mike Rapoport
2021-12-15  9:24         ` Mike Rapoport
2021-12-15  9:30         ` Peng Fan
2021-12-15  9:30           ` Peng Fan
2021-12-15  9:53           ` Mike Rapoport
2021-12-15  9:53             ` Mike Rapoport
2021-12-15 12:05             ` Peng Fan
2021-12-15 12:05               ` Peng Fan
2021-12-16 14:19               ` Mike Rapoport
2021-12-16 14:19                 ` Mike Rapoport
2021-12-15  7:30 ` [PATCH 1/2] arm64: mm: apply __ro_after_init to memory_limit Ard Biesheuvel
2021-12-15  7:30   ` Ard Biesheuvel
2021-12-15 10:02 ` David Hildenbrand
2021-12-15 10:02   ` David Hildenbrand
2022-01-20 15:56 ` (subset) " Catalin Marinas
2022-01-20 15:56   ` Catalin Marinas
2022-01-21  2:28 ` Anshuman Khandual
2022-01-21  2:28   ` Anshuman Khandual

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.