aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6
diff options
context:
space:
mode:
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>2008-01-22 03:12:50 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:10:26 -0500
commit40fee36e11b49f92bc7c385bd45d7805c0127a34 (patch)
treea4dbf5f7ae9ba214c902f0c43c0546a59db8a029 /net/ipv6
parent5e8b9df6e8786e4d5ee5ac951240cb2eaaac3014 (diff)
[IPV6] ADDRLABEL: Sparse: Make several functions static.
Fix following sparse warnings: | net/ipv6/addrlabel.c:172:25: warning: symbol 'ip6addrlbl_alloc' was not declared. Should it be static? | net/ipv6/addrlabel.c:219:5: warning: symbol '__ip6addrlbl_add' was not declared. Should it be static? | net/ipv6/addrlabel.c:260:5: warning: symbol 'ip6addrlbl_add' was not declared. Should it be static? | net/ipv6/addrlabel.c:285:5: warning: symbol '__ip6addrlbl_del' was not declared. Should it be static? | net/ipv6/addrlabel.c:311:5: warning: symbol 'ip6addrlbl_del' was not declared. Should it be static? Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Diffstat (limited to 'net/ipv6')
-rw-r--r--net/ipv6/addrlabel.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/net/ipv6/addrlabel.c b/net/ipv6/addrlabel.c
index 6f1ca607edda..38674121ae5f 100644
--- a/net/ipv6/addrlabel.c
+++ b/net/ipv6/addrlabel.c
@@ -169,9 +169,9 @@ u32 ipv6_addr_label(const struct in6_addr *addr, int type, int ifindex)
169} 169}
170 170
171/* allocate one entry */ 171/* allocate one entry */
172struct ip6addrlbl_entry *ip6addrlbl_alloc(const struct in6_addr *prefix, 172static struct ip6addrlbl_entry *ip6addrlbl_alloc(const struct in6_addr *prefix,
173 int prefixlen, int ifindex, 173 int prefixlen, int ifindex,
174 u32 label) 174 u32 label)
175{ 175{
176 struct ip6addrlbl_entry *newp; 176 struct ip6addrlbl_entry *newp;
177 int addrtype; 177 int addrtype;
@@ -216,7 +216,7 @@ struct ip6addrlbl_entry *ip6addrlbl_alloc(const struct in6_addr *prefix,
216} 216}
217 217
218/* add a label */ 218/* add a label */
219int __ip6addrlbl_add(struct ip6addrlbl_entry *newp, int replace) 219static int __ip6addrlbl_add(struct ip6addrlbl_entry *newp, int replace)
220{ 220{
221 int ret = 0; 221 int ret = 0;
222 222
@@ -257,8 +257,8 @@ out:
257} 257}
258 258
259/* add a label */ 259/* add a label */
260int ip6addrlbl_add(const struct in6_addr *prefix, int prefixlen, 260static int ip6addrlbl_add(const struct in6_addr *prefix, int prefixlen,
261 int ifindex, u32 label, int replace) 261 int ifindex, u32 label, int replace)
262{ 262{
263 struct ip6addrlbl_entry *newp; 263 struct ip6addrlbl_entry *newp;
264 int ret = 0; 264 int ret = 0;
@@ -282,8 +282,8 @@ int ip6addrlbl_add(const struct in6_addr *prefix, int prefixlen,
282} 282}
283 283
284/* remove a label */ 284/* remove a label */
285int __ip6addrlbl_del(const struct in6_addr *prefix, int prefixlen, 285static int __ip6addrlbl_del(const struct in6_addr *prefix, int prefixlen,
286 int ifindex) 286 int ifindex)
287{ 287{
288 struct ip6addrlbl_entry *p = NULL; 288 struct ip6addrlbl_entry *p = NULL;
289 struct hlist_node *pos, *n; 289 struct hlist_node *pos, *n;
@@ -308,8 +308,8 @@ int __ip6addrlbl_del(const struct in6_addr *prefix, int prefixlen,
308 return ret; 308 return ret;
309} 309}
310 310
311int ip6addrlbl_del(const struct in6_addr *prefix, int prefixlen, 311static int ip6addrlbl_del(const struct in6_addr *prefix, int prefixlen,
312 int ifindex) 312 int ifindex)
313{ 313{
314 struct in6_addr prefix_buf; 314 struct in6_addr prefix_buf;
315 int ret; 315 int ret;