[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <168155745691.13678.14513434425435520788.stgit@skinsburskii.localdomain>
Date: Sat, 15 Apr 2023 04:17:36 -0700
From: Stanislav Kinsburskii <skinsburskii@...ux.microsoft.com>
To: unlisted-recipients:; (no To-header on input)
Cc: Stanislav Kinsburskii <stanislav.kinsburskii@...il.com>,
Thomas Bogendoerfer <tsbogend@...ha.franken.de>,
Geert Uytterhoeven <geert@...ux-m68k.org>,
Michael Ellerman <mpe@...erman.id.au>,
Florian Fainelli <f.fainelli@...il.com>,
Arnd Bergmann <arnd@...db.de>,
Stanislav Kinsburskii <stanislav.kinsburskii@...il.com>,
Jiaxun Yang <jiaxun.yang@...goat.com>,
linux-mips@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH 3/7] mips: asm/io.h: Expect immutable pointer in
isa_virt_to_bus prototype
From: Stanislav Kinsburskii <stanislav.kinsburskii@...il.com>
These helper function - isa_virt_to_bus - doesn't need the address pointer to
be mutable.
In the same time expecting it to be mutable leads to the following build
warning for constant pointers:
warning: passing argument 1 of ‘isa_virt_to_bus’ discards ‘const’ qualifier from pointer target type
Signed-off-by: Stanislav Kinsburskii <stanislav.kinsburskii@...il.com>
CC: Thomas Bogendoerfer <tsbogend@...ha.franken.de>
CC: Geert Uytterhoeven <geert@...ux-m68k.org>
CC: Michael Ellerman <mpe@...erman.id.au>
CC: Florian Fainelli <f.fainelli@...il.com>
CC: Arnd Bergmann <arnd@...db.de>
CC: Stanislav Kinsburskii <stanislav.kinsburskii@...il.com>
CC: Jiaxun Yang <jiaxun.yang@...goat.com>
CC: linux-mips@...r.kernel.org
CC: linux-kernel@...r.kernel.org
---
arch/mips/include/asm/io.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/mips/include/asm/io.h b/arch/mips/include/asm/io.h
index cc28d207a061..d78ca2e71f8c 100644
--- a/arch/mips/include/asm/io.h
+++ b/arch/mips/include/asm/io.h
@@ -137,7 +137,7 @@ static inline void * phys_to_virt(unsigned long address)
/*
* ISA I/O bus memory addresses are 1:1 with the physical address.
*/
-static inline unsigned long isa_virt_to_bus(volatile void *address)
+static inline unsigned long isa_virt_to_bus(const volatile void *address)
{
return virt_to_phys(address);
}
Powered by blists - more mailing lists