From: kernel test robot <lkp@intel.com>
To: elver@google.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [melver:cap-analysis/dev 14/33] include/net/sock.h:2179:17: sparse: sparse: incorrect type in assignment (different base types)
Date: Sun, 3 Aug 2025 04:32:05 +0800 [thread overview]
Message-ID: <202508030440.kkrawze3-lkp@intel.com> (raw)
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
reply other threads:[~2025-08-02 20:32 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202508030440.kkrawze3-lkp@intel.com \
--to=lkp@intel.com \
--cc=elver@google.com \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.