aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/socket.c
diff options
context:
space:
mode:
authorRichard Alpe <richard.alpe@ericsson.com>2014-11-24 05:10:29 -0500
committerDavid S. Miller <davem@davemloft.net>2014-11-24 16:10:23 -0500
commitd8182804cfd6503e73dc1c0a409903412a389541 (patch)
tree13a0d359beeb8b436c5977d711e010e04a8b5d2d /net/tipc/socket.c
parent958d03b016586d571a382f863608bc4c6d92a0c8 (diff)
tipc: fix sparse warnings in new nl api
Fix sparse warnings about non-static declaration of static functions in the new tipc netlink API. Signed-off-by: Richard Alpe <richard.alpe@ericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/socket.c')
-rw-r--r--net/tipc/socket.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/net/tipc/socket.c b/net/tipc/socket.c
index e91809182c28..6aa8c6a1ab10 100644
--- a/net/tipc/socket.c
+++ b/net/tipc/socket.c
@@ -2811,7 +2811,7 @@ void tipc_socket_stop(void)
2811} 2811}
2812 2812
2813/* Caller should hold socket lock for the passed tipc socket. */ 2813/* Caller should hold socket lock for the passed tipc socket. */
2814int __tipc_nl_add_sk_con(struct sk_buff *skb, struct tipc_sock *tsk) 2814static int __tipc_nl_add_sk_con(struct sk_buff *skb, struct tipc_sock *tsk)
2815{ 2815{
2816 u32 peer_node; 2816 u32 peer_node;
2817 u32 peer_port; 2817 u32 peer_port;
@@ -2846,8 +2846,8 @@ msg_full:
2846} 2846}
2847 2847
2848/* Caller should hold socket lock for the passed tipc socket. */ 2848/* Caller should hold socket lock for the passed tipc socket. */
2849int __tipc_nl_add_sk(struct sk_buff *skb, struct netlink_callback *cb, 2849static int __tipc_nl_add_sk(struct sk_buff *skb, struct netlink_callback *cb,
2850 struct tipc_sock *tsk) 2850 struct tipc_sock *tsk)
2851{ 2851{
2852 int err; 2852 int err;
2853 void *hdr; 2853 void *hdr;
@@ -2912,8 +2912,9 @@ int tipc_nl_sk_dump(struct sk_buff *skb, struct netlink_callback *cb)
2912} 2912}
2913 2913
2914/* Caller should hold socket lock for the passed tipc socket. */ 2914/* Caller should hold socket lock for the passed tipc socket. */
2915int __tipc_nl_add_sk_publ(struct sk_buff *skb, struct netlink_callback *cb, 2915static int __tipc_nl_add_sk_publ(struct sk_buff *skb,
2916 struct publication *publ) 2916 struct netlink_callback *cb,
2917 struct publication *publ)
2917{ 2918{
2918 void *hdr; 2919 void *hdr;
2919 struct nlattr *attrs; 2920 struct nlattr *attrs;
@@ -2950,8 +2951,9 @@ msg_cancel:
2950} 2951}
2951 2952
2952/* Caller should hold socket lock for the passed tipc socket. */ 2953/* Caller should hold socket lock for the passed tipc socket. */
2953int __tipc_nl_list_sk_publ(struct sk_buff *skb, struct netlink_callback *cb, 2954static int __tipc_nl_list_sk_publ(struct sk_buff *skb,
2954 struct tipc_sock *tsk, u32 *last_publ) 2955 struct netlink_callback *cb,
2956 struct tipc_sock *tsk, u32 *last_publ)
2955{ 2957{
2956 int err; 2958 int err;
2957 struct publication *p; 2959 struct publication *p;