]> Git Repo - J-linux.git/commitdiff
arm64: mm: apply __ro_after_init to memory_limit
authorPeng Fan <[email protected]>
Wed, 15 Dec 2021 06:45:58 +0000 (14:45 +0800)
committerCatalin Marinas <[email protected]>
Thu, 20 Jan 2022 09:15:16 +0000 (09:15 +0000)
This variable is only set during initialization, so mark with
__ro_after_init.

Signed-off-by: Peng Fan <[email protected]>
Reviewed-by: David Hildenbrand <[email protected]>
Acked-by: Ard Biesheuvel <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Catalin Marinas <[email protected]>
arch/arm64/mm/init.c

index a8834434af99ae0bdbaa4b5f36d522b4370702bf..db63cc885771a527b37f91e1eff0bf1f9432dbee 100644 (file)
@@ -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.
This page took 0.053446 seconds and 4 git commands to generate.