Skip to content

Commit

Permalink
Btrfs: Add sparse checking to Makefile
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Mason <chris.mason@oracle.com>
  • Loading branch information
Chris Mason authored and David Woodhouse committed Feb 28, 2007
1 parent 8e19f2c commit af86d07
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions fs/btrfs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@ CFLAGS = -g -Wall
headers = radix-tree.h ctree.h disk-io.h kerncompat.h print-tree.h
objects = ctree.o disk-io.o radix-tree.o mkfs.o extent-tree.o print-tree.o

#.c.o:
# $(CC) $(CFLAGS) -c $<
# if you don't have sparse installed, use ls instead
check=sparse
#check=ls

.c.o:
$(check) $<
$(CC) $(CFLAGS) -c $<

all: tester debug-tree

Expand Down
2 changes: 1 addition & 1 deletion fs/btrfs/debug-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "disk-io.h"
#include "print-tree.h"

int main() {
int main(int ac, char **av) {
struct ctree_super_block super;
struct ctree_root *root;
radix_tree_init();
Expand Down

0 comments on commit af86d07

Please sign in to comment.