netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] RDS: TCP: Fix non static symbol warnings
@ 2016-06-17 18:12 weiyj_lk-9Onoh4P/yGk
  2016-06-17 18:33 ` Santosh Shilimkar
       [not found] ` <1466187166-2549-1-git-send-email-weiyj_lk-9Onoh4P/yGk@public.gmane.org>
  0 siblings, 2 replies; 4+ messages in thread
From: weiyj_lk-9Onoh4P/yGk @ 2016-06-17 18:12 UTC (permalink / raw)
  To: Santosh Shilimkar, David S. Miller
  Cc: Wei Yongjun, netdev-u79uwXL29TY76Z2rM5mHXA,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA,
	rds-devel-N0ozoZBvEnrZJqsBc5GL+g

From: Wei Yongjun <yongjun_wei-zrsr2BFq86L20UzCJQGyNP8+0UxHXcjY@public.gmane.org>

Fixes the following sparse warnings:

net/rds/tcp.c:59:5: warning:
 symbol 'rds_tcp_min_sndbuf' was not declared. Should it be static?
net/rds/tcp.c:60:5: warning:
 symbol 'rds_tcp_min_rcvbuf' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <yongjun_wei-zrsr2BFq86L20UzCJQGyNP8+0UxHXcjY@public.gmane.org>
---
 net/rds/tcp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/rds/tcp.c b/net/rds/tcp.c
index 86187da..49fab0c 100644
--- a/net/rds/tcp.c
+++ b/net/rds/tcp.c
@@ -56,8 +56,8 @@ static int rds_tcp_skbuf_handler(struct ctl_table *ctl, int write,
 				 void __user *buffer, size_t *lenp,
 				 loff_t *fpos);
 
-int rds_tcp_min_sndbuf = SOCK_MIN_SNDBUF;
-int rds_tcp_min_rcvbuf = SOCK_MIN_RCVBUF;
+static int rds_tcp_min_sndbuf = SOCK_MIN_SNDBUF;
+static int rds_tcp_min_rcvbuf = SOCK_MIN_RCVBUF;
 
 static struct ctl_table rds_tcp_sysctl_table[] = {
 #define	RDS_TCP_SNDBUF	0



--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-06-18  5:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-17 18:12 [PATCH -next] RDS: TCP: Fix non static symbol warnings weiyj_lk-9Onoh4P/yGk
2016-06-17 18:33 ` Santosh Shilimkar
     [not found] ` <1466187166-2549-1-git-send-email-weiyj_lk-9Onoh4P/yGk@public.gmane.org>
2016-06-17 18:29   ` Sowmini Varadhan
2016-06-18  5:29   ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).