From: Paul Gortmaker Date: Thu, 15 Sep 2011 23:42:40 +0000 (-0400) Subject: drivers/net: fix mislocated headers in cxgb4/l2t.c X-Git-Tag: v3.2-rc1~22^2~144 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=310587c320e906c59ef4152c41d81b00adf1b259;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git drivers/net: fix mislocated headers in cxgb4/l2t.c For some reason three #include 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 --- diff --git a/drivers/net/ethernet/chelsio/cxgb4/l2t.c b/drivers/net/ethernet/chelsio/cxgb4/l2t.c index a2d323c..6ac77a6 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/l2t.c +++ b/drivers/net/ethernet/chelsio/cxgb4/l2t.c @@ -37,6 +37,9 @@ #include #include #include +#include +#include +#include #include #include "cxgb4.h" #include "l2t.h" @@ -503,10 +506,6 @@ struct l2t_data *t4_init_l2t(void) return d; } -#include -#include -#include - static inline void *l2t_get_idx(struct seq_file *seq, loff_t pos) { struct l2t_entry *l2tab = seq->private;