linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* arch/x86/include/asm/preempt.h:79:9: sparse: sparse: context imbalance in 'xfs_iflush_abort' - wrong count at exit
@ 2020-06-20 11:28 kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2020-06-20 11:28 UTC (permalink / raw)
  To: Dave Chinner
  Cc: kbuild-all, linux-kernel, Darrick J. Wong, Christoph Hellwig,
	Allison Collins, Brian Foster

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   4333a9b0b67bb4e8bcd91bdd80da80b0ec151162
commit: 4165994ac9672d91134675caa6de3645a9ace6c8 xfs: factor common AIL item deletion code
date:   3 months ago
config: i386-randconfig-s002-20200620 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.2-rc1-18-g27caae40-dirty
        git checkout 4165994ac9672d91134675caa6de3645a9ace6c8
        # save the attached .config to linux build tree
        make W=1 C=1 ARCH=i386 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

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 >>)

>> arch/x86/include/asm/preempt.h:79:9: sparse: sparse: context imbalance in 'xfs_iflush_abort' - wrong count at exit

vim +/xfs_iflush_abort +79 arch/x86/include/asm/preempt.h

c2daa3bed53a81 Peter Zijlstra    2013-08-14  72  
c2daa3bed53a81 Peter Zijlstra    2013-08-14  73  /*
c2daa3bed53a81 Peter Zijlstra    2013-08-14  74   * The various preempt_count add/sub methods
c2daa3bed53a81 Peter Zijlstra    2013-08-14  75   */
c2daa3bed53a81 Peter Zijlstra    2013-08-14  76  
c2daa3bed53a81 Peter Zijlstra    2013-08-14  77  static __always_inline void __preempt_count_add(int val)
c2daa3bed53a81 Peter Zijlstra    2013-08-14  78  {
b3ca1c10d7b32f Christoph Lameter 2014-04-07 @79  	raw_cpu_add_4(__preempt_count, val);
c2daa3bed53a81 Peter Zijlstra    2013-08-14  80  }
c2daa3bed53a81 Peter Zijlstra    2013-08-14  81  

:::::: The code at line 79 was first introduced by commit
:::::: b3ca1c10d7b32fdfdfaf5484eda486323f52d9be percpu: add raw_cpu_ops

:::::: TO: Christoph Lameter <cl@linux.com>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>

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

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

* Re: arch/x86/include/asm/preempt.h:79:9: sparse: sparse: context imbalance in 'xfs_iflush_abort' - wrong count at exit
  2020-07-13  3:03 kernel test robot
