summaryrefslogtreecommitdiffstats
path: root/include/net/dst.h
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2013-09-20 14:23:21 -0400
committerDavid S. Miller <davem@davemloft.net>2013-09-20 14:49:32 -0400
commita4023dd01a37f3a648ea028269f946cb55896337 (patch)
tree7664c2bc1f18c2a363d35f7a81ca1aea72ab88bd /include/net/dst.h
parent59ddd965c2388720681eb4dc386bfb074e80788e (diff)
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>
Diffstat (limited to 'include/net/dst.h')
-rw-r--r--include/net/dst.h25
1 files changed, 12 insertions, 13 deletions
diff --git a/include/net/dst.h b/include/net/dst.h
index 3bc4865f8267..211dcf1e758e 100644
--- a/include/net/dst.h
+++ b/include/net/dst.h
@@ -106,7 +106,7 @@ struct dst_entry {
106 }; 106 };
107}; 107};
108 108
109extern u32 *dst_cow_metrics_generic(struct dst_entry *dst, unsigned long old); 109u32 *dst_cow_metrics_generic(struct dst_entry *dst, unsigned long old);
110extern const u32 dst_default_metrics[]; 110extern const u32 dst_default_metrics[];
111 111
112#define DST_METRICS_READ_ONLY 0x1UL 112#define DST_METRICS_READ_ONLY 0x1UL
@@ -119,7 +119,7 @@ static inline bool dst_metrics_read_only(const struct dst_entry *dst)
119 return dst->_metrics & DST_METRICS_READ_ONLY; 119 return dst->_metrics & DST_METRICS_READ_ONLY;
120} 120}
121 121
122extern void __dst_destroy_metrics_generic(struct dst_entry *dst, unsigned long old); 122void __dst_destroy_metrics_generic(struct dst_entry *dst, unsigned long old);
123 123
124static inline void dst_destroy_metrics_generic(struct dst_entry *dst) 124static inline void dst_destroy_metrics_generic(struct dst_entry *dst)
125{ 125{
@@ -262,7 +262,7 @@ static inline struct dst_entry *dst_clone(struct dst_entry *dst)
262 return dst; 262 return dst;
263} 263}
264 264
265extern void dst_release(struct dst_entry *dst); 265void dst_release(struct dst_entry *dst);
266 266
267static inline void refdst_drop(unsigned long refdst) 267static inline void refdst_drop(unsigned long refdst)
268{ 268{
@@ -362,12 +362,11 @@ static inline struct dst_entry *skb_dst_pop(struct sk_buff *skb)
362 return child; 362 return child;
363} 363}
364 364
365extern int dst_discard(struct sk_buff *skb); 365int dst_discard(struct sk_buff *skb);
366extern void *dst_alloc(struct dst_ops *ops, struct net_device *dev, 366void *dst_alloc(struct dst_ops *ops, struct net_device *dev, int initial_ref,
367 int initial_ref, int initial_obsolete, 367 int initial_obsolete, unsigned short flags);
368 unsigned short flags); 368void __dst_free(struct dst_entry *dst);
369extern void __dst_free(struct dst_entry *dst); 369struct dst_entry *dst_destroy(struct dst_entry *dst);
370extern struct dst_entry *dst_destroy(struct dst_entry *dst);
371 370
372static inline void dst_free(struct dst_entry *dst) 371static inline void dst_free(struct dst_entry *dst)
373{ 372{
@@ -463,7 +462,7 @@ static inline struct dst_entry *dst_check(struct dst_entry *dst, u32 cookie)
463 return dst; 462 return dst;
464} 463}
465 464
466extern void dst_init(void); 465void dst_init(void);
467 466
468/* Flags for xfrm_lookup flags argument. */ 467/* Flags for xfrm_lookup flags argument. */
469enum { 468enum {
@@ -480,9 +479,9 @@ static inline struct dst_entry *xfrm_lookup(struct net *net,
480 return dst_orig; 479 return dst_orig;
481} 480}
482#else 481#else
483extern struct dst_entry *xfrm_lookup(struct net *net, struct dst_entry *dst_orig, 482struct dst_entry *xfrm_lookup(struct net *net, struct dst_entry *dst_orig,
484 const struct flowi *fl, struct sock *sk, 483 const struct flowi *fl, struct sock *sk,
485 int flags); 484 int flags);
486#endif 485#endif
487 486
488#endif /* _NET_DST_H */ 487#endif /* _NET_DST_H */