From patchwork Thu Aug 19 14:40:00 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 120363 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o7JEddel030106 for ; Thu, 19 Aug 2010 14:39:48 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752318Ab0HSOjr (ORCPT ); Thu, 19 Aug 2010 10:39:47 -0400 Received: from mailout-de.gmx.net ([213.165.64.23]:46054 "HELO mail.gmx.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with SMTP id S1752245Ab0HSOjp (ORCPT ); Thu, 19 Aug 2010 10:39:45 -0400 Received: (qmail invoked by alias); 19 Aug 2010 14:39:43 -0000 Received: from p508982A3.dip0.t-ipconnect.de (EHLO axis700.grange) [80.137.130.163] by mail.gmx.net (mp071) with SMTP; 19 Aug 2010 16:39:43 +0200 X-Authenticated: #20450766 X-Provags-ID: V01U2FsdGVkX1/R6ZhAGnfRvXE6kJSrFO+YHOn6ZLNiuwNu2sg0r1 O2BfS2iQokwe35 Received: from lyakh (helo=localhost) by axis700.grange with local-esmtp (Exim 4.63) (envelope-from ) id 1Om6Hg-0007d4-V8; Thu, 19 Aug 2010 16:40:00 +0200 Date: Thu, 19 Aug 2010 16:40:00 +0200 (CEST) From: Guennadi Liakhovetski To: Russell King - ARM Linux cc: linux-sh@vger.kernel.org, Marin Mitov , =?ISO-8859-15?Q?Uwe_Kleine-K=F6nig?= , =?ISO-8859-15?Q?Philippe_R=E9tornaz?= , Greg Kroah-Hartman , linux-arm-kernel@lists.infradead.org, Janusz Krzysztofik Subject: [PATCH 1/5] DMA: Remove unneeded "extern" from function declarations In-Reply-To: Message-ID: References: MIME-Version: 1.0 X-Y-GMX-Trusted: 0 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Thu, 19 Aug 2010 14:39:48 +0000 (UTC) diff --git a/include/asm-generic/dma-coherent.h b/include/asm-generic/dma-coherent.h index 85a3ffa..a92bc09 100644 --- a/include/asm-generic/dma-coherent.h +++ b/include/asm-generic/dma-coherent.h @@ -14,15 +14,12 @@ int dma_release_from_coherent(struct device *dev, int order, void *vaddr); * Standard interface */ #define ARCH_HAS_DMA_DECLARE_COHERENT_MEMORY -extern int -dma_declare_coherent_memory(struct device *dev, dma_addr_t bus_addr, +int dma_declare_coherent_memory(struct device *dev, dma_addr_t bus_addr, dma_addr_t device_addr, size_t size, int flags); -extern void -dma_release_declared_memory(struct device *dev); +void dma_release_declared_memory(struct device *dev); -extern void * -dma_mark_declared_memory_occupied(struct device *dev, +void *dma_mark_declared_memory_occupied(struct device *dev, dma_addr_t device_addr, size_t size); #else #define dma_alloc_from_coherent(dev, size, handle, ret) (0)