dst.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:
parent
59ddd965c2
commit
a4023dd01a
|
@ -106,7 +106,7 @@ struct dst_entry {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
extern u32 *dst_cow_metrics_generic(struct dst_entry *dst, unsigned long old);
|
u32 *dst_cow_metrics_generic(struct dst_entry *dst, unsigned long old);
|
||||||
extern const u32 dst_default_metrics[];
|
extern const u32 dst_default_metrics[];
|
||||||
|
|
||||||
#define DST_METRICS_READ_ONLY 0x1UL
|
#define DST_METRICS_READ_ONLY 0x1UL
|
||||||
|
@ -119,7 +119,7 @@ static inline bool dst_metrics_read_only(const struct dst_entry *dst)
|
||||||
return dst->_metrics & DST_METRICS_READ_ONLY;
|
return dst->_metrics & DST_METRICS_READ_ONLY;
|
||||||
}
|
}
|
||||||
|
|
||||||
extern void __dst_destroy_metrics_generic(struct dst_entry *dst, unsigned long old);
|
void __dst_destroy_metrics_generic(struct dst_entry *dst, unsigned long old);
|
||||||
|
|
||||||
static inline void dst_destroy_metrics_generic(struct dst_entry *dst)
|
static inline void dst_destroy_metrics_generic(struct dst_entry *dst)
|
||||||
{
|
{
|
||||||
|
@ -262,7 +262,7 @@ static inline struct dst_entry *dst_clone(struct dst_entry *dst)
|
||||||
return dst;
|
return dst;
|
||||||
}
|
}
|
||||||
|
|
||||||
extern void dst_release(struct dst_entry *dst);
|
void dst_release(struct dst_entry *dst);
|
||||||
|
|
||||||
static inline void refdst_drop(unsigned long refdst)
|
static inline void refdst_drop(unsigned long refdst)
|
||||||
{
|
{
|
||||||
|
@ -362,12 +362,11 @@ static inline struct dst_entry *skb_dst_pop(struct sk_buff *skb)
|
||||||
return child;
|
return child;
|
||||||
}
|
}
|
||||||
|
|
||||||
extern int dst_discard(struct sk_buff *skb);
|
int dst_discard(struct sk_buff *skb);
|
||||||
extern void *dst_alloc(struct dst_ops *ops, struct net_device *dev,
|
void *dst_alloc(struct dst_ops *ops, struct net_device *dev, int initial_ref,
|
||||||
int initial_ref, int initial_obsolete,
|
int initial_obsolete, unsigned short flags);
|
||||||
unsigned short flags);
|
void __dst_free(struct dst_entry *dst);
|
||||||
extern void __dst_free(struct dst_entry *dst);
|
struct dst_entry *dst_destroy(struct dst_entry *dst);
|
||||||
extern struct dst_entry *dst_destroy(struct dst_entry *dst);
|
|
||||||
|
|
||||||
static inline void dst_free(struct dst_entry *dst)
|
static inline void dst_free(struct dst_entry *dst)
|
||||||
{
|
{
|
||||||
|
@ -463,7 +462,7 @@ static inline struct dst_entry *dst_check(struct dst_entry *dst, u32 cookie)
|
||||||
return dst;
|
return dst;
|
||||||
}
|
}
|
||||||
|
|
||||||
extern void dst_init(void);
|
void dst_init(void);
|
||||||
|
|
||||||
/* Flags for xfrm_lookup flags argument. */
|
/* Flags for xfrm_lookup flags argument. */
|
||||||
enum {
|
enum {
|
||||||
|
@ -480,9 +479,9 @@ static inline struct dst_entry *xfrm_lookup(struct net *net,
|
||||||
return dst_orig;
|
return dst_orig;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
extern struct dst_entry *xfrm_lookup(struct net *net, struct dst_entry *dst_orig,
|
struct dst_entry *xfrm_lookup(struct net *net, struct dst_entry *dst_orig,
|
||||||
const struct flowi *fl, struct sock *sk,
|
const struct flowi *fl, struct sock *sk,
|
||||||
int flags);
|
int flags);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* _NET_DST_H */
|
#endif /* _NET_DST_H */
|
||||||
|
|
Loading…
Reference in a new issue