aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/ip6_fib.h
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2013-09-21 13:22:42 -0400
committerDavid S. Miller <davem@davemloft.net>2013-09-21 14:01:38 -0400
commit5c3a0fd7d0fc2985fcd540aa9d7656dcc2d57b41 (patch)
treecff00e1aae6c891ebe29de574a67c23ce2a31946 /include/net/ip6_fib.h
parent1fd51155387264e3ca72094abadcaadb3f5969f6 (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.h53
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
270extern struct fib6_table *fib6_get_table(struct net *net, u32 id); 270struct fib6_table *fib6_get_table(struct net *net, u32 id);
271extern struct fib6_table *fib6_new_table(struct net *net, u32 id); 271struct fib6_table *fib6_new_table(struct net *net, u32 id);
272extern struct dst_entry *fib6_rule_lookup(struct net *net, 272struct 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
276extern struct fib6_node *fib6_lookup(struct fib6_node *root, 275struct 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
280struct fib6_node *fib6_locate(struct fib6_node *root, 279struct 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
284extern void fib6_clean_all_ro(struct net *net, 283void 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
288extern void fib6_clean_all(struct net *net, 287void 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
292extern int fib6_add(struct fib6_node *root, 290int 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
296extern int fib6_del(struct rt6_info *rt, 292int fib6_del(struct rt6_info *rt, struct nl_info *info);
297 struct nl_info *info);
298 293
299extern void inet6_rt_notify(int event, struct rt6_info *rt, 294void inet6_rt_notify(int event, struct rt6_info *rt, struct nl_info *info);
300 struct nl_info *info);
301 295
302extern void fib6_run_gc(unsigned long expires, 296void fib6_run_gc(unsigned long expires, struct net *net, bool force);
303 struct net *net, bool force);
304 297
305extern void fib6_gc_cleanup(void); 298void fib6_gc_cleanup(void);
306 299
307extern int fib6_init(void); 300int fib6_init(void);
308 301
309#ifdef CONFIG_IPV6_MULTIPLE_TABLES 302#ifdef CONFIG_IPV6_MULTIPLE_TABLES
310extern int fib6_rules_init(void); 303int fib6_rules_init(void);
311extern void fib6_rules_cleanup(void); 304void fib6_rules_cleanup(void);
312#else 305#else
313static inline int fib6_rules_init(void) 306static inline int fib6_rules_init(void)
314{ 307{