path: root/cmds-fi-usage.c
diff options
authorByongho Lee <>2016-01-04 10:01:29 +0900
committerDavid Sterba <>2016-01-12 15:01:05 +0100
commitdea6b51bae9333127e160ce75988dade61966062 (patch)
tree1aa8e4a9a80e432957e8be45bed208e9c7b0331e /cmds-fi-usage.c
parent61d6ed4fe7eff80033562380df536351b7ad6e66 (diff)
btrfs-progs: get sparse checking working
When I run sparse checking it gives the following error: $ make C=1 V=1 gcc -MM -MG -MF cmds-fi-usage.o.d -MT cmds-fi-usage.o -MT \ cmds-fi-usage.static.o -MT cmds-fi-usage.o.d -g -O1 -Wall \ -D_FORTIFY_SOURCE=2 -include config.h -DBTRFS_FLAT_INCLUDES \ -D_XOPEN_SOURCE=700 -fno-strict-aliasing -fPIC cmds-fi-usage.c [SP] ctree.c sparse -g -O1 -Wall -D_FORTIFY_SOURCE=2 -include config.h \ -DBTRFS_FLAT_INCLUDES -D_XOPEN_SOURCE=700 -fno-strict-aliasing -fPIC \ -include -D__CHECKER__ -D__CHECK_ENDIAN__ -Wbitwise -Wuninitialized \ -Wshadow -Wundef -U_FORTIFY_SOURCE ctree.c builtin:1:15: error: unable to open '-D__CHECKER__' Makefile:177: recipe for target 'ctree.o' failed make: *** [ctree.o] Error 1 It means '$(check_defs)' is passed to sparse as NULL and looks '$(check_defs)'should be assigned before assigning '$(CHECKER_FLAGS)'. BTW, I'm not familiar with make tool so there could be some my misunderstanding and better solution. Signed-off-by: Byongho Lee <> Signed-off-by: David Sterba <>
Diffstat (limited to 'cmds-fi-usage.c')
0 files changed, 0 insertions, 0 deletions