提交 0e0be25d 编写于 作者: V Vivek Goyal 提交者: Andi Kleen

[PATCH] 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'
Signed-off-by: NVivek Goyal <vgoyal@in.ibm.com>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NAndi Kleen <ak@suse.de>
上级 b92cc559
...@@ -283,7 +283,7 @@ void __init add_one_highpage_init(struct page *page, int pfn, int bad_ppro) ...@@ -283,7 +283,7 @@ void __init add_one_highpage_init(struct page *page, int pfn, int bad_ppro)
SetPageReserved(page); 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); free_new_highpage(page);
totalram_pages++; totalram_pages++;
...@@ -300,7 +300,7 @@ static int add_one_highpage_hotplug(struct page *page, unsigned long pfn) ...@@ -300,7 +300,7 @@ static int add_one_highpage_hotplug(struct page *page, unsigned long pfn)
* has been added dynamically that would be * has been added dynamically that would be
* onlined here is in HIGHMEM * onlined here is in HIGHMEM
*/ */
void online_page(struct page *page) void __meminit online_page(struct page *page)
{ {
ClearPageReserved(page); ClearPageReserved(page);
add_one_highpage_hotplug(page, page_to_pfn(page)); add_one_highpage_hotplug(page, page_to_pfn(page));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册