]> git.baikalelectronics.ru Git - kernel.git/commit
fs/btrfs: Fix build of ctree
authorStefan Schmidt <stefan@datenfreihafen.org>
Wed, 12 Jan 2011 09:30:42 +0000 (10:30 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 16 Jan 2011 20:59:42 +0000 (12:59 -0800)
commit6092c45f2ce629756caec6a80fce5d831d6b48dd
tree1e37e728fa3eff37e2f75ebf9d3446bac13f9f84
parenta768842035c96eb9e37da32c545901e3d7ddd3e3
fs/btrfs: Fix build of ctree

Fix the build failure in some configurations:

     CC [M]  fs/btrfs/ctree.o
  In file included from fs/btrfs/ctree.c:21:0:
  fs/btrfs/ctree.h:1003:17: error: field 'super_kobj' has incomplete type
  fs/btrfs/ctree.h:1074:17: error: field 'root_kobj' has incomplete type
  make[2]: *** [fs/btrfs/ctree.o] Error 1
  make[1]: *** [fs/btrfs] Error 2
  make: *** [fs] Error 2

caused by commit ea4363010f01 ("headers: kobject.h redux")

We need to include kobject.h here.

Reported-by: Jeff Garzik <jeff@garzik.org>
Fix-suggested-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/btrfs/ctree.h