]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mm: define general function pXd_init()
authorBibo Mao <maobibo@loongson.cn>
Mon, 4 Nov 2024 07:07:12 +0000 (15:07 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 12 Nov 2024 01:22:27 +0000 (17:22 -0800)
commit7269ed4af344184ab9bdf318fe8864cf64849735
tree20f5d3a6f9a7992ca96e9464053cae616291b18b
parent7591c127f3b17d5879f18819cad7058bf3a2e276
mm: define general function pXd_init()

pud_init(), pmd_init() and kernel_pte_init() are duplicated defined in
file kasan.c and sparse-vmemmap.c as weak functions.  Move them to generic
header file pgtable.h, architecture can redefine them.

Link: https://lkml.kernel.org/r/20241104070712.52902-1-maobibo@loongson.cn
Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Reviewed-by: Huacai Chen <chenhuacai@loongson.cn>
Cc: Alexander Potapenko <glider@google.com>
Cc: Andrey Konovalov <andreyknvl@gmail.com>
Cc: Andrey Ryabinin <ryabinin.a.a@gmail.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: Vincenzo Frascino <vincenzo.frascino@arm.com>
Cc: WANG Xuerui <kernel@xen0n.name>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/loongarch/include/asm/pgtable.h
arch/mips/include/asm/pgtable-64.h
include/linux/mm.h
include/linux/pgtable.h
mm/kasan/init.c
mm/sparse-vmemmap.c