From: tom.leiming@gmail.com
To: tony@atomide.com, joerg.roedel@amd.com
Cc: linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org,
Ming Lei <tom.leiming@gmail.com>
Subject: [PATCH] iommu: omap: fix compile failure
Date: Tue, 8 Nov 2011 18:29:15 +0800 [thread overview]
Message-ID: <1320748155-18818-1-git-send-email-tom.leiming@gmail.com> (raw)
From: Ming Lei <tom.leiming@gmail.com>
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@gmail.com>
---
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
next reply other threads:[~2011-11-08 10:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-08 10:29 tom.leiming [this message]
2011-11-08 16:24 ` [PATCH] iommu: omap: fix compile failure Joerg Roedel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1320748155-18818-1-git-send-email-tom.leiming@gmail.com \
--to=tom.leiming@gmail.com \
--cc=joerg.roedel@amd.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=tony@atomide.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox