diff options
| author | Wei Wang <weibunny@fb.com> | 2026-08-13 12:34:16 -0700 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-08-17 11:06:14 -0700 |
| commit | 97a1e65df7eef996693d604ae90aaf2530578912 (patch) | |
| tree | a1b61e4d9c7dbd7a42e272e48850b666d350ae40 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | cf85f810f911234a06a4ef2439e8694b93b717fc (diff) | |
psp: use unrcu_pointer() for the cmpxchg() on netdev psp_dev
sparse reports:
net/psp/psp_nl.c:513:13: sparse: sparse: cast removes address space
'__rcu' of expression
cmpxchg() returns typeof(*ptr) and its internal casts strip the __rcu
annotation. Wrap it in unrcu_pointer(), the documented way to use an
__rcu pointer with xchg() and friends.
This was introduced by commit 06c2dce2d0f6 ("psp: add new netlink cmd
for dev-assoc and dev-disassoc").
No functional change intended.
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202608080910.l9KvOH7O-lkp@intel.com/
Signed-off-by: Wei Wang <weibunny@fb.com>
Link: https://patch.msgid.link/20260813193416.1544518-1-weibunny.kernel@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
