Skip to content

Commit

Permalink
dm raid: remove bogus const from decipher_sync_action() return type
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Heinz Mauelshagen <[email protected]>
Signed-off-by: Mike Snitzer <[email protected]>
  • Loading branch information
geertu authored and snitm committed Sep 18, 2018
1 parent b592211 commit 0328ba9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/md/dm-raid.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0328ba9

Please sign in to comment.