Commit 0328ba90 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Mike Snitzer

dm raid: remove bogus const from decipher_sync_action() return type

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: 36a240a7 ("dm raid: fix RAID leg rebuild errors")
Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Acked-by: default avatarHeinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
parent b592211c
...@@ -3353,7 +3353,7 @@ static const char *sync_str(enum sync_state state) ...@@ -3353,7 +3353,7 @@ static const char *sync_str(enum sync_state state)
}; };
/* Return enum sync_state for @mddev derived from @recovery flags */ /* 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)) if (test_bit(MD_RECOVERY_FROZEN, &recovery))
return st_frozen; return st_frozen;
......
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