All of lore.kernel.org
 help / color / mirror / Atom feed
* arch/m68k/include/asm/irqflags.h:35:9: sparse: sparse: context imbalance in 'adpt_i2o_post_wait' - unexpected unlock
@ 2020-09-30  7:24 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-09-30  7:24 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 15622 bytes --]

CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
CC: Masahiro Yamada <yamada.masahiro@socionext.com>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   02de58b24d2e1b2cf947d57205bd2221d897193c
commit: 80591e61a0f7e88deaada69844e4a31280c4a38f kbuild: tell sparse about the $ARCH
date:   11 months ago
:::::: branch date: 6 hours ago
:::::: commit date: 11 months ago
config: m68k-randconfig-s031-20200930 (attached as .config)
compiler: m68k-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.2-201-g24bdaac6-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=m68k 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

	echo
	echo "sparse warnings: (new ones prefixed by >>)"
	echo
   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 void const *__gu_ptr @@     got unsigned int [noderef] [usertype] <asn:1> * @@
   drivers/scsi/dpt_i2o.c:1676:12: sparse:     expected void const *__gu_ptr
   drivers/scsi/dpt_i2o.c:1676:12: sparse:     got unsigned int [noderef] [usertype] <asn:1> *
   drivers/scsi/dpt_i2o.c:1691:9: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected void const *__gu_ptr @@     got unsigned int [noderef] [usertype] <asn:1> * @@
   drivers/scsi/dpt_i2o.c:1691:9: sparse:     expected void const *__gu_ptr
   drivers/scsi/dpt_i2o.c:1691:9: sparse:     got unsigned int [noderef] [usertype] <asn:1> *
   drivers/scsi/dpt_i2o.c:1790:20: sparse: sparse: incorrect type in initializer (different address spaces) @@     expected void const *__gu_ptr @@     got unsigned int [noderef] [usertype] <asn:1> * @@
   drivers/scsi/dpt_i2o.c:1790:20: sparse:     expected void const *__gu_ptr
   drivers/scsi/dpt_i2o.c:1790:20: sparse:     got unsigned int [noderef] [usertype] <asn:1> *
   drivers/scsi/dpt_i2o.c: note: in included file (through arch/m68k/include/asm/io.h, include/linux/io.h, include/linux/pci.h):
   include/asm-generic/io.h:153:15: sparse: sparse: cast removes address space '<asn:2>' of expression
   include/asm-generic/io.h:153:15: sparse: sparse: cast removes address space '<asn:2>' of expression
   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/irqflags.h, include/linux/spinlock.h, include/linux/seqlock.h, ...):
