All of lore.kernel.org
 help / color / mirror / Atom feed
* include/linux/spinlock.h:393:9: sparse: sparse: context imbalance in 'mlxbf2_gpio_lock_release' - wrong count at exit
@ 2020-12-21 21:04 kernel test robot
  0 siblings, 0 replies; 8+ messages in thread
From: kernel test robot @ 2020-12-21 21:04 UTC (permalink / raw)
  To: kbuild

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

CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Lee Jones <lee.jones@linaro.org>
CC: Linus Walleij <linus.walleij@linaro.org>
CC: Asmaa Mnebhi <asmaa@mellanox.com>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   8653b778e454a7708847aeafe689bce07aeeb94e
commit: a7a9ad232f02e6aa659cc9b58b72b1a30dccd1a6 gpio: gpio-mlxbf2.c: Provide __releases() annotation to stop confusing Sparse
date:   6 months ago
:::::: branch date: 2 hours ago
:::::: commit date: 6 months ago
config: x86_64-randconfig-s021-20201221 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.3-184-g1b896707-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a7a9ad232f02e6aa659cc9b58b72b1a30dccd1a6
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout a7a9ad232f02e6aa659cc9b58b72b1a30dccd1a6
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64 

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/gpio/gpio-mlxbf2.c:125:12: sparse: sparse: context imbalance in 'mlxbf2_gpio_lock_acquire' - different lock contexts for basic block
   drivers/gpio/gpio-mlxbf2.c: note: in included file (through include/linux/radix-tree.h, include/linux/idr.h, include/linux/kernfs.h, ...):
>> include/linux/spinlock.h:393:9: sparse: sparse: context imbalance in 'mlxbf2_gpio_lock_release' - wrong count at exit
   drivers/gpio/gpio-mlxbf2.c:192:15: sparse: sparse: context imbalance in 'mlxbf2_gpio_direction_input' - unexpected unlock
   drivers/gpio/gpio-mlxbf2.c:220:15: sparse: sparse: context imbalance in 'mlxbf2_gpio_direction_output' - unexpected unlock

vim +/mlxbf2_gpio_lock_release +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(spinlock_t *lock)
c2f21ce2e31286a Thomas Gleixner 2009-12-02  392  {
c2f21ce2e31286a Thomas Gleixner 2009-12-02 @393  	raw_spin_unlock(&lock->rlock);
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: 45701 bytes --]

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

* include/linux/spinlock.h:393:9: sparse: sparse: context imbalance in 'mlxbf2_gpio_lock_release' - wrong count at exit
@ 2020-12-22 22:03 kernel test robot
  0 siblings, 0 replies; 8+ messages in thread
From: kernel test robot @ 2020-12-22 22:03 UTC (permalink / raw)
  To: kbuild

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

CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Lee Jones <lee.jones@linaro.org>
CC: Linus Walleij <linus.walleij@linaro.org>
CC: Asmaa Mnebhi <asmaa@mellanox.com>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   8653b778e454a7708847aeafe689bce07aeeb94e
commit: a7a9ad232f02e6aa659cc9b58b72b1a30dccd1a6 gpio: gpio-mlxbf2.c: Provide __releases() annotation to stop confusing Sparse
date:   6 months ago
:::::: branch date: 27 hours ago
:::::: commit date: 6 months ago
config: x86_64-randconfig-s021-20201221 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.3-184-g1b896707-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a7a9ad232f02e6aa659cc9b58b72b1a30dccd1a6
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout a7a9ad232f02e6aa659cc9b58b72b1a30dccd1a6
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64 

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/gpio/gpio-mlxbf2.c:125:12: sparse: sparse: context imbalance in 'mlxbf2_gpio_lock_acquire' - different lock contexts for basic block
   drivers/gpio/gpio-mlxbf2.c: note: in included file (through include/linux/radix-tree.h, include/linux/idr.h, include/linux/kernfs.h, ...):
>> include/linux/spinlock.h:393:9: sparse: sparse: context imbalance in 'mlxbf2_gpio_lock_release' - wrong count at exit
   drivers/gpio/gpio-mlxbf2.c:192:15: sparse: sparse: context imbalance in 'mlxbf2_gpio_direction_input' - unexpected unlock
   drivers/gpio/gpio-mlxbf2.c:220:15: sparse: sparse: context imbalance in 'mlxbf2_gpio_direction_output' - unexpected unlock

vim +/mlxbf2_gpio_lock_release +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(spinlock_t *lock)
c2f21ce2e31286a Thomas Gleixner 2009-12-02  392  {
c2f21ce2e31286a Thomas Gleixner 2009-12-02 @393  	raw_spin_unlock(&lock->rlock);
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: 45701 bytes --]

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

