]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
f2fs: fix a build failure due to missing the kobject header
authorJaegeuk Kim <jaegeuk.kim@samsung.com>
Thu, 8 Aug 2013 06:56:49 +0000 (15:56 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Thu, 8 Aug 2013 06:56:49 +0000 (15:56 +0900)
This patch should resolve the following error reported by kbuild test robot.

All error/warnings:

   In file included from fs/f2fs/dir.c:13:0:
   >> fs/f2fs/f2fs.h:435:17: error: field 's_kobj' has incomplete type
        struct kobject s_kobj;

The failure was caused by missing the kobject header file in dir.c.
So, this patch move the header file to the right location, f2fs.h.

CC: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/f2fs.h
fs/f2fs/super.c

index 13db10b70e66d8689803dccd8be070d3fcf0b3d6..d8e386ceb0cdeade11c5c08fcb95fd5379baa47d 100644 (file)
@@ -17,6 +17,7 @@
 #include <linux/slab.h>
 #include <linux/crc32.h>
 #include <linux/magic.h>
+#include <linux/kobject.h>
 
 /*
  * For mount options
index 94c0e20495468d9be89185da7e2971bc0c779440..66d1ec137e4474c14fea33edb0fea554a9198c05 100644 (file)
@@ -23,7 +23,6 @@
 #include <linux/exportfs.h>
 #include <linux/blkdev.h>
 #include <linux/f2fs_fs.h>
-#include <linux/kobject.h>
 #include <linux/sysfs.h>
 
 #include "f2fs.h"