summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@novell.com>2008-08-21 14:28:42 +0100
committerIngo Molnar <mingo@elte.hu>2008-08-22 07:51:54 +0200
commit9482ac6e34dd1890a9a956d460a135bf992cb54a (patch)
treef2ad78c1f1b66b702fb2e5d62a99af58054d9bfa
parent8ae3a5a8dff2c92bd1087bb97c4a3bb61174303e (diff)
downloadlinux-3.10-9482ac6e34dd1890a9a956d460a135bf992cb54a.tar.gz
linux-3.10-9482ac6e34dd1890a9a956d460a135bf992cb54a.tar.bz2
linux-3.10-9482ac6e34dd1890a9a956d460a135bf992cb54a.zip
x86: 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. Signed-off-by: Jan Beulich <jbeulich@novell.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r--arch/x86/mm/init_64.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c
index 8f487705c3e..d3746efb060 100644
--- a/arch/x86/mm/init_64.c
+++ b/arch/x86/mm/init_64.c
@@ -241,7 +241,7 @@ static unsigned long __initdata table_start;
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(unsigned long *phys)
return adr;
}
-static __meminit void unmap_low_page(void *adr)
+static __ref void unmap_low_page(void *adr)
{
if (after_bootmem)
return;