Re: [PATCH] dm raid: don't use 'const' in function return

2018-02-01 Thread Geert Uytterhoeven
On Thu, Jun 16, 2016 at 11:03 AM, Arnd Bergmann wrote: > 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] > > Thi

Re: [PATCH] dm raid: don't use 'const' in function return

2016-06-16 Thread Heinz Mauelshagen
Thanks Arnd. On 06/16/2016 11:03 AM, Arnd Bergmann wrote: 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 chan

[PATCH] dm raid: don't use 'const' in function return

2016-06-16 Thread Arnd Bergmann
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 Bergm