[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250918155205.2197603-2-daniel.zahka@gmail.com>
Date: Thu, 18 Sep 2025 08:52:02 -0700
From: Daniel Zahka <daniel.zahka@...il.com>
To: "David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>,
Simon Horman <horms@...nel.org>
Cc: Willem de Bruijn <willemb@...gle.com>,
netdev@...r.kernel.org
Subject: [PATCH net-next 1/3] psp: make struct sock argument const in psp_sk_get_assoc_rcu()
This function does not need a mutable reference to its argument.
Signed-off-by: Daniel Zahka <daniel.zahka@...il.com>
---
include/net/psp/functions.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/net/psp/functions.h b/include/net/psp/functions.h
index 91ba06733321..fb3cbe8427ea 100644
--- a/include/net/psp/functions.h
+++ b/include/net/psp/functions.h
@@ -124,7 +124,7 @@ psp_twsk_rx_policy_check(struct inet_timewait_sock *tw, struct sk_buff *skb)
return __psp_sk_rx_policy_check(skb, rcu_dereference(tw->psp_assoc));
}
-static inline struct psp_assoc *psp_sk_get_assoc_rcu(struct sock *sk)
+static inline struct psp_assoc *psp_sk_get_assoc_rcu(const struct sock *sk)
{
struct inet_timewait_sock *tw;
struct psp_assoc *pas;
--
2.47.3
Powered by blists - more mailing lists