From patchwork Mon Jul 4 08:12:21 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: axel lin X-Patchwork-Id: 941762 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 p648Cpu3009754 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 4 Jul 2011 08:13:12 GMT Received: from canuck.infradead.org ([134.117.69.58]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QdeGp-00063i-7M; Mon, 04 Jul 2011 08:12:43 +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 1QdeGo-0002Qp-Rj; Mon, 04 Jul 2011 08:12:42 +0000 Received: from mail-yx0-f177.google.com ([209.85.213.177]) by canuck.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QdeGk-0002QN-Ok for linux-arm-kernel@lists.infradead.org; Mon, 04 Jul 2011 08:12:39 +0000 Received: by yxj20 with SMTP id 20so679071yxj.36 for ; Mon, 04 Jul 2011 01:12:31 -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=y3+vaDuuFOFVKG7+khfYpapqBiUVaUJ8Mz0ezP5Xl+w=; b=Ngn6cmkiN6aUuxUGzZ9U3pJOGrIn+6FwciwQPji2S20iz4D3iyImpAjmoP1r5t3in+ cXbFm54Eo+wAAJNLtz/1Mp9ZPR8CUqeOE/GD90ODC2fnM3y+Z3YHCo0b+eqjBPWsWgmw fwTqjIf1+NWwpFIj7Z2PugRvfXBnh/EkQW9hU= Received: by 10.150.72.24 with SMTP id u24mr5228057yba.31.1309767151102; Mon, 04 Jul 2011 01:12:31 -0700 (PDT) Received: from [218.172.238.208] (218-172-238-208.dynamic.hinet.net [218.172.238.208]) by mx.google.com with ESMTPS id c41sm1742305ybc.15.2011.07.04.01.12.29 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 04 Jul 2011 01:12:30 -0700 (PDT) Subject: [PATCH] ARM: DMA: Silence declared inside parameter list warning for !CONFIG_MMU From: Axel Lin To: linux-kernel@vger.kernel.org Date: Mon, 04 Jul 2011 16:12:21 +0800 Message-ID: <1309767141.3964.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-20110704_041238_981809_8AEA53E2 X-CRM114-Status: GOOD ( 12.11 ) 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.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (axel.lin[at]gmail.com) -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.213.177 listed in list.dnswl.org] -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, Sergei Shtylyov 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]); Mon, 04 Jul 2011 08:13:12 +0000 (UTC) Fix below warning, the struct dma_coherent_area takes no space if !CONFIG_MMU. 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: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 Signed-off-by: Axel Lin --- arch/arm/mm/dma-mapping.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/arm/mm/dma-mapping.c b/arch/arm/mm/dma-mapping.c index 8089499..da3b33a 100644 --- a/arch/arm/mm/dma-mapping.c +++ b/arch/arm/mm/dma-mapping.c @@ -297,6 +297,8 @@ static void dma_free_area(void *cpu_addr, size_t size, struct dma_coherent_area #define coherent_wc_area NULL #define coherent_dma_area NULL +struct dma_coherent_area { }; + void dma_coherent_reserve(void) { }