All of lore.kernel.org
 help / color / mirror / Atom feed
* [arm-perf:rwonce/rework 7/16] arch/x86/include/asm/atomic.h:31:16: sparse: sparse: context imbalance in 'engines_sample' - different lock contexts for basic block
@ 2020-06-05 16:10 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-06-05 16:10 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/will/linux.git rwonce/rework
head:   b398ace5d2ea0b7f00d9f1ce23c647e289c206ca
commit: 9e343b467c70379e66b8b771d96f03ae23eba351 [7/16] READ_ONCE: Enforce atomicity for {READ,WRITE}_ONCE() memory accesses
config: x86_64-randconfig-s022-20200605 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.1-246-g41f651b4-dirty
        git checkout 9e343b467c70379e66b8b771d96f03ae23eba351
        # save the attached .config to linux build tree
        make W=1 C=1 ARCH=x86_64 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/atomic.h:31:16: sparse: sparse: context imbalance in 'engines_sample' - different lock contexts for basic block

vim +/engines_sample +31 arch/x86/include/asm/atomic.h

5abbbbf0b0cd4a Brian Gerst    2010-01-07  18  
5abbbbf0b0cd4a Brian Gerst    2010-01-07  19  /**
8bf705d130396e Dmitry Vyukov  2018-01-29  20   * arch_atomic_read - read atomic variable
5abbbbf0b0cd4a Brian Gerst    2010-01-07  21   * @v: pointer of type atomic_t
5abbbbf0b0cd4a Brian Gerst    2010-01-07  22   *
5abbbbf0b0cd4a Brian Gerst    2010-01-07  23   * Atomically reads the value of @v.
5abbbbf0b0cd4a Brian Gerst    2010-01-07  24   */
8bf705d130396e Dmitry Vyukov  2018-01-29  25  static __always_inline int arch_atomic_read(const atomic_t *v)
5abbbbf0b0cd4a Brian Gerst    2010-01-07  26  {
ac605bee0bfab4 Dmitry Vyukov  2018-01-29  27  	/*
ac605bee0bfab4 Dmitry Vyukov  2018-01-29  28  	 * Note for KASAN: we deliberately don't use READ_ONCE_NOCHECK() here,
ac605bee0bfab4 Dmitry Vyukov  2018-01-29  29  	 * it's non-inlined function that increases binary size and stack usage.
ac605bee0bfab4 Dmitry Vyukov  2018-01-29  30  	 */
62e8a3258bda11 Peter Zijlstra 2015-09-18 @31  	return READ_ONCE((v)->counter);
5abbbbf0b0cd4a Brian Gerst    2010-01-07  32  }
5abbbbf0b0cd4a Brian Gerst    2010-01-07  33  

:::::: The code at line 31 was first introduced by commit
:::::: 62e8a3258bda118f24ff462fe04cfbe75b8189b5 atomic, arch: Audit atomic_{read,set}()

:::::: TO: Peter Zijlstra <peterz@infradead.org>
:::::: CC: Ingo Molnar <mingo@kernel.org>

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

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

only message in thread, other threads:[~2020-06-05 16:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-05 16:10 [arm-perf:rwonce/rework 7/16] arch/x86/include/asm/atomic.h:31:16: sparse: sparse: context imbalance in 'engines_sample' - different lock contexts for basic block 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.