Skip to content

Commit

Permalink
fs/btrfs: Fix build of ctree
Browse files Browse the repository at this point in the history
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 57cc721 ("headers: kobject.h redux")

We need to include kobject.h here.

Reported-by: Jeff Garzik <[email protected]>
Fix-suggested-by: Li Zefan <[email protected]>
Signed-off-by: Stefan Schmidt <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Stefan-Schmidt authored and torvalds committed Jan 16, 2011
1 parent 5520ebd commit f8b1808
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/btrfs/ctree.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include <linux/backing-dev.h>
#include <linux/wait.h>
#include <linux/slab.h>
#include <linux/kobject.h>
#include <asm/kmap_types.h>
#include "extent_io.h"
#include "extent_map.h"
Expand Down

0 comments on commit f8b1808

Please sign in to comment.