Skip to content

Commit bb425a7

Browse files
MrVanctmarinas
authored andcommitted
arm64: mm: apply __ro_after_init to memory_limit
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]>
1 parent 3364c6c commit bb425a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm64/mm/init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ int pfn_is_map_memory(unsigned long pfn)
172172
}
173173
EXPORT_SYMBOL(pfn_is_map_memory);
174174

175-
static phys_addr_t memory_limit = PHYS_ADDR_MAX;
175+
static phys_addr_t memory_limit __ro_after_init = PHYS_ADDR_MAX;
176176

177177
/*
178178
* Limit the memory size that was specified via FDT.

0 commit comments

Comments
 (0)