]> 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)
commit40a0aa57dd4f15993cd63b4ffc2193d2b5d56c0b
tree6ee0fd56cd766a4fa42bf17be16b753a3a52d2b1
parent6e8a6119b868e1dba29a61e1f9fe9cd433ca90ff
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