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>
This commit is contained in:

committed by
David S. Miller

parent
1fd5115538
commit
5c3a0fd7d0
@@ -267,48 +267,41 @@ typedef struct rt6_info *(*pol_lookup_t)(struct net *,
|
||||
* exported functions
|
||||
*/
|
||||
|
||||
extern struct fib6_table *fib6_get_table(struct net *net, u32 id);
|
||||
extern struct fib6_table *fib6_new_table(struct net *net, u32 id);
|
||||
extern struct dst_entry *fib6_rule_lookup(struct net *net,
|
||||
struct flowi6 *fl6, int flags,
|
||||
pol_lookup_t lookup);
|
||||
struct fib6_table *fib6_get_table(struct net *net, u32 id);
|
||||
struct fib6_table *fib6_new_table(struct net *net, u32 id);
|
||||
struct dst_entry *fib6_rule_lookup(struct net *net, struct flowi6 *fl6,
|
||||
int flags, pol_lookup_t lookup);
|
||||
|
||||
extern struct fib6_node *fib6_lookup(struct fib6_node *root,
|
||||
const struct in6_addr *daddr,
|
||||
const struct in6_addr *saddr);
|
||||
struct fib6_node *fib6_lookup(struct fib6_node *root,
|
||||
const struct in6_addr *daddr,
|
||||
const struct in6_addr *saddr);
|
||||
|
||||
struct fib6_node *fib6_locate(struct fib6_node *root,
|
||||
const struct in6_addr *daddr, int dst_len,
|
||||
const struct in6_addr *saddr, int src_len);
|
||||
struct fib6_node *fib6_locate(struct fib6_node *root,
|
||||
const struct in6_addr *daddr, int dst_len,
|
||||
const struct in6_addr *saddr, int src_len);
|
||||
|
||||
extern void fib6_clean_all_ro(struct net *net,
|
||||
int (*func)(struct rt6_info *, void *arg),
|
||||
int prune, void *arg);
|
||||
void fib6_clean_all_ro(struct net *net,
|
||||
int (*func)(struct rt6_info *, void *arg),
|
||||
int prune, void *arg);
|
||||
|
||||
extern void fib6_clean_all(struct net *net,
|
||||
int (*func)(struct rt6_info *, void *arg),
|
||||
int prune, void *arg);
|
||||
void fib6_clean_all(struct net *net, int (*func)(struct rt6_info *, void *arg),
|
||||
int prune, void *arg);
|
||||
|
||||
extern int fib6_add(struct fib6_node *root,
|
||||
struct rt6_info *rt,
|
||||
struct nl_info *info);
|
||||
int fib6_add(struct fib6_node *root, struct rt6_info *rt, struct nl_info *info);
|
||||
|
||||
extern int fib6_del(struct rt6_info *rt,
|
||||
struct nl_info *info);
|
||||
int fib6_del(struct rt6_info *rt, struct nl_info *info);
|
||||
|
||||
extern void inet6_rt_notify(int event, struct rt6_info *rt,
|
||||
struct nl_info *info);
|
||||
void inet6_rt_notify(int event, struct rt6_info *rt, struct nl_info *info);
|
||||
|
||||
extern void fib6_run_gc(unsigned long expires,
|
||||
struct net *net, bool force);
|
||||
void fib6_run_gc(unsigned long expires, struct net *net, bool force);
|
||||
|
||||
extern void fib6_gc_cleanup(void);
|
||||
void fib6_gc_cleanup(void);
|
||||
|
||||
extern int fib6_init(void);
|
||||
int fib6_init(void);
|
||||
|
||||
#ifdef CONFIG_IPV6_MULTIPLE_TABLES
|
||||
extern int fib6_rules_init(void);
|
||||
extern void fib6_rules_cleanup(void);
|
||||
int fib6_rules_init(void);
|
||||
void fib6_rules_cleanup(void);
|
||||
#else
|
||||
static inline int fib6_rules_init(void)
|
||||
{
|
||||
|
Reference in New Issue
Block a user