[xlnx:xlnx_rebase_v5.4 19/1701] include/linux/mtd/rawnand.h:1294:16: sparse: sparse: cast to restricted __le16

kernel test robot lkp at intel.com
Fri Apr 2 15:01:34 BST 2021


tree:   https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.4
head:   8540825db3d5519ef205a710515b7819b95eeb4f
commit: 1dea215e98f470c4fabe230cb5dcb648e3301fb9 [19/1701] mtd: rawnand: Add support for ARASAN NAND controller
config: x86_64-randconfig-s021-20210401 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.3-279-g6d5d9b42-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=x86_64 

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

cbb56fde78b2f2 Naga Sureshkumar Relli 2019-12-05  1287  
cbb56fde78b2f2 Naga Sureshkumar Relli 2019-12-05  1288  /* return the supported synchronous timing mode. */
cbb56fde78b2f2 Naga Sureshkumar Relli 2019-12-05  1289  static inline int onfi_get_sync_timing_mode(struct nand_chip *chip)
cbb56fde78b2f2 Naga Sureshkumar Relli 2019-12-05  1290  {
cbb56fde78b2f2 Naga Sureshkumar Relli 2019-12-05  1291  	if (!chip->parameters.onfi)
cbb56fde78b2f2 Naga Sureshkumar Relli 2019-12-05  1292  		return ONFI_TIMING_MODE_UNKNOWN;
cbb56fde78b2f2 Naga Sureshkumar Relli 2019-12-05  1293  
cbb56fde78b2f2 Naga Sureshkumar Relli 2019-12-05 @1294  	return le16_to_cpu(chip->parameters.onfi->src_sync_timing_mode);
cbb56fde78b2f2 Naga Sureshkumar Relli 2019-12-05  1295  }
cbb56fde78b2f2 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: 39327 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20210402/f683f73f/attachment-0001.gz>


More information about the linux-arm-kernel mailing list