[patch] mtd: nand: silence some shift wrap warnings

Artem Bityutskiy artem.bityutskiy at linux.intel.com
Fri Aug 16 10:55:38 EDT 2013


On Fri, 2013-08-09 at 12:49 +0300, Dan Carpenter wrote:
> There are static checkers which complain when we declare variables as
> 64 bit bitfields but only use the lower 32 bits because of shift
> wrapping.  In this case "len" is declared as u64 as opposed to unsigned
> long or something which might be 32 bits.
> 
> Signed-off-by: Dan Carpenter <dan.carpenter at oracle.com>

Pushed to l2-mtd.git, thanks!

-- 
Best Regards,
Artem Bityutskiy




More information about the linux-mtd mailing list