From: Stanislav Kinsburskii <stanislav.kinsburskii@xxxxxxxxx> 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@xxxxxxxxx> CC: Thomas Bogendoerfer <tsbogend@xxxxxxxxxxxxxxxx> CC: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx> CC: Michael Ellerman <mpe@xxxxxxxxxxxxxx> CC: Florian Fainelli <f.fainelli@xxxxxxxxx> CC: Arnd Bergmann <arnd@xxxxxxxx> CC: Stanislav Kinsburskii <stanislav.kinsburskii@xxxxxxxxx> CC: Jiaxun Yang <jiaxun.yang@xxxxxxxxxxx> CC: linux-mips@xxxxxxxxxxxxxxx CC: linux-kernel@xxxxxxxxxxxxxxx --- 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); }