All of lore.kernel.org
 help / color / mirror / Atom feed
* include/linux/spinlock.h:393:9: sparse: sparse: context imbalance in 'req_done' - unexpected unlock
@ 2020-07-06  9:29 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2020-07-06  9:29 UTC (permalink / raw)
  To: Luc Van Oostenryck; +Cc: kbuild-all, linux-kernel, Masahiro Yamada

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   dcb7fd82c75ee2d6e6f9d8cc71c52519ed52e258
commit: 80591e61a0f7e88deaada69844e4a31280c4a38f kbuild: tell sparse about the $ARCH
date:   8 months ago
config: nios2-randconfig-s032-20200706 (attached as .config)
compiler: nios2-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-14-g8fce3d7a-dirty
        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=nios2 

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


sparse warnings: (new ones prefixed by >>)

   drivers/usb/gadget/udc/pxa27x_udc.c:2093:20: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __le16 [assigned] [usertype] wValue @@     got int config @@
   drivers/usb/gadget/udc/pxa27x_udc.c:2093:20: sparse:     expected restricted __le16 [assigned] [usertype] wValue
   drivers/usb/gadget/udc/pxa27x_udc.c:2093:20: sparse:     got int config
   drivers/usb/gadget/udc/pxa27x_udc.c:2122:20: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __le16 [assigned] [usertype] wValue @@     got int alt @@
   drivers/usb/gadget/udc/pxa27x_udc.c:2122:20: sparse:     expected restricted __le16 [assigned] [usertype] wValue
   drivers/usb/gadget/udc/pxa27x_udc.c:2122:20: sparse:     got int alt
   drivers/usb/gadget/udc/pxa27x_udc.c:2123:20: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __le16 [assigned] [usertype] wIndex @@     got int iface @@
   drivers/usb/gadget/udc/pxa27x_udc.c:2123:20: sparse:     expected restricted __le16 [assigned] [usertype] wIndex
   drivers/usb/gadget/udc/pxa27x_udc.c:2123:20: sparse:     got int iface
   drivers/usb/gadget/udc/pxa27x_udc.c:2306:17: sparse: sparse: incorrect type in initializer (different base types) @@     expected restricted __le16 [usertype] wMaxPacketSize @@     got unsigned int @@
   drivers/usb/gadget/udc/pxa27x_udc.c:2306:17: sparse:     expected restricted __le16 [usertype] wMaxPacketSize
   drivers/usb/gadget/udc/pxa27x_udc.c:2306:17: sparse:     got unsigned int
   drivers/usb/gadget/udc/pxa27x_udc.c:2307:17: sparse: sparse: incorrect type in initializer (different base types) @@     expected restricted __le16 [usertype] wMaxPacketSize @@     got unsigned int @@
   drivers/usb/gadget/udc/pxa27x_udc.c:2307:17: sparse:     expected restricted __le16 [usertype] wMaxPacketSize
   drivers/usb/gadget/udc/pxa27x_udc.c:2307:17: sparse:     got unsigned int
   drivers/usb/gadget/udc/pxa27x_udc.c:2308:17: sparse: sparse: incorrect type in initializer (different base types) @@     expected restricted __le16 [usertype] wMaxPacketSize @@     got unsigned int @@
   drivers/usb/gadget/udc/pxa27x_udc.c:2308:17: sparse:     expected restricted __le16 [usertype] wMaxPacketSize
   drivers/usb/gadget/udc/pxa27x_udc.c:2308:17: sparse:     got unsigned int
   drivers/usb/gadget/udc/pxa27x_udc.c:2309:17: sparse: sparse: incorrect type in initializer (different base types) @@     expected restricted __le16 [usertype] wMaxPacketSize @@     got unsigned int @@
   drivers/usb/gadget/udc/pxa27x_udc.c:2309:17: sparse:     expected restricted __le16 [usertype] wMaxPacketSize
   drivers/usb/gadget/udc/pxa27x_udc.c:2309:17: sparse:     got unsigned int
   drivers/usb/gadget/udc/pxa27x_udc.c:2310:17: sparse: sparse: incorrect type in initializer (different base types) @@     expected restricted __le16 [usertype] wMaxPacketSize @@     got unsigned int @@
   drivers/usb/gadget/udc/pxa27x_udc.c:2310:17: sparse:     expected restricted __le16 [usertype] wMaxPacketSize
   drivers/usb/gadget/udc/pxa27x_udc.c:2310:17: sparse:     got unsigned int
   drivers/usb/gadget/udc/pxa27x_udc.c:2311:17: sparse: sparse: incorrect type in initializer (different base types) @@     expected restricted __le16 [usertype] wMaxPacketSize @@     got unsigned int @@
   drivers/usb/gadget/udc/pxa27x_udc.c:2311:17: sparse:     expected restricted __le16 [usertype] wMaxPacketSize
   drivers/usb/gadget/udc/pxa27x_udc.c:2311:17: sparse:     got unsigned int
