[PATCH] iommu: omap: fix compile failure

From: tom . leiming
Date: Tue Nov 08 2011 - 05:29:35 EST


From: Ming Lei <tom.leiming@xxxxxxxxx>

Fix the failure below:

CC drivers/iommu/omap-iommu-debug.o
drivers/iommu/omap-iommu-debug.c:416:20: error: expected declaration
specifiers or '...' before string constant
drivers/iommu/omap-iommu-debug.c:416:1: warning: data definition has no
type or storage class
drivers/iommu/omap-iommu-debug.c:416:1: warning: type defaults to 'int'
in declaration of 'MODULE_DESCRIPTION'
drivers/iommu/omap-iommu-debug.c:416:20: warning: function declaration
isn't a prototype
drivers/iommu/omap-iommu-debug.c:417:15: error: expected declaration
specifiers or '...' before string constant
drivers/iommu/omap-iommu-debug.c:417:1: warning: data definition has no
type or storage class
drivers/iommu/omap-iommu-debug.c:417:1: warning: type defaults to 'int'
in declaration of 'MODULE_AUTHOR'
drivers/iommu/omap-iommu-debug.c:417:15: warning: function declaration
isn't a prototype
drivers/iommu/omap-iommu-debug.c:418:16: error: expected declaration
specifiers or '...' before string constant
drivers/iommu/omap-iommu-debug.c:418:1: warning: data definition has no
type or storage class
drivers/iommu/omap-iommu-debug.c:418:1: warning: type defaults to 'int'
in declaration of 'MODULE_LICENSE'
drivers/iommu/omap-iommu-debug.c:418:16: warning: function declaration
isn't a prototype
make[2]: *** [drivers/iommu/omap-iommu-debug.o] Error 1
make[2]: *** Waiting for unfinished jobs....

drivers/iommu/omap-iovmm.c:247:1: warning: data definition has no type
or storage class
drivers/iommu/omap-iovmm.c:247:1: warning: type defaults to 'int' in
declaration of 'EXPORT_SYMBOL_GPL'
drivers/iommu/omap-iovmm.c:247:1: warning: parameter names (without
types) in function declaration
drivers/iommu/omap-iovmm.c:369:1: warning: data definition has no type
or storage class
drivers/iommu/omap-iovmm.c:369:1: warning: type defaults to 'int' in
declaration of 'EXPORT_SYMBOL_GPL'
drivers/iommu/omap-iovmm.c:369:1: warning: parameter names (without
types) in function declaration
drivers/iommu/omap-iovmm.c:620:1: warning: data definition has no type
or storage class
drivers/iommu/omap-iovmm.c:620:1: warning: type defaults to 'int' in
declaration of 'EXPORT_SYMBOL_GPL'
drivers/iommu/omap-iovmm.c:620:1: warning: parameter names (without
types) in function declaration
drivers/iommu/omap-iovmm.c:645:1: warning: data definition has no type
or storage class
drivers/iommu/omap-iovmm.c:645:1: warning: type defaults to 'int' in
declaration of 'EXPORT_SYMBOL_GPL'
drivers/iommu/omap-iovmm.c:645:1: warning: parameter names (without
types) in function declaration
drivers/iommu/omap-iovmm.c:696:1: warning: data definition has no type
or storage class
drivers/iommu/omap-iovmm.c:696:1: warning: type defaults to 'int' in
declaration of 'EXPORT_SYMBOL_GPL'
drivers/iommu/omap-iovmm.c:696:1: warning: parameter names (without
types) in function declaration
drivers/iommu/omap-iovmm.c:717:1: warning: data definition has no type
or storage class
drivers/iommu/omap-iovmm.c:717:1: warning: type defaults to 'int' in
declaration of 'EXPORT_SYMBOL_GPL'
drivers/iommu/omap-iovmm.c:717:1: warning: parameter names (without
types) in function declaration
drivers/iommu/omap-iovmm.c:740:20: error: expected declaration
specifiers or '...' before string constant
drivers/iommu/omap-iovmm.c:740:1: warning: data definition has no type
or storage class
drivers/iommu/omap-iovmm.c:740:1: warning: type defaults to 'int' in
declaration of 'MODULE_DESCRIPTION'
drivers/iommu/omap-iovmm.c:740:20: warning: function declaration isn't a
prototype
drivers/iommu/omap-iovmm.c:741:15: error: expected declaration
specifiers or '...' before string constant
drivers/iommu/omap-iovmm.c:741:1: warning: data definition has no type
or storage class
drivers/iommu/omap-iovmm.c:741:1: warning: type defaults to 'int' in
declaration of 'MODULE_AUTHOR'
drivers/iommu/omap-iovmm.c:741:15: warning: function declaration isn't a
prototype
drivers/iommu/omap-iovmm.c:742:16: error: expected declaration
specifiers or '...' before string constant
drivers/iommu/omap-iovmm.c:742:1: warning: data definition has no type
or storage class
drivers/iommu/omap-iovmm.c:742:1: warning: type defaults to 'int' in
declaration of 'MODULE_LICENSE'
drivers/iommu/omap-iovmm.c:742:16: warning: function declaration isn't a
prototype
make[2]: *** [drivers/iommu/omap-iovmm.o] Error 1
make[1]: *** [drivers/iommu] Error 2
make[1]: *** Waiting for unfinished jobs....

Signed-off-by: Ming Lei <tom.leiming@xxxxxxxxx>
---
drivers/iommu/omap-iommu-debug.c | 1 +
drivers/iommu/omap-iovmm.c | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/iommu/omap-iommu-debug.c b/drivers/iommu/omap-iommu-debug.c
index 9c192e7..288da5c 100644
--- a/drivers/iommu/omap-iommu-debug.c
+++ b/drivers/iommu/omap-iommu-debug.c
@@ -10,6 +10,7 @@
* published by the Free Software Foundation.
*/

+#include <linux/module.h>
#include <linux/err.h>
#include <linux/clk.h>
#include <linux/io.h>
diff --git a/drivers/iommu/omap-iovmm.c b/drivers/iommu/omap-iovmm.c
index e8fdb88..46be456 100644
--- a/drivers/iommu/omap-iovmm.c
+++ b/drivers/iommu/omap-iovmm.c
@@ -10,6 +10,7 @@
* published by the Free Software Foundation.
*/

+#include <linux/module.h>
#include <linux/err.h>
#include <linux/slab.h>
#include <linux/vmalloc.h>
--
1.7.5.4

--
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/