diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2018-09-17 10:02:34 +0200 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2018-09-17 22:46:50 -0400 |
commit | 0328ba90407c82874f9f39f9a5a6e5ad6cb76f44 (patch) | |
tree | 532dbbd801fcec8d8464e20da5aa96f5c5bf860e /drivers | |
parent | b592211c33f745af67a3271ce77c10fc1e6d6241 (diff) | |
download | linux-0328ba90407c82874f9f39f9a5a6e5ad6cb76f44.tar.bz2 |
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: 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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/md/dm-raid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-raid.c b/drivers/md/dm-raid.c index 5ba067fa0c72..c44925e4e481 100644 --- a/drivers/md/dm-raid.c +++ b/drivers/md/dm-raid.c @@ -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; |