diff options
author | Joe Perches <joe@perches.com> | 2013-09-21 13:22:42 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-09-21 14:01:38 -0400 |
commit | 5c3a0fd7d0fc2985fcd540aa9d7656dcc2d57b41 (patch) | |
tree | cff00e1aae6c891ebe29de574a67c23ce2a31946 /include/net/ip6_fib.h | |
parent | 1fd51155387264e3ca72094abadcaadb3f5969f6 (diff) |
ip*.h: Remove extern from function prototypes
There are a mix of function prototypes with and without extern
in the kernel sources. Standardize on not using extern for
function prototypes.
Function prototypes don't need to be written with extern.
extern is assumed by the compiler. Its use is as unnecessary as
using auto to declare automatic/local variables in a block.
Signed-off-by: Joe Perches <joe@perches.com>
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 | 53 |
1 files changed, 23 insertions, 30 deletions
diff --git a/include/net/ip6_fib.h b/include/net/ip6_fib.h index 48ec25a7fcb6..eab88f0e2088 100644 --- a/include/net/ip6_fib.h +++ b/include/net/ip6_fib.h | |||
@@ -267,48 +267,41 @@ typedef struct rt6_info *(*pol_lookup_t)(struct net *, | |||
267 | * exported functions | 267 | * exported functions |
268 | */ | 268 | */ |
269 | 269 | ||
270 | extern struct fib6_table *fib6_get_table(struct net *net, u32 id); | 270 | struct fib6_table *fib6_get_table(struct net *net, u32 id); |
271 | extern struct fib6_table *fib6_new_table(struct net *net, u32 id); | 271 | struct fib6_table *fib6_new_table(struct net *net, u32 id); |
272 | extern struct dst_entry *fib6_rule_lookup(struct net *net, | 272 | struct dst_entry *fib6_rule_lookup(struct net *net, struct flowi6 *fl6, |
273 | struct flowi6 *fl6, int flags, | 273 | int flags, pol_lookup_t lookup); |
274 | pol_lookup_t lookup); | ||
275 | 274 | ||
276 | extern struct fib6_node *fib6_lookup(struct fib6_node *root, | 275 | struct fib6_node *fib6_lookup(struct fib6_node *root, |
277 | const struct in6_addr *daddr, | 276 | const struct in6_addr *daddr, |
278 | const struct in6_addr *saddr); | 277 | const struct in6_addr *saddr); |
279 | 278 | ||
280 | struct fib6_node *fib6_locate(struct fib6_node *root, | 279 | struct fib6_node *fib6_locate(struct fib6_node *root, |
281 | const struct in6_addr *daddr, int dst_len, | 280 | const struct in6_addr *daddr, int dst_len, |
282 | const struct in6_addr *saddr, int src_len); | 281 | const struct in6_addr *saddr, int src_len); |
283 | 282 | ||
284 | extern void fib6_clean_all_ro(struct net *net, | 283 | void fib6_clean_all_ro(struct net *net, |
285 | int (*func)(struct rt6_info *, void *arg), | 284 | int (*func)(struct rt6_info *, void *arg), |
286 | int prune, void *arg); | 285 | int prune, void *arg); |
287 | 286 | ||
288 | extern void fib6_clean_all(struct net *net, | 287 | void fib6_clean_all(struct net *net, int (*func)(struct rt6_info *, void *arg), |
289 | int (*func)(struct rt6_info *, void *arg), | 288 | int prune, void *arg); |
290 | int prune, void *arg); | ||
291 | 289 | ||
292 | extern int fib6_add(struct fib6_node *root, | 290 | int fib6_add(struct fib6_node *root, struct rt6_info *rt, struct nl_info *info); |
293 | struct rt6_info *rt, | ||
294 | struct nl_info *info); | ||
295 | 291 | ||
296 | extern int fib6_del(struct rt6_info *rt, | 292 | int fib6_del(struct rt6_info *rt, struct nl_info *info); |
297 | struct nl_info *info); | ||
298 | 293 | ||
299 | extern void inet6_rt_notify(int event, struct rt6_info *rt, | 294 | void inet6_rt_notify(int event, struct rt6_info *rt, struct nl_info *info); |
300 | struct nl_info *info); | ||
301 | 295 | ||
302 | extern void fib6_run_gc(unsigned long expires, | 296 | void fib6_run_gc(unsigned long expires, struct net *net, bool force); |
303 | struct net *net, bool force); | ||
304 | 297 | ||
305 | extern void fib6_gc_cleanup(void); | 298 | void fib6_gc_cleanup(void); |
306 | 299 | ||
307 | extern int fib6_init(void); | 300 | int fib6_init(void); |
308 | 301 | ||
309 | #ifdef CONFIG_IPV6_MULTIPLE_TABLES | 302 | #ifdef CONFIG_IPV6_MULTIPLE_TABLES |
310 | extern int fib6_rules_init(void); | 303 | int fib6_rules_init(void); |
311 | extern void fib6_rules_cleanup(void); | 304 | void fib6_rules_cleanup(void); |
312 | #else | 305 | #else |
313 | static inline int fib6_rules_init(void) | 306 | static inline int fib6_rules_init(void) |
314 | { | 307 | { |