Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752933AbeABLCL (ORCPT + 1 other); Tue, 2 Jan 2018 06:02:11 -0500 Received: from mout.kundenserver.de ([212.227.126.134]:55971 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751444AbeABLCJ (ORCPT ); Tue, 2 Jan 2018 06:02:09 -0500 From: Arnd Bergmann Cc: Andrew Morton , linux-arch@vger.kernel.org, Arnd Bergmann , Vineet Gupta , linux-snps-arc@lists.infradead.org, linux-kernel@vger.kernel.org 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== To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: 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)) -- 2.9.0