From: H Hartley Sweeten on
The module_init() and module_exit() functions should be static and marked
with __init and __exit.

Signed-off-by: H Hartley Sweeten <hsweeten(a)visionengravers.com>
Cc: Greg Kroah-Hartman <gregkh(a)suse.de>
Cc: Scott Smedley <ss(a)aao.gov.au>

---

diff --git a/drivers/staging/dt3155/dt3155_drv.c b/drivers/staging/dt3155/dt3155_drv.c
index 9e7b880..7316996 100644
--- a/drivers/staging/dt3155/dt3155_drv.c
+++ b/drivers/staging/dt3155/dt3155_drv.c
@@ -940,7 +940,7 @@ err:
u32 allocatorAddr = 0;


-int dt3155_init(void)
+static int __init dt3155_init(void)
{
struct dt3155_status *dts;
int index;
@@ -1059,7 +1059,7 @@ int dt3155_init(void)
return 0;
}

-void dt3155_exit(void)
+static void __exit dt3155_exit(void)
{
struct dt3155_status *dts;
int index;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo(a)vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/