Thread (10 messages) flat view 10 messages, 10 authors, 2022-11-11

Re: [PATCH] mm: remove kern_addr_valid() completely

From: Heiko Carstens <hca@linux.ibm.com>
Date: 2022-10-18 08:05:31
Also in: linux-alpha, linux-fsdevel, linux-m68k, linux-mips, linux-riscv, linux-s390, linux-sh, lkml, loongarch, sparclinux

On Tue, Oct 18, 2022 at 03:40:14PM +0800, Kefeng Wang wrote:
Most architectures(except arm64/x86/sparc) simply return 1 for
kern_addr_valid(), which is only used in read_kcore(), and it
calls copy_from_kernel_nofault() which could check whether the
address is a valid kernel address, so no need kern_addr_valid(),
let's remove unneeded kern_addr_valid() completely.

Signed-off-by: Kefeng Wang <redacted>
---
...
 arch/s390/include/asm/pgtable.h           |  2 -
For s390:
Acked-by: Heiko Carstens <hca@linux.ibm.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help