CC: [email protected] CC: [email protected] TO: Luc Van Oostenryck <[email protected]> CC: Masahiro Yamada <[email protected]>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 07e0887302450a62f51dba72df6afb5fabb23d1c commit: 80591e61a0f7e88deaada69844e4a31280c4a38f kbuild: tell sparse about the $ARCH date: 12 months ago :::::: branch date: 9 hours ago :::::: commit date: 12 months ago config: xtensa-randconfig-s031-20201030 (attached as .config) compiler: xtensa-linux-gcc (GCC) 9.3.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse version: v0.6.3-56-gc09e8239-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=80591e61a0f7e88deaada69844e4a31280c4a38f git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout 80591e61a0f7e88deaada69844e4a31280c4a38f # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=xtensa If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <[email protected]> "sparse warnings: (new ones prefixed by >>)" drivers/scsi/dpt_i2o.c:2116:31: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void [noderef] <asn:2> *reply @@ got unsigned char [usertype] * @@ drivers/scsi/dpt_i2o.c:2116:31: sparse: expected void [noderef] <asn:2> *reply drivers/scsi/dpt_i2o.c:2116:31: sparse: got unsigned char [usertype] * drivers/scsi/dpt_i2o.c:2121:31: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void [noderef] <asn:2> *reply @@ got unsigned char [usertype] * @@ drivers/scsi/dpt_i2o.c:2121:31: sparse: expected void [noderef] <asn:2> *reply drivers/scsi/dpt_i2o.c:2121:31: sparse: got unsigned char [usertype] * drivers/scsi/dpt_i2o.c:1676:12: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] [usertype] <asn:1> * @@ drivers/scsi/dpt_i2o.c:1676:12: sparse: expected unsigned int const *__gu_addr drivers/scsi/dpt_i2o.c:1676:12: sparse: got unsigned int [noderef] [usertype] <asn:1> * drivers/scsi/dpt_i2o.c:1676:12: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] <asn:1> *from @@ got unsigned int const *__gu_addr @@ drivers/scsi/dpt_i2o.c:1676:12: sparse: expected void const [noderef] <asn:1> *from drivers/scsi/dpt_i2o.c:1676:12: sparse: got unsigned int const *__gu_addr drivers/scsi/dpt_i2o.c:1691:9: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] [usertype] <asn:1> * @@ drivers/scsi/dpt_i2o.c:1691:9: sparse: expected unsigned int const *__gu_addr drivers/scsi/dpt_i2o.c:1691:9: sparse: got unsigned int [noderef] [usertype] <asn:1> * drivers/scsi/dpt_i2o.c:1691:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] <asn:1> *from @@ got unsigned int const *__gu_addr @@ drivers/scsi/dpt_i2o.c:1691:9: sparse: expected void const [noderef] <asn:1> *from drivers/scsi/dpt_i2o.c:1691:9: sparse: got unsigned int const *__gu_addr drivers/scsi/dpt_i2o.c:1790:20: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned int const *__gu_addr @@ got unsigned int [noderef] [usertype] <asn:1> * @@ drivers/scsi/dpt_i2o.c:1790:20: sparse: expected unsigned int const *__gu_addr drivers/scsi/dpt_i2o.c:1790:20: sparse: got unsigned int [noderef] [usertype] <asn:1> * drivers/scsi/dpt_i2o.c:1790:20: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const [noderef] <asn:1> *from @@ got unsigned int const *__gu_addr @@ drivers/scsi/dpt_i2o.c:1790:20: sparse: expected void const [noderef] <asn:1> *from drivers/scsi/dpt_i2o.c:1790:20: sparse: got unsigned int const *__gu_addr drivers/scsi/dpt_i2o.c:664:9: sparse: sparse: context imbalance in 'adpt_abort' - different lock contexts for basic block drivers/scsi/dpt_i2o.c:709:9: sparse: sparse: context imbalance in 'adpt_device_reset' - different lock contexts for basic block drivers/scsi/dpt_i2o.c:743:9: sparse: sparse: context imbalance in 'adpt_bus_reset' - different lock contexts for basic block drivers/scsi/dpt_i2o.c: note: in included file (through include/linux/io.h, include/linux/irq.h, include/asm-generic/hardirq.h, ...): arch/xtensa/include/asm/io.h:40:25: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected void [noderef] <asn:2> * @@ got void * @@ arch/xtensa/include/asm/io.h:40:25: sparse: expected void [noderef] <asn:2> * arch/xtensa/include/asm/io.h:40:25: sparse: got void * arch/xtensa/include/asm/io.h:40:25: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected void [noderef] <asn:2> * @@ got void * @@ arch/xtensa/include/asm/io.h:40:25: sparse: expected void [noderef] <asn:2> * arch/xtensa/include/asm/io.h:40:25: sparse: got void * drivers/scsi/dpt_i2o.c: note: in included file (through include/linux/irqflags.h, include/asm-generic/cmpxchg-local.h, arch/xtensa/include/asm/cmpxchg.h, ...): >> arch/xtensa/include/asm/irqflags.h:61:9: sparse: sparse: context imbalance >> in 'adpt_i2o_post_wait' - unexpected unlock drivers/scsi/dpt_i2o.c: note: in included file (through arch/xtensa/include/asm/io.h, include/linux/io.h, include/linux/irq.h, ...): include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@ include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] value include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype] include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@ include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] value include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype] include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 drivers/scsi/dpt_i2o.c:1757:9: sparse: sparse: context imbalance in 'adpt_i2o_passthru' - different lock contexts for basic block drivers/scsi/dpt_i2o.c:2033:9: sparse: sparse: context imbalance in 'adpt_ioctl' - different lock contexts for basic block include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@ include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] value include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype] include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:225:22: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __le32 [usertype] @@ include/asm-generic/io.h:225:22: sparse: expected unsigned int [usertype] value include/asm-generic/io.h:225:22: sparse: got restricted __le32 [usertype] include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: cast to restricted __le32 include/asm-generic/io.h:179:15: sparse: sparse: too many warnings vim +/adpt_i2o_post_wait +61 arch/xtensa/include/asm/irqflags.h df9ee29270c11db David Howells 2010-10-07 57 df9ee29270c11db David Howells 2010-10-07 58 static inline void arch_local_irq_enable(void) df9ee29270c11db David Howells 2010-10-07 59 { df9ee29270c11db David Howells 2010-10-07 60 unsigned long flags; df9ee29270c11db David Howells 2010-10-07 @61 asm volatile("rsil %0, 0" : "=a" (flags) :: "memory"); df9ee29270c11db David Howells 2010-10-07 62 } df9ee29270c11db David Howells 2010-10-07 63 :::::: The code at line 61 was first introduced by commit :::::: df9ee29270c11dba7d0fe0b83ce47a4d8e8d2101 Fix IRQ flag handling naming :::::: TO: David Howells <[email protected]> :::::: CC: David Howells <[email protected]> --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/[email protected]
.config.gz
Description: application/gzip
_______________________________________________ kbuild mailing list -- [email protected] To unsubscribe send an email to [email protected]
