mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 5/5] i386: Fix memory hotplug related MODPOST generated warning
@ 2006-12-19  5:17 Vivek Goyal
  0 siblings, 0 replies; only message in thread
From: Vivek Goyal @ 2006-12-19  5:17 UTC (permalink / raw)
  To: linux kernel mailing list, Fastboot mailing list
  Cc: Morton Andrew Morton, Andi Kleen, Sam Ravnborg, Dave Hansen



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'

Signed-off-by: Vivek Goyal <vgoyal@in.ibm.com>
---

 arch/i386/mm/init.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff -puN arch/i386/mm/init.c~i386-memory-hotplug-related-warnings arch/i386/mm/init.c
--- linux-2.6.19-rc1-reloc/arch/i386/mm/init.c~i386-memory-hotplug-related-warnings	2006-12-15 14:09:05.000000000 +0530
+++ linux-2.6.19-rc1-reloc-root/arch/i386/mm/init.c	2006-12-15 14:09:05.000000000 +0530
@@ -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));
_

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-12-19  5:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-19  5:17 [PATCH 5/5] i386: Fix memory hotplug related MODPOST generated warning Vivek Goyal

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

all inboxes | Powered by JetHome®