* [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* Re: [PATCH -next] RDS: TCP: Fix non static symbol warnings
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>
1 sibling, 0 replies; 4+ messages in thread
From: Santosh Shilimkar @ 2016-06-17 18:33 UTC (permalink / raw)
To: weiyj_lk, David S. Miller; +Cc: Wei Yongjun, netdev, linux-rdma, rds-devel
On 6/17/2016 11:12 AM, weiyj_lk@163.com wrote:
> From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
>
> 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@trendmicro.com.cn>
> ---
Look ok.
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
^ permalink raw reply [flat|nested] 4+ messages in thread[parent not found: <1466187166-2549-1-git-send-email-weiyj_lk-9Onoh4P/yGk@public.gmane.org>]
* Re: [PATCH -next] RDS: TCP: Fix non static symbol warnings
[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
1 sibling, 0 replies; 4+ messages in thread
From: Sowmini Varadhan @ 2016-06-17 18:29 UTC (permalink / raw)
To: weiyj_lk-9Onoh4P/yGk
Cc: Santosh Shilimkar, David S. Miller, Wei Yongjun,
netdev-u79uwXL29TY76Z2rM5mHXA, linux-rdma-u79uwXL29TY76Z2rM5mHXA,
rds-devel-N0ozoZBvEnrZJqsBc5GL+g
On (06/17/16 18:12), weiyj_lk-9Onoh4P/yGk@public.gmane.org wrote:
> 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?
Acked-by: Sowmini Varadhan <sowmini.varadhan-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
--
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 [flat|nested] 4+ messages in thread* Re: [PATCH -next] RDS: TCP: Fix non static symbol warnings
[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
1 sibling, 0 replies; 4+ messages in thread
From: David Miller @ 2016-06-18 5:29 UTC (permalink / raw)
To: weiyj_lk-9Onoh4P/yGk
Cc: santosh.shilimkar-QHcLZuEGTsvQT0dZR+AlfA,
yongjun_wei-zrsr2BFq86L20UzCJQGyNP8+0UxHXcjY,
netdev-u79uwXL29TY76Z2rM5mHXA, linux-rdma-u79uwXL29TY76Z2rM5mHXA,
rds-devel-N0ozoZBvEnrZJqsBc5GL+g
From: weiyj_lk-9Onoh4P/yGk@public.gmane.org
Date: Fri, 17 Jun 2016 18:12:46 +0000
> 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>
Applied.
--
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 [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).