>> arch/m68k/include/asm/irqflags.h:35:9: sparse: sparse: context imbalance in 'adpt_i2o_post_wait' - unexpected unlock
   drivers/scsi/dpt_i2o.c: note: in included file (through arch/m68k/include/asm/io.h, include/linux/io.h, include/linux/pci.h):
   arch/m68k/include/asm/io_no.h:77:24: sparse: sparse: cast removes address space '<asn:2>' of expression
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '<asn:2>' of expression
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '<asn:2>' of expression
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '<asn:2>' of expression
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '<asn:2>' of expression
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '<asn:2>' of expression
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '<asn:2>' of expression
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:94:17: sparse: sparse: cast removes address space '<asn:2>' of expression
   arch/m68k/include/asm/io_no.h:96:17: sparse: sparse: cast removes address space '<asn:2>' of expression
   arch/m68k/include/asm/io_no.h:96:17: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int volatile @@     got restricted __le32 [usertype] @@
   arch/m68k/include/asm/io_no.h:96:17: sparse:     expected unsigned int volatile
   arch/m68k/include/asm/io_no.h:96:17: sparse:     got restricted __le32 [usertype]
   arch/m68k/include/asm/io_no.h:77:24: sparse: sparse: cast removes address space '<asn:2>' of expression
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '<asn:2>' of expression
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '<asn:2>' of expression
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '<asn:2>' of expression
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '<asn:2>' of expression
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '<asn:2>' of expression
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '<asn:2>' of expression
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:94:17: sparse: sparse: cast removes address space '<asn:2>' of expression
   arch/m68k/include/asm/io_no.h:96:17: sparse: sparse: cast removes address space '<asn:2>' of expression
   arch/m68k/include/asm/io_no.h:96:17: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int volatile @@     got restricted __le32 [usertype] @@
   arch/m68k/include/asm/io_no.h:96:17: sparse:     expected unsigned int volatile
   arch/m68k/include/asm/io_no.h:96:17: sparse:     got restricted __le32 [usertype]
   arch/m68k/include/asm/io_no.h:77:24: sparse: sparse: cast removes address space '<asn:2>' of expression
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '<asn:2>' of expression
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '<asn:2>' of expression
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '<asn:2>' of expression
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '<asn:2>' of expression
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '<asn:2>' of expression
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '<asn:2>' of expression
   arch/m68k/include/asm/io_no.h:78:16: 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
   arch/m68k/include/asm/io_no.h:77:24: sparse: sparse: cast removes address space '<asn:2>' of expression
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '<asn:2>' of expression
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '<asn:2>' of expression
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '<asn:2>' of expression
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '<asn:2>' of expression
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '<asn:2>' of expression
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '<asn:2>' of expression
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:77:24: sparse: sparse: cast removes address space '<asn:2>' of expression
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '<asn:2>' of expression
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '<asn:2>' of expression
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '<asn:2>' of expression
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '<asn:2>' of expression
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '<asn:2>' of expression
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '<asn:2>' of expression
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:77:24: sparse: sparse: cast removes address space '<asn:2>' of expression
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '<asn:2>' of expression
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '<asn:2>' of expression
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '<asn:2>' of expression
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '<asn:2>' of expression
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '<asn:2>' of expression
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '<asn:2>' of expression
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:77:24: sparse: sparse: cast removes address space '<asn:2>' of expression
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast removes address space '<asn:2>' of expression
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: too many warnings

vim +/adpt_i2o_post_wait +35 arch/m68k/include/asm/irqflags.h

df9ee29270c11db David Howells 2010-10-07  31  
df9ee29270c11db David Howells 2010-10-07  32  static inline void arch_local_irq_enable(void)
df9ee29270c11db David Howells 2010-10-07  33  {
df9ee29270c11db David Howells 2010-10-07  34  #if defined(CONFIG_COLDFIRE)
df9ee29270c11db David Howells 2010-10-07 @35  	asm volatile (
df9ee29270c11db David Howells 2010-10-07  36  		"move	%/sr,%%d0	\n\t"
df9ee29270c11db David Howells 2010-10-07  37  		"andi.l	#0xf8ff,%%d0	\n\t"
df9ee29270c11db David Howells 2010-10-07  38  		"move	%%d0,%/sr	\n"
df9ee29270c11db David Howells 2010-10-07  39  		: /* no outputs */
df9ee29270c11db David Howells 2010-10-07  40  		:
df9ee29270c11db David Howells 2010-10-07  41  		: "cc", "%d0", "memory");
df9ee29270c11db David Howells 2010-10-07  42  #else
df9ee29270c11db David Howells 2010-10-07  43  # if defined(CONFIG_MMU)
df9ee29270c11db David Howells 2010-10-07  44  	if (MACH_IS_Q40 || !hardirq_count())
df9ee29270c11db David Howells 2010-10-07  45  # endif
df9ee29270c11db David Howells 2010-10-07  46  		asm volatile (
df9ee29270c11db David Howells 2010-10-07  47  			"andiw %0,%%sr"
df9ee29270c11db David Howells 2010-10-07  48  			:
df9ee29270c11db David Howells 2010-10-07  49  			: "i" (ALLOWINT)
df9ee29270c11db David Howells 2010-10-07  50  			: "memory");
df9ee29270c11db David Howells 2010-10-07  51  #endif
df9ee29270c11db David Howells 2010-10-07  52  }
df9ee29270c11db David Howells 2010-10-07  53  

:::::: The code at line 35 was first introduced by commit
:::::: df9ee29270c11dba7d0fe0b83ce47a4d8e8d2101 Fix IRQ flag handling naming

:::::: TO: David Howells <dhowells@redhat.com>
:::::: CC: David Howells <dhowells@redhat.com>

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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 21736 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-09-30  7:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-30  7:24 arch/m68k/include/asm/irqflags.h:35:9: sparse: sparse: context imbalance in 'adpt_i2o_post_wait' - unexpected unlock kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.