提交 a6ab5374 编写于 作者: B Bart Van Assche

configfs: Minimize #include directives

Only include the header files that are needed by configfs.h itself.
Add #include <linux/stat.h>.
Signed-off-by: NBart Van Assche <bart.vanassche@sandisk.com>
Cc: Christoph Hellwig <hch@lst.de>
上级 03274445
...@@ -35,14 +35,11 @@ ...@@ -35,14 +35,11 @@
#ifndef _CONFIGFS_H_ #ifndef _CONFIGFS_H_
#define _CONFIGFS_H_ #define _CONFIGFS_H_
#include <linux/kernel.h> #include <linux/stat.h> /* S_IRUGO */
#include <linux/types.h> #include <linux/types.h> /* ssize_t */
#include <linux/list.h> #include <linux/list.h> /* struct list_head */
#include <linux/kref.h> #include <linux/kref.h> /* struct kref */
#include <linux/mutex.h> #include <linux/mutex.h> /* struct mutex */
#include <linux/err.h>
#include <linux/atomic.h>
#define CONFIGFS_ITEM_NAME_LEN 20 #define CONFIGFS_ITEM_NAME_LEN 20
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册