btrfs-progs: cleanup, make usage strings static
authorDavid Sterba <dsterba@suse.com>
Mon, 14 Sep 2015 21:27:19 +0000 (23:27 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 14 Sep 2015 21:45:32 +0000 (23:45 +0200)
Reported by sparse.

Signed-off-by: David Sterba <dsterba@suse.com>
cmds-device.c
cmds-rescue.c

index 84a08ad7f8334a6c0385fbe7547035954315131d..195ae2d62ff37d05088b65d10fb695a7c677fe11 100644 (file)
@@ -471,7 +471,7 @@ out:
        return err;
 }
 
-const char * const cmd_device_usage_usage[] = {
+static const char * const cmd_device_usage_usage[] = {
        "btrfs device usage [options] <path> [<path>..]",
        "Show detailed information about internal allocations in devices.",
        HELPINFO_OUTPUT_UNIT_DF,
index dd7c01eaa956a94428b63da6e280e30878beeb3b..bcec3447fe946fcab2fe81733b9ef880747d6fb7 100644 (file)
@@ -33,7 +33,7 @@ static const char * const rescue_cmd_group_usage[] = {
 int btrfs_recover_chunk_tree(char *path, int verbose, int yes);
 int btrfs_recover_superblocks(char *path, int verbose, int yes);
 
-const char * const cmd_rescue_chunk_recover_usage[] = {
+static const char * const cmd_rescue_chunk_recover_usage[] = {
        "btrfs rescue chunk-recover [options] <device>",
        "Recover the chunk tree by scanning the devices one by one.",
        "",
@@ -43,7 +43,7 @@ const char * const cmd_rescue_chunk_recover_usage[] = {
        NULL
 };
 
-const char * const cmd_rescue_super_recover_usage[] = {
+static const char * const cmd_rescue_super_recover_usage[] = {
        "btrfs rescue super-recover [options] <device>",
        "Recover bad superblocks from good copies",
        "",
@@ -152,7 +152,7 @@ int cmd_rescue_super_recover(int argc, char **argv)
        return ret;
 }
 
-const char * const cmd_rescue_zero_log_usage[] = {
+static const char * const cmd_rescue_zero_log_usage[] = {
        "btrfs rescue zero-log <device>",
        "Clear the tree log. Usable if it's corrupted and prevents mount.",
        "",