aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/fib_rules.h
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2013-09-20 14:23:23 -0400
committerDavid S. Miller <davem@davemloft.net>2013-09-20 14:49:33 -0400
commit8de6879fa949b3817f19f145a491e93df8925bc0 (patch)
treed8243f2da8fb3a256326a2a31b876b46728420d5 /include/net/fib_rules.h
parent7b3852a2fdd86238709038654f010befca5b47c3 (diff)
fib_rules.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/fib_rules.h')
-rw-r--r--include/net/fib_rules.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/include/net/fib_rules.h b/include/net/fib_rules.h
index 4b2b557fb0e8..e584de16e4c3 100644
--- a/include/net/fib_rules.h
+++ b/include/net/fib_rules.h
@@ -115,14 +115,13 @@ static inline u32 frh_get_table(struct fib_rule_hdr *frh, struct nlattr **nla)
115 return frh->table; 115 return frh->table;
116} 116}
117 117
118extern struct fib_rules_ops *fib_rules_register(const struct fib_rules_ops *, struct net *); 118struct fib_rules_ops *fib_rules_register(const struct fib_rules_ops *,
119extern void fib_rules_unregister(struct fib_rules_ops *); 119 struct net *);
120void fib_rules_unregister(struct fib_rules_ops *);
120 121
121extern int fib_rules_lookup(struct fib_rules_ops *, 122int fib_rules_lookup(struct fib_rules_ops *, struct flowi *, int flags,
122 struct flowi *, int flags, 123 struct fib_lookup_arg *);
123 struct fib_lookup_arg *); 124int fib_default_rule_add(struct fib_rules_ops *, u32 pref, u32 table,
124extern int fib_default_rule_add(struct fib_rules_ops *, 125 u32 flags);
125 u32 pref, u32 table, 126u32 fib_default_rule_pref(struct fib_rules_ops *ops);
126 u32 flags);
127extern u32 fib_default_rule_pref(struct fib_rules_ops *ops);
128#endif 127#endif