From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754717Ab1JKLbH (ORCPT ); Tue, 11 Oct 2011 07:31:07 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:35041 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753338Ab1JKLbG convert rfc822-to-8bit (ORCPT ); Tue, 11 Oct 2011 07:31:06 -0400 X-AuditID: cbfee61a-b7cf1ae00000208e-a2-4e9428f71c4a From: Kukjin Kim To: "'Axel Lin'" , linux-kernel@vger.kernel.org Cc: "'Ben Dooks'" , "'Russell King'" , linux-arm-kernel@lists.infradead.org, "'Boojin Kim'" References: <1317961214.16109.1.camel@phoenix> In-reply-to: <1317961214.16109.1.camel@phoenix> Subject: RE: [PATCH] ARM: SAMSUNG: s3c-dma-ops needs export.h for EXPORT_SYMBOL Date: Tue, 11 Oct 2011 20:31:03 +0900 Message-id: <056b01cc8809$424a23a0$c6de6ae0$%kim@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8BIT X-Mailer: Microsoft Office Outlook 12.0 Thread-index: AcyEqHDfDDnGUALiQ/W0fYeL+9TV8gDW8ugA Content-language: ko X-Brightmail-Tracker: AAAAAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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?... Anyway, thanks. Best regards, Kgene. -- Kukjin Kim , Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.