* [PATCH] dma: imx-dma: Fix build by including <linux/module.h>
@ 2012-03-08 21:26 Fabio Estevam
2012-03-13 4:23 ` Vinod Koul
0 siblings, 1 reply; 2+ messages in thread
From: Fabio Estevam @ 2012-03-08 21:26 UTC (permalink / raw)
To: linux-kernel; +Cc: vinod.koul, kernel, Fabio Estevam
commit 13ae246 (includecheck: delete any duplicate instances of module.) removed
a duplicated module.h inclusion from imx-dma.c.
,and commit 865d9438 (drivers/dma: linux/module.h included twice) did the same.
Let one linux/module.h be included so that it can be built again.
This fix the following error:
C drivers/dma/imx-dma.o
drivers/dma/imx-dma.c:658: error: expected declaration specifiers or '...' before string constant
drivers/dma/imx-dma.c:658: warning: data definition has no type or storage class
drivers/dma/imx-dma.c:658: warning: type defaults to 'int' in declaration of 'MODULE_AUTHOR'
drivers/dma/imx-dma.c:658: warning: function declaration isn't a prototype
drivers/dma/imx-dma.c:659: error: expected declaration specifiers or '...' before string constant
drivers/dma/imx-dma.c:659: warning: data definition has no type or storage class
drivers/dma/imx-dma.c:659: warning: type defaults to 'int' in declaration of 'MODULE_DESCRIPTION'
drivers/dma/imx-dma.c:659: warning: function declaration isn't a prototype
drivers/dma/imx-dma.c:660: error: expected declaration specifiers or '...' before string constant
drivers/dma/imx-dma.c:660: warning: data definition has no type or storage class
drivers/dma/imx-dma.c:660: warning: type defaults to 'int' in declaration of 'MODULE_LICENSE'
drivers/dma/imx-dma.c:660: warning: function declaration isn't a prototype
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
drivers/dma/imx-dma.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/dma/imx-dma.c b/drivers/dma/imx-dma.c
index ca78fca..7be8d1f 100644
--- a/drivers/dma/imx-dma.c
+++ b/drivers/dma/imx-dma.c
@@ -25,6 +25,7 @@
#include <linux/slab.h>
#include <linux/platform_device.h>
#include <linux/dmaengine.h>
+#include <linux/module.h>
#include <asm/irq.h>
#include <mach/dma-v1.h>
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] dma: imx-dma: Fix build by including <linux/module.h>
2012-03-08 21:26 [PATCH] dma: imx-dma: Fix build by including <linux/module.h> Fabio Estevam
@ 2012-03-13 4:23 ` Vinod Koul
0 siblings, 0 replies; 2+ messages in thread
From: Vinod Koul @ 2012-03-13 4:23 UTC (permalink / raw)
To: Fabio Estevam; +Cc: linux-kernel, kernel, Fabio Estevam
On Thu, 2012-03-08 at 18:26 -0300, Fabio Estevam wrote:
> commit 13ae246 (includecheck: delete any duplicate instances of module.) removed
> a duplicated module.h inclusion from imx-dma.c.
>
> ,and commit 865d9438 (drivers/dma: linux/module.h included twice) did the same.
>
> Let one linux/module.h be included so that it can be built again.
>
> This fix the following error:
>
> C drivers/dma/imx-dma.o
> drivers/dma/imx-dma.c:658: error: expected declaration specifiers or '...' before string constant
> drivers/dma/imx-dma.c:658: warning: data definition has no type or storage class
> drivers/dma/imx-dma.c:658: warning: type defaults to 'int' in declaration of 'MODULE_AUTHOR'
> drivers/dma/imx-dma.c:658: warning: function declaration isn't a prototype
> drivers/dma/imx-dma.c:659: error: expected declaration specifiers or '...' before string constant
> drivers/dma/imx-dma.c:659: warning: data definition has no type or storage class
> drivers/dma/imx-dma.c:659: warning: type defaults to 'int' in declaration of 'MODULE_DESCRIPTION'
> drivers/dma/imx-dma.c:659: warning: function declaration isn't a prototype
> drivers/dma/imx-dma.c:660: error: expected declaration specifiers or '...' before string constant
> drivers/dma/imx-dma.c:660: warning: data definition has no type or storage class
> drivers/dma/imx-dma.c:660: warning: type defaults to 'int' in declaration of 'MODULE_LICENSE'
> drivers/dma/imx-dma.c:660: warning: function declaration isn't a prototype
I reverted the commit 865d9438 (drivers/dma: linux/module.h included
twice) afetr it was reported on linux-next. You should not see any
errors now.
>
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
> ---
> drivers/dma/imx-dma.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/dma/imx-dma.c b/drivers/dma/imx-dma.c
> index ca78fca..7be8d1f 100644
> --- a/drivers/dma/imx-dma.c
> +++ b/drivers/dma/imx-dma.c
> @@ -25,6 +25,7 @@
> #include <linux/slab.h>
> #include <linux/platform_device.h>
> #include <linux/dmaengine.h>
> +#include <linux/module.h>
>
> #include <asm/irq.h>
> #include <mach/dma-v1.h>
--
~Vinod
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-03-13 4:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-08 21:26 [PATCH] dma: imx-dma: Fix build by including <linux/module.h> Fabio Estevam
2012-03-13 4:23 ` Vinod Koul
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox