]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
inet/connection_sock: prefer _THIS_IP_ to current_text_addr
authorNick Desaulniers <ndesaulniers@google.com>
Wed, 1 Aug 2018 21:57:59 +0000 (14:57 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Aug 2018 17:04:36 +0000 (10:04 -0700)
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 <ndesaulniers@google.com>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/inet_connection_sock.h

index fa43b82607d9cb70d1e9ce283850ff6e850660e7..371b3b45fd5c9696c319b4dc433d0522fbc5ce42 100644 (file)
@@ -19,6 +19,7 @@
 #include <linux/string.h>
 #include <linux/timer.h>
 #include <linux/poll.h>
+#include <linux/kernel.h>
 
 #include <net/inet_sock.h>
 #include <net/request_sock.h>
@@ -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;
        }