]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
xen: fix implicit stat.h/module.h include usage in xen-selfballoon.c
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 28 Jul 2011 14:08:24 +0000 (10:08 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Fri, 26 Aug 2011 15:52:04 +0000 (11:52 -0400)
The module.h cleanup has revealed that this file had the following
implicit dependencies as follows:

  CC      drivers/xen/xen-selfballoon.o
drivers/xen/xen-selfballoon.c:272: error: ‘S_IRUGO’ undeclared here (not in a function)
drivers/xen/xen-selfballoon.c:272: error: ‘S_IWUSR’ undeclared here (not in a function)
drivers/xen/xen-selfballoon.c:485: warning: type defaults to ‘int’ in declaration of ‘MODULE_LICENSE’
drivers/xen/xen-selfballoon.c:485: warning: function declaration isn’t a prototype
make[3]: *** [drivers/xen/xen-selfballoon.o] Error 1

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
drivers/xen/xen-selfballoon.c

index 1b4afd81f872306bb4f5ffd9b860fb5f3c0adc6f..9172e10790c9c4855b1533a28b7d2da305acc23b 100644 (file)
@@ -68,6 +68,8 @@
  */
 
 #include <linux/kernel.h>
+#include <linux/stat.h>
+#include <linux/module.h>
 #include <linux/mm.h>
 #include <linux/mman.h>
 #include <linux/workqueue.h>