summaryrefslogtreecommitdiff
path: root/cmds-device.c
diff options
context:
space:
mode:
authorZach Brown <zab@redhat.com>2013-08-14 16:16:32 -0700
committerDavid Sterba <dsterba@suse.cz>2013-09-03 19:41:01 +0200
commit7eab7f2a9cf0d261cb49fdd440828370db5af72a (patch)
tree0555baf4ebd344b24a902338bc515826a832b3a4 /cmds-device.c
parentdfc66e3c9302470278e6a38c6a5c833153b99922 (diff)
btrfs-progs: remove __CHECKER__ from main code
__CHECKER__ is only for the type juggling used to tell sparse which types need conversion between address spaces. It is not OK to use to change the code that gets checked to avoid bugs elsewhere in the build infrastructure. We want to check the code that builds when the checker isn't enabled. Signed-off-by: Zach Brown <zab@redhat.com> Signed-off-by: David Sterba <dsterba@suse.cz> Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'cmds-device.c')
-rw-r--r--cmds-device.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/cmds-device.c b/cmds-device.c
index be2aaff3..48ac526c 100644
--- a/cmds-device.c
+++ b/cmds-device.c
@@ -30,15 +30,6 @@
#include "commands.h"
-/* FIXME - imported cruft, fix sparse errors and warnings */
-#ifdef __CHECKER__
-#define BLKGETSIZE64 0
-#define BTRFS_IOC_SNAP_CREATE_V2 0
-#define BTRFS_VOL_NAME_MAX 255
-struct btrfs_ioctl_vol_args { char name[BTRFS_VOL_NAME_MAX]; };
-static inline int ioctl(int fd, int define, void *arg) { return 0; }
-#endif
-
static const char * const device_cmd_group_usage[] = {
"btrfs device <command> [<args>]",
NULL