>> include/linux/spinlock.h:393:9: sparse: sparse: context imbalance in 'req_done' - unexpected unlock

vim +/req_done +393 include/linux/spinlock.h

c2f21ce2e31286a Thomas Gleixner 2009-12-02  390  
3490565b633c705 Denys Vlasenko  2015-07-13  391  static __always_inline void spin_unlock_irqrestore(spinlock_t *lock, unsigned long flags)
c2f21ce2e31286a Thomas Gleixner 2009-12-02  392  {
c2f21ce2e31286a Thomas Gleixner 2009-12-02 @393  	raw_spin_unlock_irqrestore(&lock->rlock, flags);
c2f21ce2e31286a Thomas Gleixner 2009-12-02  394  }
c2f21ce2e31286a Thomas Gleixner 2009-12-02  395  

:::::: The code at line 393 was first introduced by commit
:::::: c2f21ce2e31286a0a32f8da0a7856e9ca1122ef3 locking: Implement new raw_spinlock

:::::: TO: Thomas Gleixner <tglx@linutronix.de>
:::::: CC: Thomas Gleixner <tglx@linutronix.de>

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

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* include/linux/spinlock.h:393:9: sparse: sparse: context imbalance in 'req_done' - unexpected unlock
@ 2020-07-06  9:29 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2020-07-06  9:29 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   dcb7fd82c75ee2d6e6f9d8cc71c52519ed52e258
commit: 80591e61a0f7e88deaada69844e4a31280c4a38f kbuild: tell sparse about the $ARCH
date:   8 months ago
config: nios2-randconfig-s032-20200706 (attached as .config)
compiler: nios2-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-14-g8fce3d7a-dirty
        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=nios2 

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


