Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753345AbeABLuQ (ORCPT + 1 other); Tue, 2 Jan 2018 06:50:16 -0500 Received: from mout.kundenserver.de ([217.72.192.75]:54330 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753067AbeABLrb (ORCPT ); Tue, 2 Jan 2018 06:47:31 -0500 From: Arnd Bergmann To: Michal Simek Cc: Andrew Morton , linux-arch@vger.kernel.org, Babu Moger , linux-kernel@vger.kernel.org, Arnd Bergmann Subject: [PATCH 2/2] microblaze: fix iounmap prototype Date: Tue, 2 Jan 2018 12:47:20 +0100 Message-Id: <20180102114720.3408356-2-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20180102114720.3408356-1-arnd@arndb.de> References: <20180102114720.3408356-1-arnd@arndb.de> X-Provags-ID: V03:K0:JASaFF5gs+ayoO6GIykISDsqZ4qYG6Qym/m/epxEZyjg+TkBfO4 r4nsbz/vfKY/bHDYdUZIYi447YSDTcEFpkYVj3MKNnNcAoCM4IHPSqwRPsLNPXTVmyEPCai xmfleHSlJ6TP5tBOpj7nmWEE9Ah3PL3g5eHe0DVri5MvRMVpV2mXNwO26f+EamBnuw1nm2k HWe6hocINZleMAZM/0JuQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:cGE3hJUPVas=:KYzLf+xYdV4LfsXskbemdS lnwB3iO6e6+3RiPqQi7fS/koaWJaYQOwCF9NWVk9i72VwtCa7A7nA6gnKCkfj+domf4XRn7Fx gwQBd/Wxkmu7UhD+u2SaUEnXZob4g1MEqIY05jJMsp//yY1HedJq5eQJBZDX0N7VcucYj/KP1 ZhcW83Nn/8GHQFHvlwATYJdV4J6EYDFFnlvGdV52ReAOBD9vn2bWvoSt9exL2U+3KiURIgkJH L6XbGZ81OaHNrbFWaEeFW7EzsL8UZY+gpIbwGPQ/uheqR5Qj/xxXjQhwmb6nBe6eGa8q8wSJ4 eBekDCXJz4p1pzO+Y6HWDzTn9XKmtvaVFtiG+xV7pC72BV4VDkVL2e1JkN6E/rYwnZ1kS3gZb RBbyRbIkj/aShRGbA8Uxw6H1ZZusFcyQUmvFp7QQeTjzWKoSf9BQ5tkPs3PCyT5w3JWgj2TrT fJNwQKCQJR19W+19yE63g+A7ISiyS9kQyGd9CYfua8P/+GXHFTI0TsRSTDVnBfXe/2deidfdb lHljzHfkIR05l3DjXntI3pqbRGIbncXrQvgGd6ImxbNbocvpuV687Q7Y3IVxRNErf/nTNZB68 r2HRqFXT7PNH9ou67ZQjW+ZxERsvaGk9+MA6zytO4ZzHwZ7Y8bomkbwzb+oLdU6fFp5v34SWz 85Bf1GA1BT+onkK0+XMBSpLfAp9tr4ekBeEzOvqpz804jdcrYncJOGmLNV0BR/gn5HVXBWrVP 9E/13A+ODfOCxxNsugn7xcFg0QnJn1s/S5za43VWHRAIjgPMx6g/DMtYsXA= 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 from pointer target type [-Wdiscarded-qualifiers] Signed-off-by: Arnd Bergmann --- arch/microblaze/include/asm/io.h | 2 +- arch/microblaze/mm/pgtable.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/microblaze/include/asm/io.h b/arch/microblaze/include/asm/io.h index 39b6315db82e..c7968139486f 100644 --- a/arch/microblaze/include/asm/io.h +++ b/arch/microblaze/include/asm/io.h @@ -36,7 +36,7 @@ extern resource_size_t isa_mem_base; #ifdef CONFIG_MMU #define page_to_bus(page) (page_to_phys(page)) -extern void iounmap(void __iomem *addr); +extern void iounmap(volatile void __iomem *addr); extern void __iomem *ioremap(phys_addr_t address, unsigned long size); #define ioremap_nocache(addr, size) ioremap((addr), (size)) diff --git a/arch/microblaze/mm/pgtable.c b/arch/microblaze/mm/pgtable.c index 4c0599239915..7f525962cdfa 100644 --- a/arch/microblaze/mm/pgtable.c +++ b/arch/microblaze/mm/pgtable.c @@ -127,7 +127,7 @@ void __iomem *ioremap(phys_addr_t addr, unsigned long size) } EXPORT_SYMBOL(ioremap); -void iounmap(void __iomem *addr) +void iounmap(volatile void __iomem *addr) { if ((__force void *)addr > high_memory && (unsigned long) addr < ioremap_bot) -- 2.9.0