[xlnx:master 173/199] include/linux/mtd/cfi.h:76:2: sparse: sparse: No CONFIG_MTD_CFI_Ix selected. No NOR chip support can work.
From: kernel test robot <hidden>
Date: 2020-06-06 00:31:01
Also in:
oe-kbuild-all
tree: https://github.com/Xilinx/linux-xlnx master head: 0a673209eb66ae657980dfab9ef90690647ee344 commit: 3e0fe58e108f56ee9ae5bd107aeb947ab18ef0a2 [173/199] spi: Move update_stripe definition to spi-mem config: i386-randconfig-s002-20200605 (attached as .config) compiler: gcc-9 (Debian 9.3.0-13) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.1-246-g41f651b4-dirty git checkout 3e0fe58e108f56ee9ae5bd107aeb947ab18ef0a2 # save the attached .config to linux build tree make W=1 C=1 ARCH=i386 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <redacted> sparse warnings: (new ones prefixed by >>)
quoted
include/linux/mtd/cfi.h:76:2: sparse: sparse: No CONFIG_MTD_CFI_Ix selected. No NOR chip support can work.
In file included from include/linux/mtd/spi-nor.h:14,
from drivers/spi/spi-mem.c:10:
include/linux/mtd/cfi.h:76:2: warning: #warning No CONFIG_MTD_CFI_Ix selected. No NOR chip support can work. [-Wcpp]
76 | #warning No CONFIG_MTD_CFI_Ix selected. No NOR chip support can work.
| ^~~~~~~
In file included from include/linux/mtd/mtd.h:27,
from include/linux/mtd/spi-nor.h:15,
from drivers/spi/spi-mem.c:10:
include/linux/of.h: In function '__of_changeset_add_update_property_stringv':
include/linux/of.h:1542:2: warning: function '__of_changeset_add_update_property_stringv' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
1542 | str = kvasprintf(GFP_KERNEL, fmt, vargs);
| ^~~
vim +76 include/linux/mtd/cfi.h
^1da177e4c3f41 Linus Torvalds 2005-04-16 74
241651d04d672f David Woodhouse 2007-09-06 75 #ifndef cfi_interleave
241651d04d672f David Woodhouse 2007-09-06 @76 #warning No CONFIG_MTD_CFI_Ix selected. No NOR chip support can work.
241651d04d672f David Woodhouse 2007-09-06 77 static inline int cfi_interleave(void *cfi)
241651d04d672f David Woodhouse 2007-09-06 78 {
241651d04d672f David Woodhouse 2007-09-06 79 BUG();
241651d04d672f David Woodhouse 2007-09-06 80 return 0;
241651d04d672f David Woodhouse 2007-09-06 81 }
241651d04d672f David Woodhouse 2007-09-06 82 #endif
241651d04d672f David Woodhouse 2007-09-06 83
:::::: The code at line 76 was first introduced by commit
:::::: 241651d04d672fb685b2874707016cbbf95931e5 [MTD] Fix CFI build error when no map width or interleave supported
:::::: TO: David Woodhouse [off-list ref]
:::::: CC: David Woodhouse [off-list ref]
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Attachments
- .config.gz [application/gzip] 28320 bytes
- (unnamed) [text/plain] 176 bytes · preview