mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH -next] kmemcheck: include module.h to prevent warnings
@ 2008-07-24 23:09 Randy Dunlap
  2008-07-24 23:27 ` Pekka Enberg
  2008-07-26 15:43 ` Ingo Molnar
  0 siblings, 2 replies; 4+ messages in thread
From: Randy Dunlap @ 2008-07-24 23:09 UTC (permalink / raw)
  To: lkml; +Cc: vegardno, penberg, akpm

From: Randy Dunlap <randy.dunlap@oracle.com>

kmemcheck/shadow.c needs to include <linux/module.h> to prevent
the following warnings:

linux-next-20080724/arch/x86/mm/kmemcheck/shadow.c:64: warning : data definition has no type or storage class
linux-next-20080724/arch/x86/mm/kmemcheck/shadow.c:64: warning : type defaults to 'int' in declaration of 'EXPORT_SYMBOL_GPL'
linux-next-20080724/arch/x86/mm/kmemcheck/shadow.c:64: warning : parameter names (without types) in function declaration

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
 arch/x86/mm/kmemcheck/shadow.c |    1 +
 1 file changed, 1 insertion(+)

--- linux-next-20080724.orig/arch/x86/mm/kmemcheck/shadow.c
+++ linux-next-20080724/arch/x86/mm/kmemcheck/shadow.c
@@ -1,5 +1,6 @@
 #include <linux/kmemcheck.h>
 #include <linux/mm.h>
+#include <linux/module.h>
 
 #include <asm/page.h>
 #include <asm/pgtable.h>


---
~Randy
Linux Plumbers Conference, 17-19 September 2008, Portland, Oregon USA
http://linuxplumbersconf.org/

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

end of thread, other threads:[~2008-07-26 18:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-24 23:09 [PATCH -next] kmemcheck: include module.h to prevent warnings Randy Dunlap
2008-07-24 23:27 ` Pekka Enberg
2008-07-26 15:43 ` Ingo Molnar
2008-07-26 18:28   ` Vegard Nossum

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®