Skip to contentSkip to conversation

i386: Fix memory hotplug related MODPOST generated warning

PATCH New Vivek Goyal 1 participant 1 message Dec 19, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 5/5 i386: Fix memory hotplug related MODPOST generated warning

o Fix modpost generated warning.

WARNING: vmlinux - Section mismatch: reference to .init.text: from .text between 'add_one_highpage_hotplug' (at offset 0xc0113d3f) and 'online_page'

---

 arch/i386/mm/init.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/i386/mm/init.c renamed from arch/i386/mm/init.c~i386-memory-hotplug-related-warnings +2 -2
diff -puN arch/i386/mm/init.c~i386-memory-hotplug-related-warnings arch/i386/mm/init.c
@@ -283,7 +283,7 @@ void __init add_one_highpage_init(struct
 		SetPageReserved(page);
 }
 
-static int add_one_highpage_hotplug(struct page *page, unsigned long pfn)
+static int __meminit add_one_highpage_hotplug(struct page *page, unsigned long pfn)
 {
 	free_new_highpage(page);
 	totalram_pages++;
@@ -300,7 +300,7 @@ static int add_one_highpage_hotplug(stru
  * has been added dynamically that would be
  * onlined here is in HIGHMEM
  */
-void online_page(struct page *page)
+void __meminit online_page(struct page *page)
 {
 	ClearPageReserved(page);
 	add_one_highpage_hotplug(page, page_to_pfn(page));

_