]> www.infradead.org Git - nvme.git/commitdiff
l2tp: remove incorrect __rcu attribute
authorJames Chapman <jchapman@katalix.com>
Mon, 24 Jun 2024 08:29:45 +0000 (09:29 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 25 Jun 2024 15:29:42 +0000 (08:29 -0700)
This fixes a sparse warning.

Fixes: d18d3f0a24fc ("l2tp: replace hlist with simple list for per-tunnel session list")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202406220754.evK8Hrjw-lkp@intel.com/
Signed-off-by: James Chapman <jchapman@katalix.com>
Link: https://patch.msgid.link/20240624082945.1925009-1-jchapman@katalix.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/l2tp/l2tp_core.c

index be4bcbf291a172f4641ae75e7e8ae92dce3be76f..64f446f0930b7ff122a83b476f05c3a989be93df 100644 (file)
@@ -1290,7 +1290,7 @@ static void l2tp_session_unhash(struct l2tp_session *session)
 static void l2tp_tunnel_closeall(struct l2tp_tunnel *tunnel)
 {
        struct l2tp_session *session;
-       struct list_head __rcu *pos;
+       struct list_head *pos;
        struct list_head *tmp;
 
        spin_lock_bh(&tunnel->list_lock);