]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm,mm_init: Mark set_high_memory as __init
authorOscar Salvador <osalvador@suse.de>
Tue, 6 May 2025 11:10:12 +0000 (13:10 +0200)
committerMike Rapoport (Microsoft) <rppt@kernel.org>
Tue, 6 May 2025 17:07:25 +0000 (20:07 +0300)
commit42e31f0daf80d9f7bc4ab4000f2795ec3ddf5206
tree90c9d25a5428588e51d7d8f994ad19c3e3d5cdb0
parent92a09c47464d040866cf2b4cd052bc60555185fb
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>
mm/mm_init.c