]> git.baikalelectronics.ru Git - kernel.git/commit
riscv: mm: init: remove _pt_ops and use pt_ops directly
authorJisheng Zhang <jszhang@kernel.org>
Mon, 6 Dec 2021 15:03:51 +0000 (23:03 +0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Wed, 19 Jan 2022 17:56:32 +0000 (09:56 -0800)
commitaa1ae6c63d281ae08bb304bf51435e1197898601
tree6ee0fd56cd766a4fa42bf17be16b753a3a52d2b1
parentbc662463f201bb92c04dbfbaa73f611a78c8552b
riscv: mm: init: remove _pt_ops and use pt_ops directly

Except "pt_ops", other global vars when CONFIG_XIP_KERNEL=y is defined
as below:

|foo_type foo;
|#ifdef CONFIG_XIP_KERNEL
|#define foo (*(foo_type *)XIP_FIXUP(&foo))
|#endif

Follow the same way for pt_ops to unify the style and to simplify code.

Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Reviewed-by: Alexandre Ghiti <alex@ghiti.fr>
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/mm/init.c