summaryrefslogtreecommitdiff
path: root/include/net/espintcp.h
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2024-03-29 17:49:31 +0300
committerJakub Kicinski <kuba@kernel.org>2024-04-02 07:27:08 +0300
commit58169ec9c40309541509181e068177eab72e6caa (patch)
tree53a9472288e6d7fcfc8e1d6b3cdfa296297166b1 /include/net/espintcp.h
parent513bebc4de499f8a6e1671eb921aca8f723e5cbc (diff)
downloadlinux-58169ec9c40309541509181e068177eab72e6caa.tar.xz
inet: preserve const qualifier in inet_csk()
We can change inet_csk() to propagate its argument const qualifier, thanks to container_of_const(). We have to fix few places that had mistakes, like tcp_bound_rto(). Signed-off-by: Eric Dumazet <edumazet@google.com> Link: https://lore.kernel.org/r/20240329144931.295800-1-edumazet@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/net/espintcp.h')
-rw-r--r--include/net/espintcp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/espintcp.h b/include/net/espintcp.h
index 0335bbd76552..c70efd704b6d 100644
--- a/include/net/espintcp.h
+++ b/include/net/espintcp.h
@@ -32,7 +32,7 @@ struct espintcp_ctx {
static inline struct espintcp_ctx *espintcp_getctx(const struct sock *sk)
{
- struct inet_connection_sock *icsk = inet_csk(sk);
+ const struct inet_connection_sock *icsk = inet_csk(sk);
/* RCU is only needed for diag */
return (__force void *)icsk->icsk_ulp_data;