From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755895Ab1JNDRB (ORCPT ); Thu, 13 Oct 2011 23:17:01 -0400 Received: from mail.windriver.com ([147.11.1.11]:60775 "EHLO mail.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753510Ab1JNDRA (ORCPT ); Thu, 13 Oct 2011 23:17:00 -0400 Date: Thu, 13 Oct 2011 23:15:45 -0400 From: Paul Gortmaker To: Axel Lin CC: Kukjin Kim , , Ben Dooks , Russell King , , Boojin Kim Subject: Re: [PATCH] ARM: SAMSUNG: s3c-dma-ops needs export.h for EXPORT_SYMBOL Message-ID: <20111014031543.GC28189@windriver.com> References: <1317961214.16109.1.camel@phoenix> <069601cc88dc$6b9a78d0$42cf6a70$%kim@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [Re: [PATCH] ARM: SAMSUNG: s3c-dma-ops needs export.h for EXPORT_SYMBOL] On 12/10/2011 (Wed 21:49) Axel Lin wrote: > 2011/10/12 Kukjin Kim : > > Kukjin Kim wrote: > >> > >> Axel Lin wrote: > >> > > >> > Fix below build warning: > >> >   CC      arch/arm/plat-samsung/s3c-dma-ops.o > >> > arch/arm/plat-samsung/s3c-dma-ops.c:130: warning: data definition has no type > >> or > >> > storage class > >> > arch/arm/plat-samsung/s3c-dma-ops.c:130: warning: type defaults to 'int' in > >> > declaration of 'EXPORT_SYMBOL' > >> > arch/arm/plat-samsung/s3c-dma-ops.c:130: warning: parameter names (without > >> > types) in function declaration > >> > > >> > And fix the build error: > >> > ERROR: "s3c_dma_get_ops" [drivers/spi/spi-s3c64xx.ko] undefined! > >> > make[1]: *** [__modpost] Error 1 > >> > make: *** [modules] Error 2 > >> > > >> > Signed-off-by: Axel Lin > >> > --- > >> > This can be reproduced by "make s3c6400_defconfig;make" on linux-next > >> > 20111006. > >> >  arch/arm/plat-samsung/s3c-dma-ops.c |    1 + > >> >  1 files changed, 1 insertions(+), 0 deletions(-) > >> > > >> > diff --git a/arch/arm/plat-samsung/s3c-dma-ops.c b/arch/arm/plat-samsung/s3c- > >> > dma-ops.c > >> > index 582333c..7814949 100644 > >> > --- a/arch/arm/plat-samsung/s3c-dma-ops.c > >> > +++ b/arch/arm/plat-samsung/s3c-dma-ops.c > >> > @@ -14,6 +14,7 @@ > >> >  #include > >> >  #include > >> >  #include > >> > +#include > >> > > >> >  #include > >> > > >> > -- > >> > 1.7.4.1 > >> > > >> OK, will apply. > >> > >> BTW, I don't know why the build error/warning was not happened in my tree with > >> s3c6400_defconfig. Probably other file having it?... > >> > > Hi Axel, > > > > When I applied this in my tree, happened following error with s3c6400_defconfig. > > > > arch/arm/plat-samsung/s3c-dma-ops.c:17: fatal error: linux/export.h: No such file or directory > > > > Probably the file has been added from other tree. > > So if required, will fix with this during upcoming merge window maybe at end of. > > > Cc Paul Gortmaker, > Maybe it is only in Paul's tree now. Correct. The export.h is only in linux-next, which it gets from the module.h splitup tree. I am currently tracking post-merge export.h additions to both s3c-dma-ops and also plat-samsung/dma-ops.c files. THanks, Paul. > > Regards, > Axel