linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm,mm_init: Mark set_high_memory as _init
@ 2025-05-06 11:10 Oscar Salvador
  2025-05-06 11:13 ` Oscar Salvador
  2025-05-06 17:10 ` Mike Rapoport
  0 siblings, 2 replies; 5+ messages in thread
From: Oscar Salvador @ 2025-05-06 11:10 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Mike Rapoport, linux-mm, linux-kernel, Oscar Salvador

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>
---
 mm/mm_init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/mm_init.c b/mm/mm_init.c
index 80a5370ac6ab..5efec0399e18 100644
--- a/mm/mm_init.c
+++ b/mm/mm_init.c
@@ -1785,7 +1785,7 @@ static bool arch_has_descending_max_zone_pfns(void)
 	return IS_ENABLED(CONFIG_ARC) && !IS_ENABLED(CONFIG_ARC_HAS_PAE40);
 }
 
-static void set_high_memory(void)
+static void __init set_high_memory(void)
 {
 	phys_addr_t highmem = memblock_end_of_DRAM();
 
-- 
2.49.0



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

end of thread, other threads:[~2025-05-06 17:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-05-06 11:10 [PATCH] mm,mm_init: Mark set_high_memory as _init Oscar Salvador
2025-05-06 11:13 ` Oscar Salvador
2025-05-06 17:08   ` Mike Rapoport
2025-05-06 17:42     ` Oscar Salvador
2025-05-06 17:10 ` Mike Rapoport

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox