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>
This commit is contained in:
committed by
David S. Miller
parent
d0c2b0d265
commit
ff51bf8415
+3
-3
@@ -41,7 +41,7 @@
|
||||
/* only for info exporting */
|
||||
static DEFINE_SPINLOCK(rds_tcp_tc_list_lock);
|
||||
static LIST_HEAD(rds_tcp_tc_list);
|
||||
unsigned int rds_tcp_tc_count;
|
||||
static unsigned int rds_tcp_tc_count;
|
||||
|
||||
/* Track rds_tcp_connection structs so they can be cleaned up */
|
||||
static DEFINE_SPINLOCK(rds_tcp_conn_lock);
|
||||
@@ -243,7 +243,7 @@ static void rds_tcp_destroy_conns(void)
|
||||
}
|
||||
}
|
||||
|
||||
void rds_tcp_exit(void)
|
||||
static void rds_tcp_exit(void)
|
||||
{
|
||||
rds_info_deregister_func(RDS_INFO_TCP_SOCKETS, rds_tcp_tc_info);
|
||||
rds_tcp_listen_stop();
|
||||
@@ -274,7 +274,7 @@ struct rds_transport rds_tcp_transport = {
|
||||
.t_prefer_loopback = 1,
|
||||
};
|
||||
|
||||
int rds_tcp_init(void)
|
||||
static int rds_tcp_init(void)
|
||||
{
|
||||
int ret;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user