diff options
author | Paul Gortmaker <paul.gortmaker@windriver.com> | 2011-09-15 19:42:40 -0400 |
---|---|---|
committer | Paul Gortmaker <paul.gortmaker@windriver.com> | 2011-10-31 19:31:10 -0400 |
commit | 310587c320e906c59ef4152c41d81b00adf1b259 (patch) | |
tree | 6dda14eaae4294916983af2ef3558a0a48c43405 /drivers/net/ethernet | |
parent | d0e88ec90151c52ca9aa67adece8f2b8bd3c9f3b (diff) |
drivers/net: fix mislocated headers in cxgb4/l2t.c
For some reason three #include <linux/...> are buried way
down in the file. Since the inclusion of module.h is one
of them, the inclusion comes after use of EXPORT_SYMBOL
which will cause warnings about implicit declarations.
Relocate all the headers to the top.
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4/l2t.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/l2t.c b/drivers/net/ethernet/chelsio/cxgb4/l2t.c index a2d323c473f8..6ac77a62f361 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/l2t.c +++ b/drivers/net/ethernet/chelsio/cxgb4/l2t.c | |||
@@ -37,6 +37,9 @@ | |||
37 | #include <linux/if.h> | 37 | #include <linux/if.h> |
38 | #include <linux/if_vlan.h> | 38 | #include <linux/if_vlan.h> |
39 | #include <linux/jhash.h> | 39 | #include <linux/jhash.h> |
40 | #include <linux/module.h> | ||
41 | #include <linux/debugfs.h> | ||
42 | #include <linux/seq_file.h> | ||
40 | #include <net/neighbour.h> | 43 | #include <net/neighbour.h> |
41 | #include "cxgb4.h" | 44 | #include "cxgb4.h" |
42 | #include "l2t.h" | 45 | #include "l2t.h" |
@@ -503,10 +506,6 @@ struct l2t_data *t4_init_l2t(void) | |||
503 | return d; | 506 | return d; |
504 | } | 507 | } |
505 | 508 | ||
506 | #include <linux/module.h> | ||
507 | #include <linux/debugfs.h> | ||
508 | #include <linux/seq_file.h> | ||
509 | |||
510 | static inline void *l2t_get_idx(struct seq_file *seq, loff_t pos) | 509 | static inline void *l2t_get_idx(struct seq_file *seq, loff_t pos) |
511 | { | 510 | { |
512 | struct l2t_entry *l2tab = seq->private; | 511 | struct l2t_entry *l2tab = seq->private; |