]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: quiet sparse noise in cfi.h
authorH Hartley Sweeten <hartleys@visionengravers.com>
Fri, 15 Jan 2010 18:09:32 +0000 (11:09 -0700)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Thu, 25 Feb 2010 11:29:25 +0000 (11:29 +0000)
commitb0734d6154c564100f2ef2b1ef3ccae7216848e4
tree4f23274d75966ff824c0aec983ded23e7c378d28
parentc70fffd463d2e540f548c7ebb43c9dc533ac5c55
mtd: quiet sparse noise in cfi.h

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@visionengravers.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
include/linux/mtd/cfi.h