kmemcheck: include module.h to prevent warnings
authorRandy Dunlap <randy.dunlap@oracle.com>
Thu, 24 Jul 2008 23:09:32 +0000 (16:09 -0700)
committerVegard Nossum <vegard.nossum@gmail.com>
Sat, 13 Jun 2009 13:37:49 +0000 (15:37 +0200)
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>
Cc: vegardno@ifi.uio.no
Cc: penberg@cs.helsinki.fi
Cc: akpm <akpm@linux-foundation.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/mm/kmemcheck/shadow.c

index 5544d36..e7346d3 100644 (file)
@@ -1,6 +1,7 @@
 #include <linux/kmemcheck.h>
 #include <linux/module.h>
 #include <linux/mm.h>
+#include <linux/module.h>
 
 #include <asm/page.h>
 #include <asm/pgtable.h>