]> git.baikalelectronics.ru Git - kernel.git/commit
riscv: mm: init: try IS_ENABLED(CONFIG_XIP_KERNEL) instead of #ifdef
authorJisheng Zhang <jszhang@kernel.org>
Mon, 6 Dec 2021 15:03:52 +0000 (23:03 +0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Wed, 19 Jan 2022 17:56:33 +0000 (09:56 -0800)
commit30054832dad65c93a14275a8d074d7f68b11791e
tree64e955fc06966a954f3f3f556e4c0cec4c49768a
parent40a0aa57dd4f15993cd63b4ffc2193d2b5d56c0b
riscv: mm: init: try IS_ENABLED(CONFIG_XIP_KERNEL) instead of #ifdef

Try our best to replace the conditional compilation using
"#ifdef CONFIG_XIP_KERNEL" with "IS_ENABLED(CONFIG_XIP_KERNEL)", to
simplify the code and to increase compile coverage.

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