Commit e1a22d13 authored by Wei Yongjun's avatar Wei Yongjun Committed by David S. Miller

tipc: tipc_node_create() can be static

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: default avatarWei Yongjun <weiyongjun1@huawei.com>
Acked-by: default avatarJon Maloy <jon.maloy@ericsson.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c76f2481
...@@ -333,8 +333,8 @@ static void tipc_node_write_unlock(struct tipc_node *n) ...@@ -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, static struct tipc_node *tipc_node_create(struct net *net, u32 addr,
u8 *peer_id, u16 capabilities) u8 *peer_id, u16 capabilities)
{ {
struct tipc_net *tn = net_generic(net, tipc_net_id); struct tipc_net *tn = net_generic(net, tipc_net_id);
struct tipc_node *n, *temp_node; struct tipc_node *n, *temp_node;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment