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

From: kernel test robot <hidden>
Date: 2021-01-12 19:53:35
Also in: oe-kbuild-all

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 <redacted>


"sparse warnings: (new ones prefixed by >>)"
   drivers/mtd/nand/raw/arasan_nand.c: note: in included file:
quoted
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 [off-list ref]
:::::: CC: Michal Simek [off-list ref]

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help