Skip to content

Commit 42e31f0

Browse files
osalvadorvilardagarppt
authored andcommitted
mm,mm_init: Mark set_high_memory as __init
set_high_memory() touches arch_zone_lowest_possible_pfn which is marked as __initdata, which creates a section mismatch. Since the only user of the function is free_area_init() which is also marked as __init, mark set_high_memory() as __init as well. Signed-off-by: Oscar Salvador <osalvador@suse.de> Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202505060901.Qcs06UoB-lkp@intel.com/ Link: https://lore.kernel.org/r/20250506111012.108743-1-osalvador@suse.de Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
1 parent 92a09c4 commit 42e31f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mm/mm_init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1786,7 +1786,7 @@ static bool arch_has_descending_max_zone_pfns(void)
17861786
return IS_ENABLED(CONFIG_ARC) && !IS_ENABLED(CONFIG_ARC_HAS_PAE40);
17871787
}
17881788

1789-
static void set_high_memory(void)
1789+
static void __init set_high_memory(void)
17901790
{
17911791
phys_addr_t highmem = memblock_end_of_DRAM();
17921792

0 commit comments

Comments
 (0)