tipc: tipc_node_create() can be static
authorWei Yongjun <weiyongjun1@huawei.com>
Mon, 26 Mar 2018 14:33:13 +0000 (14:33 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Mar 2018 14:50:22 +0000 (10:50 -0400)
Fixes the following sparse warning:

net/tipc/node.c:336:18: warning:
 symbol 'tipc_node_create' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/node.c

index 4a95c8c155c6a5e48ca56c18909c036d37327af7..4fb4327311bbba1a321795938c1c3b89ddb9dbfb 100644 (file)
@@ -333,8 +333,8 @@ static void tipc_node_write_unlock(struct tipc_node *n)
        }
 }
 
-struct tipc_node *tipc_node_create(struct net *net, u32 addr,
-                                  u8 *peer_id, u16 capabilities)
+static struct tipc_node *tipc_node_create(struct net *net, u32 addr,
+                                         u8 *peer_id, u16 capabilities)
 {
        struct tipc_net *tn = net_generic(net, tipc_net_id);
        struct tipc_node *n, *temp_node;