diff options
-rw-r--r-- | fs/btrfs/Makefile | 9 | ||||
-rw-r--r-- | fs/btrfs/debug-tree.c | 2 |
2 files changed, 8 insertions, 3 deletions
diff --git a/fs/btrfs/Makefile b/fs/btrfs/Makefile index ea9b6665da34..078061c321b0 100644 --- a/fs/btrfs/Makefile +++ b/fs/btrfs/Makefile | |||
@@ -3,8 +3,13 @@ CFLAGS = -g -Wall | |||
3 | headers = radix-tree.h ctree.h disk-io.h kerncompat.h print-tree.h | 3 | headers = radix-tree.h ctree.h disk-io.h kerncompat.h print-tree.h |
4 | objects = ctree.o disk-io.o radix-tree.o mkfs.o extent-tree.o print-tree.o | 4 | objects = ctree.o disk-io.o radix-tree.o mkfs.o extent-tree.o print-tree.o |
5 | 5 | ||
6 | #.c.o: | 6 | # if you don't have sparse installed, use ls instead |
7 | # $(CC) $(CFLAGS) -c $< | 7 | check=sparse |
8 | #check=ls | ||
9 | |||
10 | .c.o: | ||
11 | $(check) $< | ||
12 | $(CC) $(CFLAGS) -c $< | ||
8 | 13 | ||
9 | all: tester debug-tree | 14 | all: tester debug-tree |
10 | 15 | ||
diff --git a/fs/btrfs/debug-tree.c b/fs/btrfs/debug-tree.c index b2c5abfdc74a..21f607d8b050 100644 --- a/fs/btrfs/debug-tree.c +++ b/fs/btrfs/debug-tree.c | |||
@@ -6,7 +6,7 @@ | |||
6 | #include "disk-io.h" | 6 | #include "disk-io.h" |
7 | #include "print-tree.h" | 7 | #include "print-tree.h" |
8 | 8 | ||
9 | int main() { | 9 | int main(int ac, char **av) { |
10 | struct ctree_super_block super; | 10 | struct ctree_super_block super; |
11 | struct ctree_root *root; | 11 | struct ctree_root *root; |
12 | radix_tree_init(); | 12 | radix_tree_init(); |