[PATCH] mmc: sdhci-esdhc-imx: add missing inclusion of linux/module.h

From: Shawn Guo
Date: Sun Aug 14 2011 - 22:14:54 EST


There are following warning and error when compiling the driver.
The patch adds the missing inclusion of linux/module.h to fix them.

drivers/mmc/host/sdhci-esdhc-imx.c:87:1: warning: data definition has no type or storage class
drivers/mmc/host/sdhci-esdhc-imx.c:87:1: warning: type defaults to âintâ in declaration of âMODULE_DEVICE_TABLEâ
drivers/mmc/host/sdhci-esdhc-imx.c:87:1: warning: parameter names (without types) in function declaration
drivers/mmc/host/sdhci-esdhc-imx.c:96:1: warning: data definition has no type or storage class
drivers/mmc/host/sdhci-esdhc-imx.c:96:1: warning: type defaults to âintâ in declaration of âMODULE_DEVICE_TABLEâ
drivers/mmc/host/sdhci-esdhc-imx.c:96:1: warning: parameter names (without types) in function declaration
drivers/mmc/host/sdhci-esdhc-imx.c:563:12: error: âTHIS_MODULEâ undeclared here (not in a function)
drivers/mmc/host/sdhci-esdhc-imx.c:587:20: error: expected declaration specifiers or â...â before string constant
drivers/mmc/host/sdhci-esdhc-imx.c:587:1: warning: data definition has no type or storage class
drivers/mmc/host/sdhci-esdhc-imx.c:587:1: warning: type defaults to âintâ in declaration of âMODULE_DESCRIPTIONâ
drivers/mmc/host/sdhci-esdhc-imx.c:587:20: warning: function declaration isnât a prototype
drivers/mmc/host/sdhci-esdhc-imx.c:588:15: error: expected declaration specifiers or â...â before string constant
drivers/mmc/host/sdhci-esdhc-imx.c:588:1: warning: data definition has no type or storage class
drivers/mmc/host/sdhci-esdhc-imx.c:588:1: warning: type defaults to âintâ in declaration of âMODULE_AUTHORâ
drivers/mmc/host/sdhci-esdhc-imx.c:588:15: warning: function declaration isnât a prototype
drivers/mmc/host/sdhci-esdhc-imx.c:589:16: error: expected declaration specifiers or â...â before string constant
drivers/mmc/host/sdhci-esdhc-imx.c:589:1: warning: data definition has no type or storage class
drivers/mmc/host/sdhci-esdhc-imx.c:589:1: warning: type defaults to âintâ in declaration of âMODULE_LICENSEâ
drivers/mmc/host/sdhci-esdhc-imx.c:589:16: warning: function declaration isnât a prototype

Signed-off-by: Shawn Guo <shawn.guo@xxxxxxxxxx>
Cc: Chris Ball <cjb@xxxxxxxxxx>
---
Hi Stephen,

I spot this on linux-next-20110812.

Regards,
Shawn

drivers/mmc/host/sdhci-esdhc-imx.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c
index 2a1ba84..4557aa1 100644
--- a/drivers/mmc/host/sdhci-esdhc-imx.c
+++ b/drivers/mmc/host/sdhci-esdhc-imx.c
@@ -16,6 +16,7 @@
#include <linux/err.h>
#include <linux/clk.h>
#include <linux/gpio.h>
+#include <linux/module.h>
#include <linux/slab.h>
#include <linux/mmc/host.h>
#include <linux/mmc/mmc.h>
--
1.7.4.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/