diff options
author | 2018-07-09 22:09:31 +0200 | |
---|---|---|
committer | 2018-07-18 10:10:19 +0200 | |
commit | cf3e3fd2e94f4648f17fbd5e0e26409d5d1face9 (patch) | |
tree | fbf8158842eb822fb8e500e0066ac1a703e67a09 /drivers/mtd/nand/raw/sunxi_nand.c | |
parent | mtd: rawnand: davinci: Allow selection of this driver when COMPILE_TEST=y (diff) | |
download | linux-dev-cf3e3fd2e94f4648f17fbd5e0e26409d5d1face9.tar.xz linux-dev-cf3e3fd2e94f4648f17fbd5e0e26409d5d1face9.zip |
mtd: rawnand: sunxi: Add an U suffix to NFC_PAGE_OP definition
Fixes the "warning: large integer implicitly truncated to unsigned type
[-Woverflow]" warning when compiled for x86.
This is needed in order to allow compiling this driver when
COMPILE_TEST=y.
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to '')
-rw-r--r-- | drivers/mtd/nand/raw/sunxi_nand.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/raw/sunxi_nand.c b/drivers/mtd/nand/raw/sunxi_nand.c index d831a141a196..99043c3a4fa7 100644 --- a/drivers/mtd/nand/raw/sunxi_nand.c +++ b/drivers/mtd/nand/raw/sunxi_nand.c @@ -127,7 +127,7 @@ #define NFC_CMD_TYPE_MSK GENMASK(31, 30) #define NFC_NORMAL_OP (0 << 30) #define NFC_ECC_OP (1 << 30) -#define NFC_PAGE_OP (2 << 30) +#define NFC_PAGE_OP (2U << 30) /* define bit use in NFC_RCMD_SET */ #define NFC_READ_CMD_MSK GENMASK(7, 0) |