linux-mips
[Top] [All Lists]

Re: [PATCH] MIPS: lantiq: Fix compile error in arch/mips/lantiq/xway/dma

To: Ralf Baechle <ralf@linux-mips.org>
Subject: Re: [PATCH] MIPS: lantiq: Fix compile error in arch/mips/lantiq/xway/dma.c
From: John Crispin <john@phrozen.org>
Date: Thu, 10 Nov 2011 16:42:18 +0100
Cc: linux-mips@linux-mips.org
In-reply-to: <1320938762-3472-1-git-send-email-blogic@openwrt.org>
References: <1320938762-3472-1-git-send-email-blogic@openwrt.org>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.20) Gecko/20110820 Icedove/3.1.12
Hi Ralf,

please ignore this patch, i will resend a different version that
replaces module.h with export.h
for all arch/mips/lantiq/ files.

thanks,
John

On 10/11/11 16:26, John Crispin wrote:
> include/export.h needs to be included by arch/mips/lantiq/xway/dma.c.
> Without this include we see the following errors.
>
> arch/mips/lantiq/xway/dma.c:76:1: error: data definition has no type or 
> storage class
> arch/mips/lantiq/xway/dma.c:76:1: error: type defaults to 'int' in 
> declaration of 'EXPORT_SYMBOL_GPL'
> arch/mips/lantiq/xway/dma.c:76:1: error: parameter names (without types) in 
> function declaration
> arch/mips/lantiq/xway/dma.c:88:1: error: data definition has no type or 
> storage class
> arch/mips/lantiq/xway/dma.c:88:1: error: type defaults to 'int' in 
> declaration of 'EXPORT_SYMBOL_GPL'
> arch/mips/lantiq/xway/dma.c:88:1: error: parameter names (without types) in 
> function declaration
> arch/mips/lantiq/xway/dma.c:100:1: error: data definition has no type or 
> storage class
> arch/mips/lantiq/xway/dma.c:100:1: error: type defaults to 'int' in 
> declaration of 'EXPORT_SYMBOL_GPL'
> arch/mips/lantiq/xway/dma.c:100:1: error: parameter names (without types) in 
> function declaration
> arch/mips/lantiq/xway/dma.c:113:1: error: data definition has no type or 
> storage class
> arch/mips/lantiq/xway/dma.c:113:1: error: type defaults to 'int' in 
> declaration of 'EXPORT_SYMBOL_GPL'
> arch/mips/lantiq/xway/dma.c:113:1: error: parameter names (without types) in 
> function declaration
> arch/mips/lantiq/xway/dma.c:126:1: error: data definition has no type or 
> storage class
> arch/mips/lantiq/xway/dma.c:126:1: error: type defaults to 'int' in 
> declaration of 'EXPORT_SYMBOL_GPL'
> arch/mips/lantiq/xway/dma.c:126:1: error: parameter names (without types) in 
> function declaration
> arch/mips/lantiq/xway/dma.c:164:1: error: data definition has no type or 
> storage class
> arch/mips/lantiq/xway/dma.c:164:1: error: type defaults to 'int' in 
> declaration of 'EXPORT_SYMBOL_GPL'
> arch/mips/lantiq/xway/dma.c:164:1: error: parameter names (without types) in 
> function declaration
> arch/mips/lantiq/xway/dma.c:179:1: error: data definition has no type or 
> storage class
> arch/mips/lantiq/xway/dma.c:179:1: error: type defaults to 'int' in 
> declaration of 'EXPORT_SYMBOL_GPL'
> arch/mips/lantiq/xway/dma.c:179:1: error: parameter names (without types) in 
> function declaration
> arch/mips/lantiq/xway/dma.c:190:1: error: data definition has no type or 
> storage class
> arch/mips/lantiq/xway/dma.c:190:1: error: type defaults to 'int' in 
> declaration of 'EXPORT_SYMBOL_GPL'
> arch/mips/lantiq/xway/dma.c:190:1: error: parameter names (without types) in 
> function declaration
> arch/mips/lantiq/xway/dma.c:215:1: error: data definition has no type or 
> storage class
> arch/mips/lantiq/xway/dma.c:215:1: error: type defaults to 'int' in 
> declaration of 'EXPORT_SYMBOL_GPL'
> arch/mips/lantiq/xway/dma.c:215:1: error: parameter names (without types) in 
> function declaration
>
> Signed-off-by: John Crispin <blogic@openwrt.org>
> Cc: linux-mips@linux-mips.org
>
> ---
>  arch/mips/lantiq/xway/dma.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/arch/mips/lantiq/xway/dma.c b/arch/mips/lantiq/xway/dma.c
> index 4278a45..cbb6ae5 100644
> --- a/arch/mips/lantiq/xway/dma.c
> +++ b/arch/mips/lantiq/xway/dma.c
> @@ -19,6 +19,7 @@
>  #include <linux/platform_device.h>
>  #include <linux/io.h>
>  #include <linux/dma-mapping.h>
> +#include <linux/export.h>
>  
>  #include <lantiq_soc.h>
>  #include <xway_dma.h>


<Prev in Thread] Current Thread [Next in Thread>