aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Chapman <[email protected]>2024-06-24 09:29:45 +0100
committerJakub Kicinski <[email protected]>2024-06-25 08:29:42 -0700
commita8a8d89dbd2bd2b762b6d0226a1201ec33f7aeac (patch)
treef4d585b7a439377dfcd49d8effbf81b7c0e38469
parent73cfd947dbdb25ef9863ac49c4596a7d53ad4025 (diff)
l2tp: remove incorrect __rcu attribute
This fixes a sparse warning. Fixes: d18d3f0a24fc ("l2tp: replace hlist with simple list for per-tunnel session list") Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Signed-off-by: James Chapman <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
-rw-r--r--net/l2tp/l2tp_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/l2tp/l2tp_core.c b/net/l2tp/l2tp_core.c
index be4bcbf291a1..64f446f0930b 100644
--- a/net/l2tp/l2tp_core.c
+++ b/net/l2tp/l2tp_core.c
@@ -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);