All of lore.kernel.org
 help / color / mirror / Atom feed
* [melver:cap-analysis/dev 14/33] include/net/sock.h:2179:17: sparse: sparse: incorrect type in assignment (different base types)
@ 2025-08-02 20:32 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-08-02 20:32 UTC (permalink / raw)
  To: elver; +Cc: oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/melver/linux.git cap-analysis/dev
head:   fdd3a307f8bbbf8727a633b44c3d6a31103e1938
commit: 20516295fa8be1f4447326d6b8fa1b1c5e236951 [14/33] rcu: Support Clang's capability analysis
config: arc-randconfig-r123-20250802 (https://download.01.org/0day-ci/archive/20250803/202508030440.kkrawze3-lkp@intel.com/config)
compiler: arc-linux-gcc (GCC) 15.1.0
reproduce: (https://download.01.org/0day-ci/archive/20250803/202508030440.kkrawze3-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202508030440.kkrawze3-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
   net/core/sock.c: note: in included file (through include/net/inet_sock.h, include/net/ip.h, include/linux/errqueue.h):
>> include/net/sock.h:2179:17: sparse: sparse: incorrect type in assignment (different base types) @@     expected struct dst_entry *old_dst @@     got void @@
   include/net/sock.h:2179:17: sparse:     expected struct dst_entry *old_dst
   include/net/sock.h:2179:17: sparse:     got void
>> include/net/sock.h:2179:17: sparse: sparse: incorrect type in assignment (different base types) @@     expected struct dst_entry *old_dst @@     got void @@
   include/net/sock.h:2179:17: sparse:     expected struct dst_entry *old_dst
   include/net/sock.h:2179:17: sparse:     got void
>> include/net/sock.h:2179:17: sparse: sparse: incorrect type in assignment (different base types) @@     expected struct dst_entry *old_dst @@     got void @@
   include/net/sock.h:2179:17: sparse:     expected struct dst_entry *old_dst
   include/net/sock.h:2179:17: sparse:     got void
>> include/net/sock.h:2179:17: sparse: sparse: incorrect type in assignment (different base types) @@     expected struct dst_entry *old_dst @@     got void @@
   include/net/sock.h:2179:17: sparse:     expected struct dst_entry *old_dst
   include/net/sock.h:2179:17: sparse:     got void
   net/core/sock.c:2582:9: sparse: sparse: context imbalance in 'sk_clone_lock' - different lock contexts for basic block
>> include/net/sock.h:2179:17: sparse: sparse: incorrect type in assignment (different base types) @@     expected struct dst_entry *old_dst @@     got void @@
   include/net/sock.h:2179:17: sparse:     expected struct dst_entry *old_dst
   include/net/sock.h:2179:17: sparse:     got void
--
>> net/sched/act_api.c:65:13: sparse: sparse: incorrect type in assignment (different base types) @@     expected struct tc_cookie *old @@     got void @@
   net/sched/act_api.c:65:13: sparse:     expected struct tc_cookie *old
   net/sched/act_api.c:65:13: sparse:     got void
   net/sched/act_api.c:380:17: sparse: sparse: context imbalance in '__tcf_action_put' - unexpected unlock

vim +2179 include/net/sock.h

^1da177e4c3f41 Linus Torvalds 2005-04-16  2171  
^1da177e4c3f41 Linus Torvalds 2005-04-16  2172  static inline void
^1da177e4c3f41 Linus Torvalds 2005-04-16  2173  sk_dst_set(struct sock *sk, struct dst_entry *dst)
^1da177e4c3f41 Linus Torvalds 2005-04-16  2174  {
7f502361531e9e Eric Dumazet   2014-06-30  2175  	struct dst_entry *old_dst;
7f502361531e9e Eric Dumazet   2014-06-30  2176  
7f502361531e9e Eric Dumazet   2014-06-30  2177  	sk_tx_queue_clear(sk);
eb44ad4e635132 Eric Dumazet   2023-09-21  2178  	WRITE_ONCE(sk->sk_dst_pending_confirm, 0);
b4cb4a1391dcdc Eric Dumazet   2024-06-04 @2179  	old_dst = unrcu_pointer(xchg(&sk->sk_dst_cache, RCU_INITIALIZER(dst)));
7f502361531e9e Eric Dumazet   2014-06-30  2180  	dst_release(old_dst);
^1da177e4c3f41 Linus Torvalds 2005-04-16  2181  }
^1da177e4c3f41 Linus Torvalds 2005-04-16  2182  

:::::: The code at line 2179 was first introduced by commit
:::::: b4cb4a1391dcdc640c4ade003aaf0ee19cc8d509 net: use unrcu_pointer() helper

:::::: TO: Eric Dumazet <edumazet@google.com>
:::::: CC: Paolo Abeni <pabeni@redhat.com>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

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

only message in thread, other threads:[~2025-08-02 20:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-02 20:32 [melver:cap-analysis/dev 14/33] include/net/sock.h:2179:17: sparse: sparse: incorrect type in assignment (different base types) 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.