[PATCH] mm: remove kern_addr_valid() completely
Catalin Marinas
catalin.marinas at arm.com
Tue Nov 1 10:47:01 PDT 2022
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 <wangkefeng.wang at huawei.com>
For arm64:
Acked-by: Catalin Marinas <catalin.marinas at arm.com>
More information about the linux-riscv
mailing list