All of lore.kernel.org
 help / color / mirror / Atom feed
* include/linux/spinlock.h:379:9: sparse: sparse: context imbalance in 'mxc_rtc_lock' - wrong count at exit
@ 2021-01-15  6:41 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-01-15  6:41 UTC (permalink / raw)
  To: kbuild

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

CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Alexandre Belloni <alexandre.belloni@bootlin.com>
CC: Fabio Estevam <festevam@gmail.com>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   146620506274bd24d52fb1c589110a30eed8240b
commit: 0020868f2a7037e87d6b3b196526de2fb885830d rtc: mxc{,_v2}: enable COMPILE_TEST
date:   6 weeks ago
:::::: branch date: 9 hours ago
:::::: commit date: 6 weeks ago
config: powerpc-randconfig-s031-20210115 (attached as .config)
compiler: powerpc-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-208-g46a52ca4-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0020868f2a7037e87d6b3b196526de2fb885830d
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 0020868f2a7037e87d6b3b196526de2fb885830d
        # 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=powerpc 

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/rtc/rtc-mxc_v2.c: note: in included file (through include/linux/rwsem.h, include/linux/notifier.h, include/linux/clk.h):
>> include/linux/spinlock.h:379:9: sparse: sparse: context imbalance in 'mxc_rtc_lock' - wrong count at exit
   include/linux/spinlock.h:404:9: sparse: sparse: context imbalance in 'mxc_rtc_unlock' - unexpected unlock

vim +/mxc_rtc_lock +379 include/linux/spinlock.h

c2f21ce2e31286a0 Thomas Gleixner 2009-12-02  376  
3490565b633c705d Denys Vlasenko  2015-07-13  377  static __always_inline void spin_lock_irq(spinlock_t *lock)
c2f21ce2e31286a0 Thomas Gleixner 2009-12-02  378  {
c2f21ce2e31286a0 Thomas Gleixner 2009-12-02 @379  	raw_spin_lock_irq(&lock->rlock);
c2f21ce2e31286a0 Thomas Gleixner 2009-12-02  380  }
c2f21ce2e31286a0 Thomas Gleixner 2009-12-02  381  

:::::: The code at line 379 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: 29297 bytes --]

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

* include/linux/spinlock.h:379:9: sparse: sparse: context imbalance in 'mxc_rtc_lock' - wrong count at exit
@ 2021-03-30  3:10 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-03-30  3:10 UTC (permalink / raw)
  To: kbuild

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

CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Alexandre Belloni <alexandre.belloni@bootlin.com>
CC: Fabio Estevam <festevam@gmail.com>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   1e43c377a79f9189fea8f2711b399d4e8b4e609b
commit: 0020868f2a7037e87d6b3b196526de2fb885830d rtc: mxc{,_v2}: enable COMPILE_TEST
date:   4 months ago
:::::: branch date: 9 hours ago
:::::: commit date: 4 months ago
config: sparc64-randconfig-s031-20210330 (attached as .config)
compiler: sparc64-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-277-gc089cd2d-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0020868f2a7037e87d6b3b196526de2fb885830d
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 0020868f2a7037e87d6b3b196526de2fb885830d
        # 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=sparc64 

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/rtc/rtc-mxc_v2.c: note: in included file (through include/linux/rwsem.h, include/linux/notifier.h, include/linux/clk.h):
>> include/linux/spinlock.h:379:9: sparse: sparse: context imbalance in 'mxc_rtc_lock' - wrong count at exit
   drivers/rtc/rtc-mxc_v2.c:128:12: sparse: sparse: context imbalance in 'mxc_rtc_unlock' - unexpected unlock

vim +/mxc_rtc_lock +379 include/linux/spinlock.h

c2f21ce2e31286 Thomas Gleixner 2009-12-02  376  
3490565b633c70 Denys Vlasenko  2015-07-13  377  static __always_inline void spin_lock_irq(spinlock_t *lock)
c2f21ce2e31286 Thomas Gleixner 2009-12-02  378  {
c2f21ce2e31286 Thomas Gleixner 2009-12-02 @379  	raw_spin_lock_irq(&lock->rlock);
c2f21ce2e31286 Thomas Gleixner 2009-12-02  380  }
c2f21ce2e31286 Thomas Gleixner 2009-12-02  381  

:::::: The code at line 379 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: 29958 bytes --]

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

end of thread, other threads:[~2021-03-30  3:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-15  6:41 include/linux/spinlock.h:379:9: sparse: sparse: context imbalance in 'mxc_rtc_lock' - wrong count at exit kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2021-03-30  3:10 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.