Skip to content

Commit 96d18d8

Browse files
nickdesaulniersdavem330
authored andcommitted
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 <[email protected]> Acked-by: David S. Miller <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 6feddb4 commit 96d18d8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/net/inet_connection_sock.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include <linux/string.h>
2020
#include <linux/timer.h>
2121
#include <linux/poll.h>
22+
#include <linux/kernel.h>
2223

2324
#include <net/inet_sock.h>
2425
#include <net/request_sock.h>
@@ -225,7 +226,7 @@ static inline void inet_csk_reset_xmit_timer(struct sock *sk, const int what,
225226

226227
if (when > max_when) {
227228
pr_debug("reset_xmit_timer: sk=%p %d when=0x%lx, caller=%p\n",
228-
sk, what, when, current_text_addr());
229+
sk, what, when, (void *)_THIS_IP_);
229230
when = max_when;
230231
}
231232

0 commit comments

Comments
 (0)