Re: [PATCH] ARC: fix __ffs return value to avoid build warnings

From: Vineet Gupta
Date: Thu Dec 13 2018 - 13:23:21 EST


On 12/13/18 7:43 AM, Eugeniy Paltsev wrote:
> Change __ffs return value from 'int' to 'unsigned long' as it
> is done in other implementations (like asm-generic, x86, etc...)
> to avoid build-time warnings in places where type is strictly
> checked.
>
> As __ffs may return values in [0-31] interval changing return
> type to unsigned is valid.
>
> Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@xxxxxxxxxxxx>

Can you please paste a couple of lines of offending output !

-Vineet