[PATCH] cfi.h: quiet sparse noise
Artem Bityutskiy
dedekind1 at gmail.com
Tue Feb 2 00:58:25 EST 2010
On Fri, 2010-01-15 at 11:09 -0700, H Hartley Sweeten wrote:
> cfi.h: quiet sparse noise
>
> In the inline function cfi_build_cmd_addr, the cast of cmd_ofs to an
> uint8_t produces a sparse warning of the type:
>
> warning: cast truncates bits from constant value (2aa becomes aa)
>
> Quiet the warning by masking cmd_ofs with 0xff and remove the cast.
>
> Signed-off-by: H Hartley Sweeten <hsweeten at visionengravers.com>
> Cc: David Woodhouse <dwmw2 at infradead.org>
Pushed this one to my l2-mtd-2.6 / master
--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
More information about the linux-mtd
mailing list