Skip to content

Commit 0328ba9

Browse files
geertusnitm
authored andcommitted
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: 36a240a ("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>
1 parent b592211 commit 0328ba9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/md/dm-raid.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3353,7 +3353,7 @@ static const char *sync_str(enum sync_state state)
33533353
};
33543354

33553355
/* Return enum sync_state for @mddev derived from @recovery flags */
3356-
static const enum sync_state decipher_sync_action(struct mddev *mddev, unsigned long recovery)
3356+
static enum sync_state decipher_sync_action(struct mddev *mddev, unsigned long recovery)
33573357
{
33583358
if (test_bit(MD_RECOVERY_FROZEN, &recovery))
33593359
return st_frozen;

0 commit comments

Comments
 (0)