diff options
author | stephen hemminger <shemminger@vyatta.com> | 2010-10-19 04:08:33 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-10-21 07:26:39 -0400 |
commit | ff51bf841587c75b58d25ed77263158619784dd3 (patch) | |
tree | 85d415536b84c48afe2aea0243f420ac262e1bbd /net/rds/tcp.c | |
parent | d0c2b0d265a0f1f92922a99a31def9da582197ac (diff) |
rds: make local functions/variables static
The RDS protocol has lots of functions that should be
declared static. rds_message_get/add_version_extension is
removed since it defined but never used.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rds/tcp.c')
-rw-r--r-- | net/rds/tcp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/rds/tcp.c b/net/rds/tcp.c index eeb08e6ab96b..08a8c6cf2d10 100644 --- a/net/rds/tcp.c +++ b/net/rds/tcp.c | |||
@@ -41,7 +41,7 @@ | |||
41 | /* only for info exporting */ | 41 | /* only for info exporting */ |
42 | static DEFINE_SPINLOCK(rds_tcp_tc_list_lock); | 42 | static DEFINE_SPINLOCK(rds_tcp_tc_list_lock); |
43 | static LIST_HEAD(rds_tcp_tc_list); | 43 | static LIST_HEAD(rds_tcp_tc_list); |
44 | unsigned int rds_tcp_tc_count; | 44 | static unsigned int rds_tcp_tc_count; |
45 | 45 | ||
46 | /* Track rds_tcp_connection structs so they can be cleaned up */ | 46 | /* Track rds_tcp_connection structs so they can be cleaned up */ |
47 | static DEFINE_SPINLOCK(rds_tcp_conn_lock); | 47 | static DEFINE_SPINLOCK(rds_tcp_conn_lock); |
@@ -243,7 +243,7 @@ static void rds_tcp_destroy_conns(void) | |||
243 | } | 243 | } |
244 | } | 244 | } |
245 | 245 | ||
246 | void rds_tcp_exit(void) | 246 | static void rds_tcp_exit(void) |
247 | { | 247 | { |
248 | rds_info_deregister_func(RDS_INFO_TCP_SOCKETS, rds_tcp_tc_info); | 248 | rds_info_deregister_func(RDS_INFO_TCP_SOCKETS, rds_tcp_tc_info); |
249 | rds_tcp_listen_stop(); | 249 | rds_tcp_listen_stop(); |
@@ -274,7 +274,7 @@ struct rds_transport rds_tcp_transport = { | |||
274 | .t_prefer_loopback = 1, | 274 | .t_prefer_loopback = 1, |
275 | }; | 275 | }; |
276 | 276 | ||
277 | int rds_tcp_init(void) | 277 | static int rds_tcp_init(void) |
278 | { | 278 | { |
279 | int ret; | 279 | int ret; |
280 | 280 | ||