All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-next:master 3648/5403] include/asm-generic/qspinlock.h:94:9: sparse: sparse: context imbalance in 'tcf_qevent_handle' - unexpected unlock
@ 2020-07-04  0:07 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-07-04  0:07 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   9e50b94b3eb0d859a2586b5a40d7fd6e5afd9210
commit: 3625750f05ecce21a0fce429c1ff85acfffb461b [3648/5403] net: sched: Introduce helpers for qevent blocks
config: x86_64-randconfig-s021-20200704 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-14) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.2-3-gfa153962-dirty
        git checkout 3625750f05ecce21a0fce429c1ff85acfffb461b
        # 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 >>)

   net/sched/cls_api.c:270:22: sparse: sparse: incorrect type in assignment (different base types) @@     expected restricted __be16 [usertype] protocol @@     got unsigned int [usertype] protocol @@
   net/sched/cls_api.c:270:22: sparse:     expected restricted __be16 [usertype] protocol
   net/sched/cls_api.c:270:22: sparse:     got unsigned int [usertype] protocol
   net/sched/cls_api.c:1672:16: sparse: sparse: incompatible types in comparison expression (different address spaces):
   net/sched/cls_api.c:1672:16: sparse:    struct tcf_proto *
   net/sched/cls_api.c:1672:16: sparse:    struct tcf_proto [noderef] __rcu *
   net/sched/cls_api.c:1772:20: sparse: sparse: incompatible types in comparison expression (different address spaces):
   net/sched/cls_api.c:1772:20: sparse:    struct tcf_proto [noderef] __rcu *
   net/sched/cls_api.c:1772:20: sparse:    struct tcf_proto *
   net/sched/cls_api.c:1734:25: sparse: sparse: incompatible types in comparison expression (different address spaces):
   net/sched/cls_api.c:1734:25: sparse:    struct tcf_proto [noderef] __rcu *
   net/sched/cls_api.c:1734:25: sparse:    struct tcf_proto *
   net/sched/cls_api.c:1754:16: sparse: sparse: incompatible types in comparison expression (different address spaces):
   net/sched/cls_api.c:1754:16: sparse:    struct tcf_proto *
   net/sched/cls_api.c:1754:16: sparse:    struct tcf_proto [noderef] __rcu *
   net/sched/cls_api.c:1819:25: sparse: sparse: restricted __be16 degrades to integer
   net/sched/cls_api.c:2494:50: sparse: sparse: restricted __be16 degrades to integer
   net/sched/cls_api.c:3725:9: sparse: sparse: context imbalance in 'tc_setup_flow_action' - different lock contexts for basic block
>> include/asm-generic/qspinlock.h:94:9: sparse: sparse: context imbalance in 'tcf_qevent_handle' - unexpected unlock

vim +/tcf_qevent_handle +94 include/asm-generic/qspinlock.h

a33fda35e3a765 Waiman Long 2015-04-24  83  
a33fda35e3a765 Waiman Long 2015-04-24  84  #ifndef queued_spin_unlock
a33fda35e3a765 Waiman Long 2015-04-24  85  /**
a33fda35e3a765 Waiman Long 2015-04-24  86   * queued_spin_unlock - release a queued spinlock
a33fda35e3a765 Waiman Long 2015-04-24  87   * @lock : Pointer to queued spinlock structure
a33fda35e3a765 Waiman Long 2015-04-24  88   */
a33fda35e3a765 Waiman Long 2015-04-24  89  static __always_inline void queued_spin_unlock(struct qspinlock *lock)
a33fda35e3a765 Waiman Long 2015-04-24  90  {
a33fda35e3a765 Waiman Long 2015-04-24  91  	/*
ca50e426f96c90 Pan Xinhui  2016-06-03  92  	 * unlock() needs release semantics:
a33fda35e3a765 Waiman Long 2015-04-24  93  	 */
626e5fbc143589 Will Deacon 2018-04-26 @94  	smp_store_release(&lock->locked, 0);
a33fda35e3a765 Waiman Long 2015-04-24  95  }
a33fda35e3a765 Waiman Long 2015-04-24  96  #endif
a33fda35e3a765 Waiman Long 2015-04-24  97  

:::::: The code at line 94 was first introduced by commit
:::::: 626e5fbc14358901ddaa90ce510e0fbeab310432 locking/qspinlock: Use smp_store_release() in queued_spin_unlock()

:::::: TO: Will Deacon <will.deacon@arm.com>
:::::: 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: 51900 bytes --]

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

only message in thread, other threads:[~2020-07-04  0:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-04  0:07 [linux-next:master 3648/5403] include/asm-generic/qspinlock.h:94:9: sparse: sparse: context imbalance in 'tcf_qevent_handle' - unexpected unlock 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.