From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com, Dan Carpenter <error27@gmail.com>
Subject: [melver:cap-analysis/dev 14/34] net/sched/act_api.c:66 tcf_set_action_cookie() error: uninitialized symbol 'old'.
Date: Thu, 7 Aug 2025 14:28:59 +0800 [thread overview]
Message-ID: <202508071401.PJIfqLEX-lkp@intel.com> (raw)
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
TO: elver@google.com
tree: https://git.kernel.org/pub/scm/linux/kernel/git/melver/linux.git cap-analysis/dev
head: 4402c229e926bc7daad98d65e55297b090302dac
commit: 706499ce0fa57b3087c860c2595c9b7699dd4946 [14/34] rcu: Support Clang's capability analysis
:::::: branch date: 17 hours ago
:::::: commit date: 17 hours ago
config: x86_64-randconfig-161-20250807 (https://download.01.org/0day-ci/archive/20250807/202508071401.PJIfqLEX-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
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>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202508071401.PJIfqLEX-lkp@intel.com/
smatch warnings:
net/sched/act_api.c:66 tcf_set_action_cookie() error: uninitialized symbol 'old'.
vim +/old +66 net/sched/act_api.c
eec94fdb048067 Vlad Buslov 2018-07-05 59
eec94fdb048067 Vlad Buslov 2018-07-05 60 static void tcf_set_action_cookie(struct tc_cookie __rcu **old_cookie,
eec94fdb048067 Vlad Buslov 2018-07-05 61 struct tc_cookie *new_cookie)
eec94fdb048067 Vlad Buslov 2018-07-05 62 {
eec94fdb048067 Vlad Buslov 2018-07-05 63 struct tc_cookie *old;
eec94fdb048067 Vlad Buslov 2018-07-05 64
b4cb4a1391dcdc Eric Dumazet 2024-06-04 65 old = unrcu_pointer(xchg(old_cookie, RCU_INITIALIZER(new_cookie)));
eec94fdb048067 Vlad Buslov 2018-07-05 @66 if (old)
eec94fdb048067 Vlad Buslov 2018-07-05 67 call_rcu(&old->rcu, tcf_free_cookie_rcu);
eec94fdb048067 Vlad Buslov 2018-07-05 68 }
eec94fdb048067 Vlad Buslov 2018-07-05 69
:::::: The code at line 66 was first introduced by commit
:::::: eec94fdb04806790c7b7e6ea347820064cc6d467 net: sched: use rcu for action cookie update
:::::: TO: Vlad Buslov <vladbu@mellanox.com>
:::::: CC: David S. Miller <davem@davemloft.net>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-08-07 6:29 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=202508071401.PJIfqLEX-lkp@intel.com \
--to=lkp@intel.com \
--cc=error27@gmail.com \
--cc=oe-kbuild@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.