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)
commit3274a6ef3b1bd9faef940c40ef201723d5d3d056
tree6ee0fd56cd766a4fa42bf17be16b753a3a52d2b1
parent07aabe8fb6d1ac3163cc74c856521f2ee746270b
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