* [melver:cap-analysis/dev 14/34] net/sched/act_api.c:66 tcf_set_action_cookie() error: uninitialized symbol 'old'.
@ 2025-08-07 6:28 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-08-07 6:28 UTC (permalink / raw)
To: oe-kbuild; +Cc: lkp, Dan Carpenter
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-08-07 6:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-07 6:28 [melver:cap-analysis/dev 14/34] net/sched/act_api.c:66 tcf_set_action_cookie() error: uninitialized symbol 'old' 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.