diff options
author | Eric Dumazet <edumazet@google.com> | 2023-09-20 20:29:41 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-10-01 15:13:00 +0300 |
commit | 5033f58d5feed1040eebeadb0c5efc95b8bf5720 (patch) | |
tree | 416a5a723fb4436e9a2e0bbb42550722d6014b35 /include/net/sock.h | |
parent | 236f3873b517acfaf949c23bb2d5dec13bfd2da2 (diff) | |
download | linux-5033f58d5feed1040eebeadb0c5efc95b8bf5720.tar.xz |
net: constify sk_dst_get() and __sk_dst_get() argument
Both helpers only read fields from their socket argument.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/sock.h')
-rw-r--r-- | include/net/sock.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/net/sock.h b/include/net/sock.h index 56ac1abadea5..2800d587b08d 100644 --- a/include/net/sock.h +++ b/include/net/sock.h @@ -2141,14 +2141,14 @@ static inline bool sk_rethink_txhash(struct sock *sk) } static inline struct dst_entry * -__sk_dst_get(struct sock *sk) +__sk_dst_get(const struct sock *sk) { return rcu_dereference_check(sk->sk_dst_cache, lockdep_sock_is_held(sk)); } static inline struct dst_entry * -sk_dst_get(struct sock *sk) +sk_dst_get(const struct sock *sk) { struct dst_entry *dst; |