]> git.karo-electronics.de Git - linux-beck.git/commitdiff
configfs: Minimize #include directives
authorBart Van Assche <bart.vanassche@sandisk.com>
Mon, 14 Nov 2016 23:53:05 +0000 (15:53 -0800)
committerBart Van Assche <bart.vanassche@sandisk.com>
Fri, 9 Dec 2016 18:20:09 +0000 (10:20 -0800)
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>
include/linux/configfs.h

index d9d6a9d77489a72ef30519c67b08e046a0e81b46..9fc9843c0300990578eec28724db2d7f01e0d090 100644 (file)
 #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