diff options
author | Bart Van Assche <bart.vanassche@sandisk.com> | 2016-11-14 18:53:05 -0500 |
---|---|---|
committer | Bart Van Assche <bart.vanassche@sandisk.com> | 2016-12-09 13:20:09 -0500 |
commit | a6ab53742a52786ca594438eff2c80c3a242aaf3 (patch) | |
tree | e9574f65f997b69df7120bf7c91e59aad6a85db3 /include/linux/configfs.h | |
parent | 03274445c01562d5352ea522431ab8c6175e2bbf (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.h | 13 |
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 @@ | |||
35 | #ifndef _CONFIGFS_H_ | 35 | #ifndef _CONFIGFS_H_ |
36 | #define _CONFIGFS_H_ | 36 | #define _CONFIGFS_H_ |
37 | 37 | ||
38 | #include <linux/kernel.h> | 38 | #include <linux/stat.h> /* S_IRUGO */ |
39 | #include <linux/types.h> | 39 | #include <linux/types.h> /* ssize_t */ |
40 | #include <linux/list.h> | 40 | #include <linux/list.h> /* struct list_head */ |
41 | #include <linux/kref.h> | 41 | #include <linux/kref.h> /* struct kref */ |
42 | #include <linux/mutex.h> | 42 | #include <linux/mutex.h> /* struct mutex */ |
43 | #include <linux/err.h> | ||
44 | |||
45 | #include <linux/atomic.h> | ||
46 | 43 | ||
47 | #define CONFIGFS_ITEM_NAME_LEN 20 | 44 | #define CONFIGFS_ITEM_NAME_LEN 20 |
48 | 45 | ||