diff options
author | Adrian Bunk <bunk@stusta.de> | 2006-08-15 02:49:16 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-09-22 17:54:38 -0400 |
commit | 90d41122f79c8c3687d965dde4c6d30a6e0cac4c (patch) | |
tree | 97aba5d36e7e7a923b9cc0611602219d88b4766e /include/net/ip6_fib.h | |
parent | d1aa62f15b511457af2233150c960dc1fd02769b (diff) |
[IPV6] ip6_fib.c: make code static
Make the following needlessly global code static:
- fib6_walker_lock
- struct fib6_walker_list
- fib6_walk_continue()
- fib6_walk()
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/ip6_fib.h')
-rw-r--r-- | include/net/ip6_fib.h | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/include/net/ip6_fib.h b/include/net/ip6_fib.h index c0660cea9a2f..69c444209781 100644 --- a/include/net/ip6_fib.h +++ b/include/net/ip6_fib.h | |||
@@ -92,28 +92,6 @@ struct fib6_walker_t | |||
92 | void *args; | 92 | void *args; |
93 | }; | 93 | }; |
94 | 94 | ||
95 | extern struct fib6_walker_t fib6_walker_list; | ||
96 | extern rwlock_t fib6_walker_lock; | ||
97 | |||
98 | static inline void fib6_walker_link(struct fib6_walker_t *w) | ||
99 | { | ||
100 | write_lock_bh(&fib6_walker_lock); | ||
101 | w->next = fib6_walker_list.next; | ||
102 | w->prev = &fib6_walker_list; | ||
103 | w->next->prev = w; | ||
104 | w->prev->next = w; | ||
105 | write_unlock_bh(&fib6_walker_lock); | ||
106 | } | ||
107 | |||
108 | static inline void fib6_walker_unlink(struct fib6_walker_t *w) | ||
109 | { | ||
110 | write_lock_bh(&fib6_walker_lock); | ||
111 | w->next->prev = w->prev; | ||
112 | w->prev->next = w->next; | ||
113 | w->prev = w->next = w; | ||
114 | write_unlock_bh(&fib6_walker_lock); | ||
115 | } | ||
116 | |||
117 | struct rt6_statistics { | 95 | struct rt6_statistics { |
118 | __u32 fib_nodes; | 96 | __u32 fib_nodes; |
119 | __u32 fib_route_nodes; | 97 | __u32 fib_route_nodes; |
@@ -195,9 +173,6 @@ struct fib6_node *fib6_locate(struct fib6_node *root, | |||
195 | extern void fib6_clean_all(int (*func)(struct rt6_info *, void *arg), | 173 | extern void fib6_clean_all(int (*func)(struct rt6_info *, void *arg), |
196 | int prune, void *arg); | 174 | int prune, void *arg); |
197 | 175 | ||
198 | extern int fib6_walk(struct fib6_walker_t *w); | ||
199 | extern int fib6_walk_continue(struct fib6_walker_t *w); | ||
200 | |||
201 | extern int fib6_add(struct fib6_node *root, | 176 | extern int fib6_add(struct fib6_node *root, |
202 | struct rt6_info *rt, | 177 | struct rt6_info *rt, |
203 | struct nlmsghdr *nlh, | 178 | struct nlmsghdr *nlh, |