Skip to contentSkip to conversation

x86-64: fix two modpost warnings in mm/init_64.c

PATCH Applied Jan Beulich 2 participants 2 messages Aug 21, 2008 – Aug 22, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86-64: fix two modpost warnings in mm/init_64.c

early_io{re,un}map() are __init and hence can't be called from __meminit functions.

---
 arch/x86/mm/init_64.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/x86/mm/init_64.c +2 -2
@@ -241,7 +241,7 @@ static unsigned long __initdata table_st
 static unsigned long __meminitdata table_end;
 static unsigned long __meminitdata table_top;
 
-static __meminit void *alloc_low_page(unsigned long *phys)
+static __ref void *alloc_low_page(unsigned long *phys)
 {
 	unsigned long pfn = table_end++;
 	void *adr;
@@ -262,7 +262,7 @@ static __meminit void *alloc_low_page(un
 	return adr;
 }
 
-static __meminit void unmap_low_page(void *adr)
+static __ref void unmap_low_page(void *adr)
 {
 	if (after_bootmem)
 		return;
Applied
#1 lore raw
Quoted 2 lines · Jan Beulich

early_io{re,un}map() are __init and hence can't be called from __meminit functions.

applied to tip/x86/urgent - thanks Jan!

Ingo