Commit af86d07e authored by Chris Mason's avatar Chris Mason Committed by David Woodhouse

Btrfs: Add sparse checking to Makefile

Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
parent 8e19f2cd
...@@ -3,8 +3,13 @@ CFLAGS = -g -Wall ...@@ -3,8 +3,13 @@ CFLAGS = -g -Wall
headers = radix-tree.h ctree.h disk-io.h kerncompat.h print-tree.h 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 objects = ctree.o disk-io.o radix-tree.o mkfs.o extent-tree.o print-tree.o
#.c.o: # if you don't have sparse installed, use ls instead
# $(CC) $(CFLAGS) -c $< check=sparse
#check=ls
.c.o:
$(check) $<
$(CC) $(CFLAGS) -c $<
all: tester debug-tree all: tester debug-tree
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
#include "disk-io.h" #include "disk-io.h"
#include "print-tree.h" #include "print-tree.h"
int main() { int main(int ac, char **av) {
struct ctree_super_block super; struct ctree_super_block super;
struct ctree_root *root; struct ctree_root *root;
radix_tree_init(); radix_tree_init();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment