All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86-64: fix two modpost warnings in mm/init_64.c
@ 2008-08-21 13:28 Jan Beulich
  2008-08-22  5:55 ` Ingo Molnar
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Beulich @ 2008-08-21 13:28 UTC (permalink / raw)
  To: mingo, tglx, hpa; +Cc: linux-kernel

early_io{re,un}map() are __init and hence can't be called from __meminit
functions.

Signed-off-by: Jan Beulich <jbeulich@novell.com>

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

--- linux-2.6.27-rc4/arch/x86/mm/init_64.c	2008-08-21 15:02:41.000000000 +0200
+++ 2.6.27-rc4-x86_64-modpost-mm-init/arch/x86/mm/init_64.c	2008-08-21 11:49:44.000000000 +0200
@@ -241,7 +241,7 @@ static unsigned long __initdata table_st
 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(un
 	return adr;
 }
 
-static __meminit void unmap_low_page(void *adr)
+static __ref void unmap_low_page(void *adr)
 {
 	if (after_bootmem)
 		return;




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] x86-64: fix two modpost warnings in mm/init_64.c
  2008-08-21 13:28 [PATCH] x86-64: fix two modpost warnings in mm/init_64.c Jan Beulich
@ 2008-08-22  5:55 ` Ingo Molnar
  0 siblings, 0 replies; 2+ messages in thread
From: Ingo Molnar @ 2008-08-22  5:55 UTC (permalink / raw)
  To: Jan Beulich; +Cc: tglx, hpa, linux-kernel


* Jan Beulich <jbeulich@novell.com> wrote:

> early_io{re,un}map() are __init and hence can't be called from 
> __meminit functions.

applied to tip/x86/urgent - thanks Jan!

	Ingo

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-08-22  5:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-21 13:28 [PATCH] x86-64: fix two modpost warnings in mm/init_64.c Jan Beulich
2008-08-22  5:55 ` Ingo Molnar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.