* include/linux/spinlock.h:393:9: sparse: sparse: context imbalance in 'mlxbf2_gpio_lock_release' - wrong count at exit
@ 2020-12-22  8:09 kernel test robot
  0 siblings, 0 replies; 8+ messages in thread
From: kernel test robot @ 2020-12-22  8:09 UTC (permalink / raw)
  To: kbuild

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

CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Lee Jones <lee.jones@linaro.org>
CC: Linus Walleij <linus.walleij@linaro.org>
CC: Asmaa Mnebhi <asmaa@mellanox.com>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   8653b778e454a7708847aeafe689bce07aeeb94e
commit: a7a9ad232f02e6aa659cc9b58b72b1a30dccd1a6 gpio: gpio-mlxbf2.c: Provide __releases() annotation to stop confusing Sparse
date:   6 months ago
:::::: branch date: 14 hours ago
:::::: commit date: 6 months ago
config: x86_64-randconfig-s021-20201221 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.3-184-g1b896707-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a7a9ad232f02e6aa659cc9b58b72b1a30dccd1a6
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout a7a9ad232f02e6aa659cc9b58b72b1a30dccd1a6
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64 

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/gpio/gpio-mlxbf2.c:125:12: sparse: sparse: context imbalance in 'mlxbf2_gpio_lock_acquire' - different lock contexts for basic block
   drivers/gpio/gpio-mlxbf2.c: note: in included file (through include/linux/radix-tree.h, include/linux/idr.h, include/linux/kernfs.h, ...):
>> include/linux/spinlock.h:393:9: sparse: sparse: context imbalance in 'mlxbf2_gpio_lock_release' - wrong count at exit
   drivers/gpio/gpio-mlxbf2.c:192:15: sparse: sparse: context imbalance in 'mlxbf2_gpio_direction_input' - unexpected unlock
   drivers/gpio/gpio-mlxbf2.c:220:15: sparse: sparse: context imbalance in 'mlxbf2_gpio_direction_output' - unexpected unlock

vim +/mlxbf2_gpio_lock_release +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(spinlock_t *lock)
c2f21ce2e31286a Thomas Gleixner 2009-12-02  392  {
c2f21ce2e31286a Thomas Gleixner 2009-12-02 @393  	raw_spin_unlock(&lock->rlock);
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: 45701 bytes --]

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

* include/linux/spinlock.h:393:9: sparse: sparse: context imbalance in 'mlxbf2_gpio_lock_release' - wrong count at exit
@ 2020-12-22  4:35 kernel test robot
  0 siblings, 0 replies; 8+ messages in thread
From: kernel test robot @ 2020-12-22  4:35 UTC (permalink / raw)
  To: kbuild

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

CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Lee Jones <lee.jones@linaro.org>
CC: Linus Walleij <linus.walleij@linaro.org>
CC: Asmaa Mnebhi <asmaa@mellanox.com>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   8653b778e454a7708847aeafe689bce07aeeb94e
commit: a7a9ad232f02e6aa659cc9b58b72b1a30dccd1a6 gpio: gpio-mlxbf2.c: Provide __releases() annotation to stop confusing Sparse
date:   6 months ago
:::::: branch date: 10 hours ago
:::::: commit date: 6 months ago
config: x86_64-randconfig-s021-20201221 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.3-184-g1b896707-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a7a9ad232f02e6aa659cc9b58b72b1a30dccd1a6
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout a7a9ad232f02e6aa659cc9b58b72b1a30dccd1a6
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64 

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/gpio/gpio-mlxbf2.c:125:12: sparse: sparse: context imbalance in 'mlxbf2_gpio_lock_acquire' - different lock contexts for basic block
   drivers/gpio/gpio-mlxbf2.c: note: in included file (through include/linux/radix-tree.h, include/linux/idr.h, include/linux/kernfs.h, ...):
>> include/linux/spinlock.h:393:9: sparse: sparse: context imbalance in 'mlxbf2_gpio_lock_release' - wrong count at exit
   drivers/gpio/gpio-mlxbf2.c:192:15: sparse: sparse: context imbalance in 'mlxbf2_gpio_direction_input' - unexpected unlock
   drivers/gpio/gpio-mlxbf2.c:220:15: sparse: sparse: context imbalance in 'mlxbf2_gpio_direction_output' - unexpected unlock

vim +/mlxbf2_gpio_lock_release +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(spinlock_t *lock)
c2f21ce2e31286a Thomas Gleixner 2009-12-02  392  {
c2f21ce2e31286a Thomas Gleixner 2009-12-02 @393  	raw_spin_unlock(&lock->rlock);
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: 45701 bytes --]

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

* include/linux/spinlock.h:393:9: sparse: sparse: context imbalance in 'mlxbf2_gpio_lock_release' - wrong count at exit
@ 2020-12-22  0:49 kernel test robot
  0 siblings, 0 replies; 8+ messages in thread
