Skip to content

Commit 2437fd7

Browse files
Chen Wandundavem330
authored andcommitted
tipc: make three functions static
Fix the following sparse warning: net/tipc/node.c:281:6: warning: symbol 'tipc_node_free' was not declared. Should it be static? net/tipc/node.c:2801:5: warning: symbol '__tipc_nl_node_set_key' was not declared. Should it be static? net/tipc/node.c:2878:5: warning: symbol '__tipc_nl_node_flush_key' was not declared. Should it be static? Fixes: fc1b6d6 ("tipc: introduce TIPC encryption & authentication") Fixes: e1f3219 ("tipc: add support for AEAD key setting via netlink") Signed-off-by: Chen Wandun <chenwandun@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent fdfa3a6 commit 2437fd7

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎net/tipc/node.c‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ struct tipc_crypto *tipc_node_crypto_rx_by_list(struct list_head *pos)
278278
}
279279
#endif
280280

281-
void tipc_node_free(struct rcu_head *rp)
281+
static void tipc_node_free(struct rcu_head *rp)
282282
{
283283
struct tipc_node *n = container_of(rp, struct tipc_node, rcu);
284284

@@ -2798,7 +2798,7 @@ static int tipc_nl_retrieve_nodeid(struct nlattr **attrs, u8 **node_id)
27982798
return 0;
27992799
}
28002800

2801-
int __tipc_nl_node_set_key(struct sk_buff *skb, struct genl_info *info)
2801+
static int __tipc_nl_node_set_key(struct sk_buff *skb, struct genl_info *info)
28022802
{
28032803
struct nlattr *attrs[TIPC_NLA_NODE_MAX + 1];
28042804
struct net *net = sock_net(skb->sk);
@@ -2875,7 +2875,8 @@ int tipc_nl_node_set_key(struct sk_buff *skb, struct genl_info *info)
28752875
return err;
28762876
}
28772877

2878-
int __tipc_nl_node_flush_key(struct sk_buff *skb, struct genl_info *info)
2878+
static int __tipc_nl_node_flush_key(struct sk_buff *skb,
2879+
struct genl_info *info)
28792880
{
28802881
struct net *net = sock_net(skb->sk);
28812882
struct tipc_net *tn = tipc_net(net);

0 commit comments

Comments
 (0)