Skip to content

Commit 7497840

Browse files
groeckglaubitz
authored andcommitted
sh: Provide unxlate_dev_mem_ptr() in asm/io.h
The unxlate_dev_mem_ptr() function has no prototype on the sh architecture which does not include asm-generic/io.h. This results in the following build failure: drivers/char/mem.c: In function 'read_mem': drivers/char/mem.c:164:25: error: implicit declaration of function 'unxlate_dev_mem_ptr' This compile error is now seen because commit 99b619b ("mips: provide unxlate_dev_mem_ptr() in asm/io.h") removed the weak function which was previously in place to handle this problem. Add a trivial macro to the sh header to provide the now missing dummy function. Fixes: 99b619b ("mips: provide unxlate_dev_mem_ptr() in asm/io.h") Cc: Arnd Bergmann <[email protected]> Signed-off-by: Guenter Roeck <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Reviewed-by: John Paul Adrian Glaubitz <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: John Paul Adrian Glaubitz <[email protected]>
1 parent 3ad4dcb commit 7497840

File tree

1 file changed

+1
-0
lines changed
  • arch/sh/include/asm

1 file changed

+1
-0
lines changed

arch/sh/include/asm/io.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@ static inline void iounmap(volatile void __iomem *addr) { }
286286
* access
287287
*/
288288
#define xlate_dev_mem_ptr(p) __va(p)
289+
#define unxlate_dev_mem_ptr(p, v) do { } while (0)
289290

290291
#define ARCH_HAS_VALID_PHYS_ADDR_RANGE
291292
int valid_phys_addr_range(phys_addr_t addr, size_t size);

0 commit comments

Comments
 (0)