diff options
author | Richard Alpe <richard.alpe@ericsson.com> | 2014-11-24 13:10:29 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-11-25 00:10:23 +0300 |
commit | d8182804cfd6503e73dc1c0a409903412a389541 (patch) | |
tree | 13a0d359beeb8b436c5977d711e010e04a8b5d2d /net/tipc/bearer.c | |
parent | 958d03b016586d571a382f863608bc4c6d92a0c8 (diff) | |
download | linux-d8182804cfd6503e73dc1c0a409903412a389541.tar.xz |
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/bearer.c')
-rw-r--r-- | net/tipc/bearer.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/tipc/bearer.c b/net/tipc/bearer.c index 5f6f32369c16..463db5b15b8b 100644 --- a/net/tipc/bearer.c +++ b/net/tipc/bearer.c @@ -647,7 +647,8 @@ void tipc_bearer_stop(void) } /* Caller should hold rtnl_lock to protect the bearer */ -int __tipc_nl_add_bearer(struct tipc_nl_msg *msg, struct tipc_bearer *bearer) +static int __tipc_nl_add_bearer(struct tipc_nl_msg *msg, + struct tipc_bearer *bearer) { void *hdr; struct nlattr *attrs; @@ -905,7 +906,8 @@ int tipc_nl_bearer_set(struct sk_buff *skb, struct genl_info *info) return 0; } -int __tipc_nl_add_media(struct tipc_nl_msg *msg, struct tipc_media *media) +static int __tipc_nl_add_media(struct tipc_nl_msg *msg, + struct tipc_media *media) { void *hdr; struct nlattr *attrs; |