]> git.baikalelectronics.ru Git - kernel.git/commit
dm raid: don't use 'const' in function return
authorArnd Bergmann <arnd@arndb.de>
Fri, 22 Jun 2018 08:01:19 +0000 (10:01 +0200)
committerMike Snitzer <snitzer@redhat.com>
Fri, 22 Jun 2018 18:51:12 +0000 (14:51 -0400)
commit0ca82e415095d987ecb118d281fc51a87c8d4a6a
tree5dc4d450bae8f6873aabb74b2aaa51e08165be34
parentefc8d04a2d6c4acd71d8e30e5e71d77b11b8a775
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: Arnd Bergmann <arnd@arndb.de>
Fixes: a52a7a4519ad ("dm raid: introduce extended superblock and new raid types to support takeover/reshaping")
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Fixes: 608855d64f69aff2 ("dm raid: use rs_is_raid*()")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-raid.c