mips: provide unxlate_dev_mem_ptr() in asm/io.h
authorArnd Bergmann <arnd@arndb.de>
Tue, 16 May 2023 19:39:42 +0000 (21:39 +0200)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Fri, 9 Jun 2023 07:48:53 +0000 (09:48 +0200)
commit99b619b37ae151dc0fcdffcae48b5a5ad90ebde8
tree763d14c6093d0dc78fb52e81daa89387e2bcd3c8
parentc5e4d83872ae2900aa142b0505eeb2a5026173a7
mips: provide unxlate_dev_mem_ptr() in asm/io.h

The unxlate_dev_mem_ptr() function has no prototype on the mips
architecture, which does not include asm-generic/io.h, so gcc warns
about the __weak definition:

drivers/char/mem.c:94:29: error: no previous prototype for 'unxlate_dev_mem_ptr' [-Werror=missing-prototypes]

Since everyone else already gets the generic definition or has a custom
one, there is not really much point in having a __weak version as well.

Remove this one, and instead add a trivial macro to the mips header.
Once we convert mips to use the asm-generic header, this can go away
again.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/include/asm/io.h
drivers/char/mem.c