[PATCH net-next] tcp: make local function tcp_recv_timestamp static

Subsystems: networking [general], networking [tcp], the rest

STALE3140d

2 messages, 2 authors, 2018-01-10 · open the first message on its own page

[PATCH net-next] tcp: make local function tcp_recv_timestamp static

From: Wei Yongjun <hidden>
Date: 2018-01-10 07:37:04

Fixes the following sparse warning:

net/ipv4/tcp.c:1736:6: warning:
 symbol 'tcp_recv_timestamp' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <redacted>
---
 net/ipv4/tcp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c
index f68cb33..d7cf861 100644
--- a/net/ipv4/tcp.c
+++ b/net/ipv4/tcp.c
@@ -1733,8 +1733,8 @@ static void tcp_update_recv_tstamps(struct sk_buff *skb,
 }
 
 /* Similar to __sock_recv_timestamp, but does not require an skb */
-void tcp_recv_timestamp(struct msghdr *msg, const struct sock *sk,
-			struct scm_timestamping *tss)
+static void tcp_recv_timestamp(struct msghdr *msg, const struct sock *sk,
+			       struct scm_timestamping *tss)
 {
 	struct timeval tv;
 	bool has_timestamping = false;

Re: [PATCH net-next] tcp: make local function tcp_recv_timestamp static

From: David Miller <davem@davemloft.net>
Date: 2018-01-10 20:56:24

From: Wei Yongjun <redacted>
Date: Wed, 10 Jan 2018 07:43:15 +0000
Fixes the following sparse warning:

net/ipv4/tcp.c:1736:6: warning:
 symbol 'tcp_recv_timestamp' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <redacted>
Applied, thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help