From patchwork Fri Jul 1 08:37:52 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: axel lin X-Patchwork-Id: 934842 Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p618chju020168 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 1 Jul 2011 08:39:04 GMT Received: from canuck.infradead.org ([134.117.69.58]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QcZEp-0000tP-HC; Fri, 01 Jul 2011 08:38:11 +0000 Received: from localhost ([127.0.0.1] helo=canuck.infradead.org) by canuck.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1QcZEp-0005ih-6h; Fri, 01 Jul 2011 08:38:11 +0000 Received: from mail-iy0-f177.google.com ([209.85.210.177]) by canuck.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QcZEl-0005iB-I1 for linux-arm-kernel@lists.infradead.org; Fri, 01 Jul 2011 08:38:08 +0000 Received: by iyn15 with SMTP id 15so3228939iyn.36 for ; Fri, 01 Jul 2011 01:38:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:from:to:cc:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; bh=VaBhbXW0eZsU2gRidR0165t1LV0x0Qsnpax83Zaf/jA=; b=OjOPSFr/fifo/1UjB8GvXl9yLk+HDLBPobKMTMTQiecGhEAXIyM8YTR/u49yfhfCcW TScyssvSXEpL6dQv91Px+lL9ySMJys21a5J7zDonbqchwe1k1pcJQhk86U2o15LN75BV 96y/Nt72eaVvfb6teyC1lM6NfPI4cUQ1nMo2w= Received: by 10.42.173.132 with SMTP id r4mr3321621icz.290.1309509480846; Fri, 01 Jul 2011 01:38:00 -0700 (PDT) Received: from [218.172.238.128] (218-172-238-128.dynamic.hinet.net [218.172.238.128]) by mx.google.com with ESMTPS id j7sm3111943icq.14.2011.07.01.01.37.58 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 01 Jul 2011 01:38:00 -0700 (PDT) Subject: [PATCH] ARM: DMA: Add missing semicolon for the define of dma_alloc_area From: Axel Lin To: linux-kernel@vger.kernel.org Date: Fri, 01 Jul 2011 16:37:52 +0800 Message-ID: <1309509472.30642.1.camel@phoenix> Mime-Version: 1.0 X-Mailer: Evolution 2.32.2 X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20110701_043807_852484_4C390BC6 X-CRM114-Status: GOOD ( 14.64 ) X-Spam-Score: -0.8 (/) X-Spam-Report: SpamAssassin version 3.3.1 on canuck.infradead.org summary: Content analysis details: (-0.8 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.210.177 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (axel.lin[at]gmail.com) -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.0 T_TO_NO_BRKTS_FREEMAIL To: misformatted and free email service Cc: Russell King , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Fri, 01 Jul 2011 08:39:04 +0000 (UTC) I got below build error by: make at91x40_defconfig;make Fix it by adding a missing semicolon for the define of dma_alloc_area. CC arch/arm/mm/dma-mapping.o arch/arm/mm/dma-mapping.c:309: warning: 'struct dma_coherent_area' declared inside parameter list arch/arm/mm/dma-mapping.c:309: warning: its scope is only this definition or declaration, which is probably not what you want arch/arm/mm/dma-mapping.c: In function '__dma_alloc': arch/arm/mm/dma-mapping.c:324: error: expected ';' before '}' token arch/arm/mm/dma-mapping.c: At top level: arch/arm/mm/dma-mapping.c:334: warning: 'struct dma_coherent_area' declared inside parameter list arch/arm/mm/dma-mapping.c:374: warning: 'struct dma_coherent_area' declared inside parameter list make[1]: *** [arch/arm/mm/dma-mapping.o] Error 1 make: *** [arch/arm/mm] Error 2 Signed-off-by: Axel Lin --- arch/arm/mm/dma-mapping.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/mm/dma-mapping.c b/arch/arm/mm/dma-mapping.c index 3ec2129..090690d 100644 --- a/arch/arm/mm/dma-mapping.c +++ b/arch/arm/mm/dma-mapping.c @@ -291,7 +291,7 @@ static void dma_free_area(void *cpu_addr, size_t size, struct dma_coherent_area #else /* !CONFIG_MMU */ -#define dma_alloc_area(size, pfn, gfp, area) ({ *(pfn) = 0; NULL }) +#define dma_alloc_area(size, pfn, gfp, area) ({ *(pfn) = 0; NULL; }) #define dma_free_area(addr, size, area) do { } while (0) #define nommu() (1)