RDS: mark few internal functions static to make sparse build happy
authorSantosh Shilimkar <santosh.shilimkar@oracle.com>
Mon, 5 Dec 2016 00:41:29 +0000 (16:41 -0800)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Mon, 2 Jan 2017 22:02:40 +0000 (14:02 -0800)
Fixes below warnings:
warning: symbol 'rds_send_probe' was not declared. Should it be static?
warning: symbol 'rds_send_ping' was not declared. Should it be static?
warning: symbol 'rds_tcp_accept_one_path' was not declared. Should it be static?
warning: symbol 'rds_walk_conn_path_info' was not declared. Should it be static?

Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
net/rds/connection.c
net/rds/send.c
net/rds/tcp_listen.c

index fe9d31c0b22d40ef8b45fd0f17cccbcfd893de16..0e04dcceb1d416438be8bb40fc68253f336f631d 100644 (file)
@@ -545,11 +545,11 @@ void rds_for_each_conn_info(struct socket *sock, unsigned int len,
 }
 EXPORT_SYMBOL_GPL(rds_for_each_conn_info);
 
-void rds_walk_conn_path_info(struct socket *sock, unsigned int len,
-                            struct rds_info_iterator *iter,
-                            struct rds_info_lengths *lens,
-                            int (*visitor)(struct rds_conn_path *, void *),
-                            size_t item_len)
+static void rds_walk_conn_path_info(struct socket *sock, unsigned int len,
+                                   struct rds_info_iterator *iter,
+                                   struct rds_info_lengths *lens,
+                                   int (*visitor)(struct rds_conn_path *, void *),
+                                   size_t item_len)
 {
        u64  buffer[(item_len + 7) / 8];
        struct hlist_head *head;
index 77c8c6e613adf65057d3696806024fdf2cb15247..bb13c56fc2f8d00b92addb92bad5299cb75236e0 100644 (file)
@@ -1169,7 +1169,7 @@ out:
  * or
  *   RDS_FLAG_HB_PONG|RDS_FLAG_ACK_REQUIRED
  */
-int
+static int
 rds_send_probe(struct rds_conn_path *cp, __be16 sport,
               __be16 dport, u8 h_flags)
 {
@@ -1238,7 +1238,7 @@ rds_send_pong(struct rds_conn_path *cp, __be16 dport)
        return rds_send_probe(cp, 0, dport, 0);
 }
 
-void
+static void
 rds_send_ping(struct rds_connection *conn)
 {
        unsigned long flags;
index f74bab3ecdca69b0b59e18341a15ab8fe095b16c..67d0929c7d3d0c97ed209af9a67b4d83343c3de1 100644 (file)
@@ -79,6 +79,7 @@ bail:
  * smaller ip address, we recycle conns in RDS_CONN_ERROR on the passive side
  * by moving them to CONNECTING in this function.
  */
+static
 struct rds_tcp_connection *rds_tcp_accept_one_path(struct rds_connection *conn)
 {
        int i;