OSDN Git Service

mm: fix implicit stat.h usage in dmapool.c
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 16 Oct 2011 06:03:46 +0000 (02:03 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Mon, 31 Oct 2011 13:20:12 +0000 (09:20 -0400)
The removal of the implicitly everywhere module.h and its child includes
will reveal this implicit stat.h usage:

mm/dmapool.c:108: error: ‘S_IRUGO’ undeclared here (not in a function)

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
mm/dmapool.c

index 0965306..c5ab33b 100644 (file)
@@ -32,6 +32,7 @@
 #include <linux/poison.h>
 #include <linux/sched.h>
 #include <linux/slab.h>
+#include <linux/stat.h>
 #include <linux/spinlock.h>
 #include <linux/string.h>
 #include <linux/types.h>