Skip to content
Commit f2ccaa59 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Mike Snitzer
Browse files

dm raid: don't use 'const' in function return



A newly introduced function has 'const int' as the return type,
but as "make W=1" reports, that has no meaning:

drivers/md/dm-raid.c:510:18: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]

This changes the return type to plain 'int'.

Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Fixes: 33e53f06 ("dm raid: introduce extended superblock and new raid types to support takeover/reshaping")
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
Fixes: 552aa679 ("dm raid: use rs_is_raid*()")
Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
parent 2d0b2d64
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