@ 2020-07-17 20:38 ` Darrick J. Wong
  0 siblings, 0 replies; 3+ messages in thread
From: Darrick J. Wong @ 2020-07-17 20:38 UTC (permalink / raw)
  To: kernel test robot
  Cc: Dave Chinner, kbuild-all, linux-kernel, Christoph Hellwig,
	Allison Collins, Brian Foster

On Mon, Jul 13, 2020 at 11:03:53AM +0800, kernel test robot wrote:
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head:   11ba468877bb23f28956a35e896356252d63c983
> commit: 4165994ac9672d91134675caa6de3645a9ace6c8 xfs: factor common AIL item deletion code
> date:   4 months ago
> config: i386-randconfig-s001-20200713 (attached as .config)
> compiler: gcc-9 (Debian 9.3.0-14) 9.3.0
> reproduce:
>         # apt-get install sparse
>         # sparse version: v0.6.2-37-gc9676a3b-dirty
>         git checkout 4165994ac9672d91134675caa6de3645a9ace6c8
>         # save the attached .config to linux build tree
>         make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386 
> 
> 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 >>)
> 
> >> arch/x86/include/asm/preempt.h:79:9: sparse: sparse: context imbalance in 'xfs_iflush_abort' - wrong count at exit

Um, does this still need attention?

--D

> vim +/xfs_iflush_abort +79 arch/x86/include/asm/preempt.h
> 
> c2daa3bed53a81 Peter Zijlstra    2013-08-14  72  
> c2daa3bed53a81 Peter Zijlstra    2013-08-14  73  /*
> c2daa3bed53a81 Peter Zijlstra    2013-08-14  74   * The various preempt_count add/sub methods
> c2daa3bed53a81 Peter Zijlstra    2013-08-14  75   */
> c2daa3bed53a81 Peter Zijlstra    2013-08-14  76  
> c2daa3bed53a81 Peter Zijlstra    2013-08-14  77  static __always_inline void __preempt_count_add(int val)
> c2daa3bed53a81 Peter Zijlstra    2013-08-14  78  {
> b3ca1c10d7b32f Christoph Lameter 2014-04-07 @79  	raw_cpu_add_4(__preempt_count, val);
> c2daa3bed53a81 Peter Zijlstra    2013-08-14  80  }
> c2daa3bed53a81 Peter Zijlstra    2013-08-14  81  
> 
> :::::: The code at line 79 was first introduced by commit
> :::::: b3ca1c10d7b32fdfdfaf5484eda486323f52d9be percpu: add raw_cpu_ops
> 
> :::::: TO: Christoph Lameter <cl@linux.com>
> :::::: CC: Linus Torvalds <torvalds@linux-foundation.org>
> 
> ---
> 0-DAY CI Kernel Test Service, Intel Corporation
> https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org



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

* arch/x86/include/asm/preempt.h:79:9: sparse: sparse: context imbalance in 'xfs_iflush_abort' - wrong count at exit
@ 2020-07-13  3:03 kernel test robot
  2020-07-17 20:38 ` Darrick J. Wong
  0 siblings, 1 reply; 3+ messages in thread
From: kernel test robot @ 2020-07-13  3:03 UTC (permalink / raw)
  To: Dave Chinner
  Cc: kbuild-all, linux-kernel, Darrick J. Wong, Christoph Hellwig,
	Allison Collins, Brian Foster

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   11ba468877bb23f28956a35e896356252d63c983
commit: 4165994ac9672d91134675caa6de3645a9ace6c8 xfs: factor common AIL item deletion code
date:   4 months ago
config: i386-randconfig-s001-20200713 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-14) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.2-37-gc9676a3b-dirty
        git checkout 4165994ac9672d91134675caa6de3645a9ace6c8
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386 

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 >>)

>> arch/x86/include/asm/preempt.h:79:9: sparse: sparse: context imbalance in 'xfs_iflush_abort' - wrong count at exit

vim +/xfs_iflush_abort +79 arch/x86/include/asm/preempt.h

c2daa3bed53a81 Peter Zijlstra    2013-08-14  72  
c2daa3bed53a81 Peter Zijlstra    2013-08-14  73  /*
c2daa3bed53a81 Peter Zijlstra    2013-08-14  74   * The various preempt_count add/sub methods
c2daa3bed53a81 Peter Zijlstra    2013-08-14  75   */
c2daa3bed53a81 Peter Zijlstra    2013-08-14  76  
c2daa3bed53a81 Peter Zijlstra    2013-08-14  77  static __always_inline void __preempt_count_add(int val)
c2daa3bed53a81 Peter Zijlstra    2013-08-14  78  {
b3ca1c10d7b32f Christoph Lameter 2014-04-07 @79  	raw_cpu_add_4(__preempt_count, val);
c2daa3bed53a81 Peter Zijlstra    2013-08-14  80  }
c2daa3bed53a81 Peter Zijlstra    2013-08-14  81  

:::::: The code at line 79 was first introduced by commit
:::::: b3ca1c10d7b32fdfdfaf5484eda486323f52d9be percpu: add raw_cpu_ops

:::::: TO: Christoph Lameter <cl@linux.com>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>

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

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

end of thread, other threads:[~2020-07-17 20:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-20 11:28 arch/x86/include/asm/preempt.h:79:9: sparse: sparse: context imbalance in 'xfs_iflush_abort' - wrong count at exit kernel test robot
2020-07-13  3:03 kernel test robot
2020-07-17 20:38 ` Darrick J. Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).