summaryrefslogtreecommitdiff
path: root/include/net/psp/functions.h
diff options
context:
space:
mode:
authorDaniel Zahka <daniel.zahka@gmail.com>2025-09-18 08:52:02 -0700
committerJakub Kicinski <kuba@kernel.org>2025-09-19 17:01:20 -0700
commitf8d2f8205be8cceef2dd3c0e68e7af3c5f83c75c (patch)
treeea6d30f6636371213f66e12868e86988e4f6118e /include/net/psp/functions.h
parentb02c1230104df86d282bd298e5313bb9686cbd70 (diff)
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@gmail.com> Link: https://patch.msgid.link/20250918155205.2197603-2-daniel.zahka@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/net/psp/functions.h')
-rw-r--r--include/net/psp/functions.h2
1 files changed, 1 insertions, 1 deletions
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;