From patchwork Tue Jan 2 11:01:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 854514 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=65.50.211.133; helo=bombadil.infradead.org; envelope-from=linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="suektwqK"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3z9rjv71F9z9t3h for ; Tue, 2 Jan 2018 22:02:11 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=DOqgWjzS3ea7jZTuMeO/GoBWm9dBKnNP8S3Aks2COJA=; b=sue ktwqKh5aXSmcVS+pYTzhK9Uf/jUNauAOmC5oB1NwRG9gXy108QhVtB8463q7cwg45EoVcCL1WjJlC mwivNhgXcDn3QoKnvNIvsdqOV4Xmnwrt9FvIfb+Occt9sU9/qXH4xnOlFpt07SMERHuwpBQc9UXsp RpauyNC7F2B0nn51Wzj8d3qV7rEVlkc7Gg/QRXxqFIVkK3ReXDAqCel6EqynF2RzOZACamKSznv/e AHc1jZ26fYiA61gDAX7Y16nhd7kW9J5c2kyDYwcntqn70slUa6Xw8vS56bKjjjyeu/akzHMCuQtU8 JD2XVcSGqmZY99/LLBSJSvugyFt1lXQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eWKKf-0002LV-V3; Tue, 02 Jan 2018 11:02:09 +0000 Received: from mout.kundenserver.de ([212.227.126.134]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eWKKY-0001u7-8K for linux-snps-arc@lists.infradead.org; Tue, 02 Jan 2018 11:02:08 +0000 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue002 [212.227.15.129]) with ESMTPA (Nemesis) id 0Lup4D-1ewUA249K5-0102n3; Tue, 02 Jan 2018 12:01:44 +0100 From: Arnd Bergmann To: Subject: [PATCH] arc: fix iounmap prototype Date: Tue, 2 Jan 2018 12:01:24 +0100 Message-Id: <20180102110141.1853608-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:sQGu6NQqu8f7mvECC9EA6hZZhZwuHuRTsQ2JgI0R/dltAis5t5g v4uLy9aBpJi+zkH9Ej8MTCk9o/O8gM74MVcP8+HBMJgc6IMWM7mRoa4Z98h9wptJefvA5lZ hh1+4oNVWkLCVlzsNOq00F5WmnjUwpLRamNU+PXiuaaAIPeWPUilK2haQCogIqJM0wEh8rg c/NCCjqnmu5sY+r0uLDcA== X-UI-Out-Filterresults: notjunk:1; V01:K0:P16YhBSfaxM=:Y26GM/+H1mwXsf3gAo3T0d HIdsHxc0ptGr44SN0KUCUssSmkuBtBnnHow1ND6lhiUR9TXyPf/0MPWnMwGqRn+9r3AcWxLWk WgVE5JzKXkAYG9tZF++G8/bmqU9T07yvGYcvUboWx6qHS05uKgTCarHQ25Pl9TAwGzN5sy0Nf I9Zo2mPkVEHZHGfMqZ6hHWTrE9HuGCh+Qi0+sb7fhhlxoZ2TqQD+nMeJahnCrNzPszR8DXoRV KCnKEn3X+SP14GwfzjrGXTo7UM52w5+w+wb3dfc77F1AZX+9Oahi39fb/Bh+7mrWSSolc3gso d2BMIOHR/7D+oTM+RXHZmJO3LEug4d2SShuD4Olug1s1TthyYXxIYeld83rCaD3RtzLYLEqmk xaOK+1IzdRx/s+VaY9X3xjz8bDCV9LhGLhJuKISdsZ2V0XzA/0uOMdQfkmNZjJseTjDR8J5JX EikPn18nZtxJHio0QlZvNq0FDgA4r6oGa6CgsOYzBYVRsRwNkziZLZ/SSmajdvfPZjKuphxJ0 ebJlglejpJY/Gg5WX4Sp7XOxINXrOzNrjg5fY/H/4eC/78pstKGTOpFfC8itsXYdO5cs7aNuH DwIwcbwsYVZ2aAkpidGYMztHR8FsXYLBuGtT+5WYchkTCHkrtYQcALYJh54fkjROD52ktgMsJ CzaVHCm71VtclYVJXzVQ8FBmnArjcDjGeQMCdWM7mWYBh2te37uZaZMb6+qv6m6wFL47wrNJm 8fE+cKwcZUuApcweEEZkWPLKAnlYAVKFXbYv6Q== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180102_030202_714232_D15FFCB1 X-CRM114-Status: UNSURE ( 8.79 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [212.227.126.134 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [212.227.126.134 listed in wl.mailspike.net] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arch@vger.kernel.org, Arnd Bergmann , Vineet Gupta , linux-kernel@vger.kernel.org, Andrew Morton , linux-snps-arc@lists.infradead.org MIME-Version: 1.0 Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org The missing 'volatile' keyword on the iounmap argument leads to lots of harmless warnings in an allmodconfig build: sound/pci/echoaudio/echoaudio.c:1879:10: warning: passing argument 1 of 'iounmap' discards 'volatile' qualifier f pointer target type [-Wdiscarded-qualifiers] Signed-off-by: Arnd Bergmann --- arch/arc/include/asm/io.h | 4 ++-- arch/arc/mm/ioremap.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arc/include/asm/io.h b/arch/arc/include/asm/io.h index c22b181e8206..2c9b98fabf82 100644 --- a/arch/arc/include/asm/io.h +++ b/arch/arc/include/asm/io.h @@ -30,11 +30,11 @@ static inline void __iomem *ioport_map(unsigned long port, unsigned int nr) return (void __iomem *)port; } -static inline void ioport_unmap(void __iomem *addr) +static inline void ioport_unmap(volatile void __iomem *addr) { } -extern void iounmap(const void __iomem *addr); +extern void iounmap(const volatile void __iomem *addr); #define ioremap_nocache(phy, sz) ioremap(phy, sz) #define ioremap_wc(phy, sz) ioremap(phy, sz) diff --git a/arch/arc/mm/ioremap.c b/arch/arc/mm/ioremap.c index 9881bd740ccc..94d0116063a8 100644 --- a/arch/arc/mm/ioremap.c +++ b/arch/arc/mm/ioremap.c @@ -95,7 +95,7 @@ void __iomem *ioremap_prot(phys_addr_t paddr, unsigned long size, EXPORT_SYMBOL(ioremap_prot); -void iounmap(const void __iomem *addr) +void iounmap(volatile const void __iomem *addr) { /* weird double cast to handle phys_addr_t > 32 bits */ if (arc_uncached_addr_space((phys_addr_t)(u32)addr))