Commit 310587c320e906c59ef4152c41d81b00adf1b259

Authored by Paul Gortmaker
1 parent d0e88ec901

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>

Showing 1 changed file with 3 additions and 4 deletions Side-by-side Diff

drivers/net/ethernet/chelsio/cxgb4/l2t.c
... ... @@ -37,6 +37,9 @@
37 37 #include <linux/if.h>
38 38 #include <linux/if_vlan.h>
39 39 #include <linux/jhash.h>
  40 +#include <linux/module.h>
  41 +#include <linux/debugfs.h>
  42 +#include <linux/seq_file.h>
40 43 #include <net/neighbour.h>
41 44 #include "cxgb4.h"
42 45 #include "l2t.h"
... ... @@ -502,10 +505,6 @@
502 505 }
503 506 return d;
504 507 }
505   -
506   -#include <linux/module.h>
507   -#include <linux/debugfs.h>
508   -#include <linux/seq_file.h>
509 508  
510 509 static inline void *l2t_get_idx(struct seq_file *seq, loff_t pos)
511 510 {