summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/spi-nor/fsl-quadspi.c
diff options
context:
space:
mode:
authorNicolas Iooss <nicolas.iooss_linux@m4x.org>2015-07-05 09:57:41 +0800
committerBrian Norris <computersforpeace@gmail.com>2015-07-20 10:38:25 -0700
commitcef1ed9c6bcf69245c0b9eb89b3f3a45049ba10c (patch)
treede6f8a1b084250418a75b894b989f6f60bb6b861 /drivers/mtd/spi-nor/fsl-quadspi.c
parenta11244c0b25b79d2a3b07df429268d66736e5b45 (diff)
downloadtalos-obmc-linux-cef1ed9c6bcf69245c0b9eb89b3f3a45049ba10c.tar.gz
talos-obmc-linux-cef1ed9c6bcf69245c0b9eb89b3f3a45049ba10c.zip
mtd: r852: make ecc_reg 32-bit in r852_ecc_correct
r852_ecc_correct() reads a 32-bit register into a 16-bit variable, ecc_reg, but this variable is later used as if it was larger. This is reported by clang when building the kernel with many warnings: drivers/mtd/nand/r852.c:512:11: error: shift count >= width of type [-Werror,-Wshift-count-overflow] ecc_reg >>= 16; ^ ~~ Fix this by making ecc_reg 32-bit, like the return type of r852_read_reg_dword(). Signed-off-by: Nicolas Iooss <nicolas.iooss_linux@m4x.org> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd/spi-nor/fsl-quadspi.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud