Skip to content

Commit

Permalink
[PATCH] i386: Fix memory hotplug related MODPOST generated warning
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Andi Kleen <[email protected]>
  • Loading branch information
Vivek Goyal authored and Andi Kleen committed Jan 11, 2007
1 parent b92cc55 commit 0e0be25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/i386/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ void __init add_one_highpage_init(struct page *page, int pfn, int bad_ppro)
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++;
Expand All @@ -300,7 +300,7 @@ static int add_one_highpage_hotplug(struct page *page, unsigned long pfn)
* 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));
Expand Down

0 comments on commit 0e0be25

Please sign in to comment.