summaryrefslogtreecommitdiff
path: root/include/linux/configfs.h
diff options
context:
space:
mode:
authorBart Van Assche <bart.vanassche@sandisk.com>2016-11-14 15:53:05 -0800
committerBart Van Assche <bart.vanassche@sandisk.com>2016-12-09 10:20:09 -0800
commita6ab53742a52786ca594438eff2c80c3a242aaf3 (patch)
treee9574f65f997b69df7120bf7c91e59aad6a85db3 /include/linux/configfs.h
parent03274445c01562d5352ea522431ab8c6175e2bbf (diff)
configfs: Minimize #include directives
Only include the header files that are needed by configfs.h itself. Add #include <linux/stat.h>. Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> Cc: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'include/linux/configfs.h')
-rw-r--r--include/linux/configfs.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/include/linux/configfs.h b/include/linux/configfs.h
index d9d6a9d77489..9fc9843c0300 100644
--- a/include/linux/configfs.h
+++ b/include/linux/configfs.h
@@ -35,14 +35,11 @@
#ifndef _CONFIGFS_H_
#define _CONFIGFS_H_
-#include <linux/kernel.h>
-#include <linux/types.h>
-#include <linux/list.h>
-#include <linux/kref.h>
-#include <linux/mutex.h>
-#include <linux/err.h>
-
-#include <linux/atomic.h>
+#include <linux/stat.h> /* S_IRUGO */
+#include <linux/types.h> /* ssize_t */
+#include <linux/list.h> /* struct list_head */
+#include <linux/kref.h> /* struct kref */
+#include <linux/mutex.h> /* struct mutex */
#define CONFIGFS_ITEM_NAME_LEN 20