From: Nick Desaulniers Date: Wed, 1 Aug 2018 21:57:59 +0000 (-0700) Subject: inet/connection_sock: prefer _THIS_IP_ to current_text_addr X-Git-Tag: v5.15~8230^2~7 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=96d18d8254dc5a3f0067a629866af4165b3afe32;p=mirror_ubuntu-kernels.git inet/connection_sock: prefer _THIS_IP_ to current_text_addr As part of the effort to reduce the code duplication between _THIS_IP_ and current_text_addr(), let's consolidate callers of current_text_addr() to use _THIS_IP_. Signed-off-by: Nick Desaulniers Acked-by: David S. Miller Signed-off-by: David S. Miller --- diff --git a/include/net/inet_connection_sock.h b/include/net/inet_connection_sock.h index fa43b82607d9..371b3b45fd5c 100644 --- a/include/net/inet_connection_sock.h +++ b/include/net/inet_connection_sock.h @@ -19,6 +19,7 @@ #include #include #include +#include #include #include @@ -225,7 +226,7 @@ static inline void inet_csk_reset_xmit_timer(struct sock *sk, const int what, if (when > max_when) { pr_debug("reset_xmit_timer: sk=%p %d when=0x%lx, caller=%p\n", - sk, what, when, current_text_addr()); + sk, what, when, (void *)_THIS_IP_); when = max_when; }