sparse warnings: (new ones prefixed by >>)

   drivers/usb/gadget/udc/pxa27x_udc.c:2093:20: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __le16 [assigned] [usertype] wValue @@     got int config @@
   drivers/usb/gadget/udc/pxa27x_udc.c:2093:20: sparse:     expected restricted __le16 [assigned] [usertype] wValue
   drivers/usb/gadget/udc/pxa27x_udc.c:2093:20: sparse:     got int config
   drivers/usb/gadget/udc/pxa27x_udc.c:2122:20: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __le16 [assigned] [usertype] wValue @@     got int alt @@
   drivers/usb/gadget/udc/pxa27x_udc.c:2122:20: sparse:     expected restricted __le16 [assigned] [usertype] wValue
   drivers/usb/gadget/udc/pxa27x_udc.c:2122:20: sparse:     got int alt
   drivers/usb/gadget/udc/pxa27x_udc.c:2123:20: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __le16 [assigned] [usertype] wIndex @@     got int iface @@
   drivers/usb/gadget/udc/pxa27x_udc.c:2123:20: sparse:     expected restricted __le16 [assigned] [usertype] wIndex
   drivers/usb/gadget/udc/pxa27x_udc.c:2123:20: sparse:     got int iface
   drivers/usb/gadget/udc/pxa27x_udc.c:2306:17: sparse: sparse: incorrect type in initializer (different base types) @@     expected restricted __le16 [usertype] wMaxPacketSize @@     got unsigned int @@
   drivers/usb/gadget/udc/pxa27x_udc.c:2306:17: sparse:     expected restricted __le16 [usertype] wMaxPacketSize
   drivers/usb/gadget/udc/pxa27x_udc.c:2306:17: sparse:     got unsigned int
   drivers/usb/gadget/udc/pxa27x_udc.c:2307:17: sparse: sparse: incorrect type in initializer (different base types) @@     expected restricted __le16 [usertype] wMaxPacketSize @@     got unsigned int @@
   drivers/usb/gadget/udc/pxa27x_udc.c:2307:17: sparse:     expected restricted __le16 [usertype] wMaxPacketSize
   drivers/usb/gadget/udc/pxa27x_udc.c:2307:17: sparse:     got unsigned int
   drivers/usb/gadget/udc/pxa27x_udc.c:2308:17: sparse: sparse: incorrect type in initializer (different base types) @@     expected restricted __le16 [usertype] wMaxPacketSize @@     got unsigned int @@
   drivers/usb/gadget/udc/pxa27x_udc.c:2308:17: sparse:     expected restricted __le16 [usertype] wMaxPacketSize
   drivers/usb/gadget/udc/pxa27x_udc.c:2308:17: sparse:     got unsigned int
   drivers/usb/gadget/udc/pxa27x_udc.c:2309:17: sparse: sparse: incorrect type in initializer (different base types) @@     expected restricted __le16 [usertype] wMaxPacketSize @@     got unsigned int @@
   drivers/usb/gadget/udc/pxa27x_udc.c:2309:17: sparse:     expected restricted __le16 [usertype] wMaxPacketSize
   drivers/usb/gadget/udc/pxa27x_udc.c:2309:17: sparse:     got unsigned int
   drivers/usb/gadget/udc/pxa27x_udc.c:2310:17: sparse: sparse: incorrect type in initializer (different base types) @@     expected restricted __le16 [usertype] wMaxPacketSize @@     got unsigned int @@
   drivers/usb/gadget/udc/pxa27x_udc.c:2310:17: sparse:     expected restricted __le16 [usertype] wMaxPacketSize
   drivers/usb/gadget/udc/pxa27x_udc.c:2310:17: sparse:     got unsigned int
   drivers/usb/gadget/udc/pxa27x_udc.c:2311:17: sparse: sparse: incorrect type in initializer (different base types) @@     expected restricted __le16 [usertype] wMaxPacketSize @@     got unsigned int @@
   drivers/usb/gadget/udc/pxa27x_udc.c:2311:17: sparse:     expected restricted __le16 [usertype] wMaxPacketSize
   drivers/usb/gadget/udc/pxa27x_udc.c:2311:17: sparse:     got unsigned int
>> include/linux/spinlock.h:393:9: sparse: sparse: context imbalance in 'req_done' - unexpected unlock

vim +/req_done +393 include/linux/spinlock.h

c2f21ce2e31286a Thomas Gleixner 2009-12-02  390  
3490565b633c705 Denys Vlasenko  2015-07-13  391  static __always_inline void spin_unlock_irqrestore(spinlock_t *lock, unsigned long flags)
c2f21ce2e31286a Thomas Gleixner 2009-12-02  392  {
c2f21ce2e31286a Thomas Gleixner 2009-12-02 @393  	raw_spin_unlock_irqrestore(&lock->rlock, flags);
c2f21ce2e31286a Thomas Gleixner 2009-12-02  394  }
c2f21ce2e31286a Thomas Gleixner 2009-12-02  395  

:::::: The code at line 393 was first introduced by commit
:::::: c2f21ce2e31286a0a32f8da0a7856e9ca1122ef3 locking: Implement new raw_spinlock

:::::: TO: Thomas Gleixner <tglx@linutronix.de>
:::::: CC: Thomas Gleixner <tglx@linutronix.de>

---
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: 26809 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-07-06  9:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-06  9:29 include/linux/spinlock.h:393:9: sparse: sparse: context imbalance in 'req_done' - unexpected unlock kernel test robot
2020-07-06  9:29 ` 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.