dm raid: remove bogus const from decipher_sync_action() return type
authorGeert Uytterhoeven <geert@linux-m68k.org>
Mon, 17 Sep 2018 08:02:34 +0000 (10:02 +0200)
committerMike Snitzer <snitzer@redhat.com>
Tue, 18 Sep 2018 02:46:50 +0000 (22:46 -0400)
With gcc-4.1.2:

    drivers/md/dm-raid.c:3357: warning: type qualifiers ignored on function return type

Remove the "const" keyword to fix this.

Fixes: 36a240a706d43383 ("dm raid: fix RAID leg rebuild errors")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Heinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-raid.c

index 5ba067fa0c729bc89b7789bd35648b1189003b27..c44925e4e4813d246d0d208fef5587019e4afb17 100644 (file)
@@ -3353,7 +3353,7 @@ static const char *sync_str(enum sync_state state)
 };
 
 /* Return enum sync_state for @mddev derived from @recovery flags */
-static const enum sync_state decipher_sync_action(struct mddev *mddev, unsigned long recovery)
+static enum sync_state decipher_sync_action(struct mddev *mddev, unsigned long recovery)
 {
        if (test_bit(MD_RECOVERY_FROZEN, &recovery))
                return st_frozen;