From: kernel test robot @ 2020-12-22  0:49 UTC (permalink / raw)
  To: kbuild

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

CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Lee Jones <lee.jones@linaro.org>
CC: Linus Walleij <linus.walleij@linaro.org>
CC: Asmaa Mnebhi <asmaa@mellanox.com>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   8653b778e454a7708847aeafe689bce07aeeb94e
commit: a7a9ad232f02e6aa659cc9b58b72b1a30dccd1a6 gpio: gpio-mlxbf2.c: Provide __releases() annotation to stop confusing Sparse
date:   6 months ago
:::::: branch date: 6 hours ago
:::::: commit date: 6 months ago
config: x86_64-randconfig-s021-20201221 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.3-184-g1b896707-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a7a9ad232f02e6aa659cc9b58b72b1a30dccd1a6
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout a7a9ad232f02e6aa659cc9b58b72b1a30dccd1a6
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64 

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/gpio/gpio-mlxbf2.c:125:12: sparse: sparse: context imbalance in 'mlxbf2_gpio_lock_acquire' - different lock contexts for basic block
   drivers/gpio/gpio-mlxbf2.c: note: in included file (through include/linux/radix-tree.h, include/linux/idr.h, include/linux/kernfs.h, ...):
>> include/linux/spinlock.h:393:9: sparse: sparse: context imbalance in 'mlxbf2_gpio_lock_release' - wrong count at exit
   drivers/gpio/gpio-mlxbf2.c:192:15: sparse: sparse: context imbalance in 'mlxbf2_gpio_direction_input' - unexpected unlock
   drivers/gpio/gpio-mlxbf2.c:220:15: sparse: sparse: context imbalance in 'mlxbf2_gpio_direction_output' - unexpected unlock

vim +/mlxbf2_gpio_lock_release +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(spinlock_t *lock)
c2f21ce2e31286a Thomas Gleixner 2009-12-02  392  {
c2f21ce2e31286a Thomas Gleixner 2009-12-02 @393  	raw_spin_unlock(&lock->rlock);
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: 45701 bytes --]

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

* include/linux/spinlock.h:393:9: sparse: sparse: context imbalance in 'mlxbf2_gpio_lock_release' - wrong count at exit
@ 2020-12-21 23:13 kernel test robot
  0 siblings, 0 replies; 8+ messages in thread
From: kernel test robot @ 2020-12-21 23:13 UTC (permalink / raw)
  To: kbuild

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

CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Lee Jones <lee.jones@linaro.org>
CC: Linus Walleij <linus.walleij@linaro.org>
CC: Asmaa Mnebhi <asmaa@mellanox.com>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   8653b778e454a7708847aeafe689bce07aeeb94e
commit: a7a9ad232f02e6aa659cc9b58b72b1a30dccd1a6 gpio: gpio-mlxbf2.c: Provide __releases() annotation to stop confusing Sparse
date:   6 months ago
:::::: branch date: 5 hours ago
:::::: commit date: 6 months ago
config: x86_64-randconfig-s021-20201221 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.3-184-g1b896707-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a7a9ad232f02e6aa659cc9b58b72b1a30dccd1a6
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout a7a9ad232f02e6aa659cc9b58b72b1a30dccd1a6
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64 

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/gpio/gpio-mlxbf2.c:125:12: sparse: sparse: context imbalance in 'mlxbf2_gpio_lock_acquire' - different lock contexts for basic block
   drivers/gpio/gpio-mlxbf2.c: note: in included file (through include/linux/radix-tree.h, include/linux/idr.h, include/linux/kernfs.h, ...):
>> include/linux/spinlock.h:393:9: sparse: sparse: context imbalance in 'mlxbf2_gpio_lock_release' - wrong count at exit
   drivers/gpio/gpio-mlxbf2.c:192:15: sparse: sparse: context imbalance in 'mlxbf2_gpio_direction_input' - unexpected unlock
   drivers/gpio/gpio-mlxbf2.c:220:15: sparse: sparse: context imbalance in 'mlxbf2_gpio_direction_output' - unexpected unlock

vim +/mlxbf2_gpio_lock_release +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(spinlock_t *lock)
c2f21ce2e31286a Thomas Gleixner 2009-12-02  392  {
c2f21ce2e31286a Thomas Gleixner 2009-12-02 @393  	raw_spin_unlock(&lock->rlock);
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: 45701 bytes --]

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

* include/linux/spinlock.h:393:9: sparse: sparse: context imbalance in 'mlxbf2_gpio_lock_release' - wrong count at exit
@ 2020-12-21 20:59 kernel test robot
  0 siblings, 0 replies; 8+ messages in thread
From: kernel test robot @ 2020-12-21 20:59 UTC (permalink / raw)
  To: kbuild

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

CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Lee Jones <lee.jones@linaro.org>
CC: Linus Walleij <linus.walleij@linaro.org>
CC: Asmaa Mnebhi <asmaa@mellanox.com>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   8653b778e454a7708847aeafe689bce07aeeb94e
commit: a7a9ad232f02e6aa659cc9b58b72b1a30dccd1a6 gpio: gpio-mlxbf2.c: Provide __releases() annotation to stop confusing Sparse
date:   6 months ago
:::::: branch date: 2 hours ago
:::::: commit date: 6 months ago
config: x86_64-randconfig-s021-20201221 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.3-184-g1b896707-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a7a9ad232f02e6aa659cc9b58b72b1a30dccd1a6
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout a7a9ad232f02e6aa659cc9b58b72b1a30dccd1a6
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64 

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/gpio/gpio-mlxbf2.c:125:12: sparse: sparse: context imbalance in 'mlxbf2_gpio_lock_acquire' - different lock contexts for basic block
   drivers/gpio/gpio-mlxbf2.c: note: in included file (through include/linux/radix-tree.h, include/linux/idr.h, include/linux/kernfs.h, ...):
>> include/linux/spinlock.h:393:9: sparse: sparse: context imbalance in 'mlxbf2_gpio_lock_release' - wrong count at exit
   drivers/gpio/gpio-mlxbf2.c:192:15: sparse: sparse: context imbalance in 'mlxbf2_gpio_direction_input' - unexpected unlock
   drivers/gpio/gpio-mlxbf2.c:220:15: sparse: sparse: context imbalance in 'mlxbf2_gpio_direction_output' - unexpected unlock

vim +/mlxbf2_gpio_lock_release +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(spinlock_t *lock)
c2f21ce2e31286a Thomas Gleixner 2009-12-02  392  {
c2f21ce2e31286a Thomas Gleixner 2009-12-02 @393  	raw_spin_unlock(&lock->rlock);
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: 45701 bytes --]

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

* include/linux/spinlock.h:393:9: sparse: sparse: context imbalance in 'mlxbf2_gpio_lock_release' - wrong count at exit
@ 2020-12-21 11:40 kernel test robot
  0 siblings, 0 replies; 8+ messages in thread
From: kernel test robot @ 2020-12-21 11:40 UTC (permalink / raw)
  To: kbuild

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

CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Lee Jones <lee.jones@linaro.org>
CC: Linus Walleij <linus.walleij@linaro.org>
CC: Asmaa Mnebhi <asmaa@mellanox.com>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   e37b12e4bb21e7c81732370b0a2b34bd196f380b
commit: a7a9ad232f02e6aa659cc9b58b72b1a30dccd1a6 gpio: gpio-mlxbf2.c: Provide __releases() annotation to stop confusing Sparse
date:   6 months ago
:::::: branch date: 14 hours ago
:::::: commit date: 6 months ago
config: x86_64-randconfig-s021-20201221 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.3-184-g1b896707-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a7a9ad232f02e6aa659cc9b58b72b1a30dccd1a6
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout a7a9ad232f02e6aa659cc9b58b72b1a30dccd1a6
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64 

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/gpio/gpio-mlxbf2.c:125:12: sparse: sparse: context imbalance in 'mlxbf2_gpio_lock_acquire' - different lock contexts for basic block
   drivers/gpio/gpio-mlxbf2.c: note: in included file (through include/linux/radix-tree.h, include/linux/idr.h, include/linux/kernfs.h, ...):
>> include/linux/spinlock.h:393:9: sparse: sparse: context imbalance in 'mlxbf2_gpio_lock_release' - wrong count at exit
   drivers/gpio/gpio-mlxbf2.c:192:15: sparse: sparse: context imbalance in 'mlxbf2_gpio_direction_input' - unexpected unlock
   drivers/gpio/gpio-mlxbf2.c:220:15: sparse: sparse: context imbalance in 'mlxbf2_gpio_direction_output' - unexpected unlock

vim +/mlxbf2_gpio_lock_release +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(spinlock_t *lock)
c2f21ce2e31286a Thomas Gleixner 2009-12-02  392  {
c2f21ce2e31286a Thomas Gleixner 2009-12-02 @393  	raw_spin_unlock(&lock->rlock);
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: 45701 bytes --]

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

end of thread, other threads:[~2020-12-22 22:03 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-21 21:04 include/linux/spinlock.h:393:9: sparse: sparse: context imbalance in 'mlxbf2_gpio_lock_release' - wrong count at exit kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2020-12-22 22:03 kernel test robot
2020-12-22  8:09 kernel test robot
2020-12-22  4:35 kernel test robot
2020-12-22  0:49 kernel test robot
2020-12-21 23:13 kernel test robot
2020-12-21 20:59 kernel test robot
2020-12-21 11:40 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.