linux/net/psp
Wei Wang 97a1e65df7 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 06c2dce2d0 ("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>
2026-08-17 11:06:14 -07:00
..
Kconfig net: psp: select CONFIG_SKB_EXTENSIONS 2026-02-17 17:05:29 -08:00
Makefile net: psp: add socket security association code 2025-09-18 12:32:06 +02:00
psp_main.c udp: Support BIG TCP GSO packets where they can occur 2026-07-22 13:47:02 +02:00
psp_nl.c psp: use unrcu_pointer() for the cmpxchg() on netdev psp_dev 2026-08-17 11:06:14 -07:00
psp_sock.c net: psp: use psp_dev_is_registered() in psp_assoc_free() 2026-08-17 11:02:07 -07:00
psp-nl-gen.c psp: add a new netdev event for dev unregister 2026-06-12 18:31:32 -07:00
psp-nl-gen.h psp: add a new netdev event for dev unregister 2026-06-12 18:31:32 -07:00
psp.h psp: add a new netdev event for dev unregister 2026-06-12 18:31:32 -07:00