[xlnx:xlnx_rebase_v5.4 19/1697] include/linux/mtd/rawnand.h:1294:16: sparse: sparse: cast to restricted __le16
kernel test robot
lkp at intel.com
Tue Jan 12 14:51:15 EST 2021
tree: https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.4
head: 629150468791671b5fde21363e643e87c5815b17
commit: 1dea215e98f470c4fabe230cb5dcb648e3301fb9 [19/1697] mtd: rawnand: Add support for ARASAN NAND controller
config: i386-randconfig-s001-20210112 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-208-g46a52ca4-dirty
# https://github.com/Xilinx/linux-xlnx/commit/1dea215e98f470c4fabe230cb5dcb648e3301fb9
git remote add xlnx https://github.com/Xilinx/linux-xlnx
git fetch --no-tags xlnx xlnx_rebase_v5.4
git checkout 1dea215e98f470c4fabe230cb5dcb648e3301fb9
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>
"sparse warnings: (new ones prefixed by >>)"
drivers/mtd/nand/raw/arasan_nand.c: note: in included file:
>> include/linux/mtd/rawnand.h:1294:16: sparse: sparse: cast to restricted __le16
vim +1294 include/linux/mtd/rawnand.h
cbb56fde78b2f261 Naga Sureshkumar Relli 2019-12-05 1287
cbb56fde78b2f261 Naga Sureshkumar Relli 2019-12-05 1288 /* return the supported synchronous timing mode. */
cbb56fde78b2f261 Naga Sureshkumar Relli 2019-12-05 1289 static inline int onfi_get_sync_timing_mode(struct nand_chip *chip)
cbb56fde78b2f261 Naga Sureshkumar Relli 2019-12-05 1290 {
cbb56fde78b2f261 Naga Sureshkumar Relli 2019-12-05 1291 if (!chip->parameters.onfi)
cbb56fde78b2f261 Naga Sureshkumar Relli 2019-12-05 1292 return ONFI_TIMING_MODE_UNKNOWN;
cbb56fde78b2f261 Naga Sureshkumar Relli 2019-12-05 1293
cbb56fde78b2f261 Naga Sureshkumar Relli 2019-12-05 @1294 return le16_to_cpu(chip->parameters.onfi->src_sync_timing_mode);
cbb56fde78b2f261 Naga Sureshkumar Relli 2019-12-05 1295 }
cbb56fde78b2f261 Naga Sureshkumar Relli 2019-12-05 1296
:::::: The code at line 1294 was first introduced by commit
:::::: cbb56fde78b2f2617856523a561f10102c622c8f mtd: rawnand: Add sync and async timing mode support
:::::: TO: Naga Sureshkumar Relli <naga.sureshkumar.relli at xilinx.com>
:::::: CC: Michal Simek <michal.simek at xilinx.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 32242 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20210113/3435b1a2/attachment-0001.gz>
More information about the linux-arm-kernel
mailing list