Thread (7 messages) 7 messages, 4 authors, 2023-11-20

Re: [PATCH] asm/io: remove unnecessary xlate_dev_mem_ptr() and unxlate_dev_mem_ptr()

From: Kefeng Wang <hidden>
Date: 2023-11-20 00:40:28
Also in: linux-alpha, linux-arch, linux-arm-kernel, linux-mips, linux-sh, sparclinux


On 2023/11/20 3:34, Geert Uytterhoeven wrote:
On Sat, Nov 18, 2023 at 11:09 AM Kefeng Wang [off-list ref] wrote:
quoted
The asm-generic/io.h already has default definition, remove unnecessary
arch's defination.

Cc: Richard Henderson <richard.henderson@linaro.org>
Cc: Ivan Kokshaysky <redacted>
Cc: Russell King <linux@armlinux.org.uk>
Cc: Brian Cain <redacted>
Cc: "James E.J. Bottomley" <James.Bottomley@HansenPartnership.com>
Cc: Nicholas Piggin <npiggin@gmail.com>
Cc: Christophe Leroy <redacted>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Cc: Rich Felker <dalias@libc.org>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Stanislav Kinsburskii <redacted>
Signed-off-by: Kefeng Wang <redacted>
quoted
  arch/m68k/include/asm/io_mm.h  | 6 ------
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
quoted
  arch/sh/include/asm/io.h       | 7 -------
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>

Thanks,
quoted
--- a/arch/mips/include/asm/io.h
+++ b/arch/mips/include/asm/io.h
@@ -548,13 +548,6 @@ extern void (*_dma_cache_inv)(unsigned long start, unsigned long size);
  #define csr_out32(v, a) (*(volatile u32 *)((unsigned long)(a) + __CSR_32_ADJUST) = (v))
  #define csr_in32(a)    (*(volatile u32 *)((unsigned long)(a) + __CSR_32_ADJUST))

-/*
- * Convert a physical pointer to a virtual kernel pointer for /dev/mem
- * access
- */
-#define xlate_dev_mem_ptr(p)   __va(p)
-#define unxlate_dev_mem_ptr(p, v) do { } while (0)
-
  void __ioread64_copy(void *to, const void __iomem *from, size_t count);
Missing #include <asm-generic/io.h>, according to the build bot report.
Will check the bot report.
quoted
  #endif /* _ASM_IO_H */
Gr{oetje,eeting}s,

                         Geert
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help