aboutsummaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2013-09-20 14:23:26 -0400
committerDavid S. Miller <davem@davemloft.net>2013-09-20 14:49:33 -0400
commit8aae218f58f44471c6715e695da5ed9f54dd4491 (patch)
tree354c0280207b0e0cc8b3e050ec179e352f09bf2c /include/net
parent2008f21cbdc48761270cec119c8385584691cf34 (diff)
gen_stats.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')
-rw-r--r--include/net/gen_stats.h51
1 files changed, 25 insertions, 26 deletions
diff --git a/include/net/gen_stats.h b/include/net/gen_stats.h
index cf8439ba4d11..ea4271dceff0 100644
--- a/include/net/gen_stats.h
+++ b/include/net/gen_stats.h
@@ -19,32 +19,31 @@ struct gnet_dump {
19 struct tc_stats tc_stats; 19 struct tc_stats tc_stats;
20}; 20};
21 21
22extern int gnet_stats_start_copy(struct sk_buff *skb, int type, 22int gnet_stats_start_copy(struct sk_buff *skb, int type, spinlock_t *lock,
23 struct gnet_dump *d);
24
25int gnet_stats_start_copy_compat(struct sk_buff *skb, int type,
26 int tc_stats_type, int xstats_type,
23 spinlock_t *lock, struct gnet_dump *d); 27 spinlock_t *lock, struct gnet_dump *d);
24 28
25extern int gnet_stats_start_copy_compat(struct sk_buff *skb, int type, 29int gnet_stats_copy_basic(struct gnet_dump *d,
26 int tc_stats_type,int xstats_type, 30 struct gnet_stats_basic_packed *b);
27 spinlock_t *lock, struct gnet_dump *d); 31int gnet_stats_copy_rate_est(struct gnet_dump *d,
28 32 const struct gnet_stats_basic_packed *b,
29extern int gnet_stats_copy_basic(struct gnet_dump *d, 33 struct gnet_stats_rate_est64 *r);
30 struct gnet_stats_basic_packed *b); 34int gnet_stats_copy_queue(struct gnet_dump *d, struct gnet_stats_queue *q);
31extern int gnet_stats_copy_rate_est(struct gnet_dump *d, 35int gnet_stats_copy_app(struct gnet_dump *d, void *st, int len);
32 const struct gnet_stats_basic_packed *b, 36
33 struct gnet_stats_rate_est64 *r); 37int gnet_stats_finish_copy(struct gnet_dump *d);
34extern int gnet_stats_copy_queue(struct gnet_dump *d, 38
35 struct gnet_stats_queue *q); 39int gen_new_estimator(struct gnet_stats_basic_packed *bstats,
36extern int gnet_stats_copy_app(struct gnet_dump *d, void *st, int len); 40 struct gnet_stats_rate_est64 *rate_est,
37 41 spinlock_t *stats_lock, struct nlattr *opt);
38extern int gnet_stats_finish_copy(struct gnet_dump *d); 42void gen_kill_estimator(struct gnet_stats_basic_packed *bstats,
39 43 struct gnet_stats_rate_est64 *rate_est);
40extern int gen_new_estimator(struct gnet_stats_basic_packed *bstats, 44int gen_replace_estimator(struct gnet_stats_basic_packed *bstats,
41 struct gnet_stats_rate_est64 *rate_est, 45 struct gnet_stats_rate_est64 *rate_est,
42 spinlock_t *stats_lock, struct nlattr *opt); 46 spinlock_t *stats_lock, struct nlattr *opt);
43extern void gen_kill_estimator(struct gnet_stats_basic_packed *bstats, 47bool gen_estimator_active(const struct gnet_stats_basic_packed *bstats,
44 struct gnet_stats_rate_est64 *rate_est); 48 const struct gnet_stats_rate_est64 *rate_est);
45extern int gen_replace_estimator(struct gnet_stats_basic_packed *bstats,
46 struct gnet_stats_rate_est64 *rate_est,
47 spinlock_t *stats_lock, struct nlattr *opt);
48extern bool gen_estimator_active(const struct gnet_stats_basic_packed *bstats,
49 const struct gnet_stats_rate_est64 *rate_est);
50#endif 49#endif