linux/arch/riscv
Jisheng Zhang 07aabe8fb6
riscv: mm: init: try best to use IS_ENABLED(CONFIG_64BIT) instead of #ifdef
Try our best to replace the conditional compilation using
"#ifdef CONFIG_64BIT" by a check for "IS_ENABLED(CONFIG_64BIT)", to
simplify the code and to increase compile coverage.

Now we can also remove the __maybe_unused used in max_mapped_addr
declaration.

We also remove the BUG_ON check of mapping the last 4K bytes of the
addressable memory since this is always true for every kernel actually.

Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Reviewed-by: Alexandre Ghiti <alex@ghiti.fr>
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
2022-01-19 09:56:31 -08:00
..
boot RISC-V Patches for the 5.17 Merge Window, Part 1 2022-01-19 11:38:21 +02:00
configs RISC-V Patches for the 5.17 Merge Window, Part 1 2022-01-19 11:38:21 +02:00
errata riscv: errata: alternative: mark vendor_patch_func __initdata 2022-01-09 11:02:46 -08:00
include RISC-V Patches for the 5.17 Merge Window, Part 1 2022-01-19 11:38:21 +02:00
kernel RISC-V Patches for the 5.17 Merge Window, Part 1 2022-01-19 11:38:21 +02:00
kvm KVM: RISC-V: Avoid spurious virtual interrupts after clearing hideleg CSR 2022-01-06 15:18:18 +05:30
lib riscv: extable: consolidate definitions 2022-01-05 17:52:47 -08:00
mm riscv: mm: init: try best to use IS_ENABLED(CONFIG_64BIT) instead of #ifdef 2022-01-19 09:56:31 -08:00
net RISC-V Patches for the 5.17 Merge Window, Part 1 2022-01-19 11:38:21 +02:00
Kbuild kbuild: use more subdir- for visiting subdirectories while cleaning 2021-10-24 13:49:46 +09:00
Kconfig RISC-V Patches for the 5.17 Merge Window, Part 1 2022-01-19 11:38:21 +02:00
Kconfig.debug
Kconfig.erratas
Kconfig.socs RISC-V: Add StarFive SoC Kconfig option 2021-11-28 20:03:34 +01:00
Makefile riscv: fix building external modules 2021-11-18 23:06:23 -08:00