linux/arch
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
..
alpha Merge branch 'signal-for-v5.17' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace 2022-01-17 05:49:30 +02:00
arc Kbuild updates for v5.17 2022-01-19 11:15:19 +02:00
arm Kbuild updates for v5.17 2022-01-19 11:15:19 +02:00
arm64 Merge branch 'signal-for-v5.17' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace 2022-01-17 05:49:30 +02:00
csky Merge branch 'signal-for-v5.17' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace 2022-01-17 05:49:30 +02:00
h8300 Kbuild updates for v5.17 2022-01-19 11:15:19 +02:00
hexagon Merge branch 'signal-for-v5.17' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace 2022-01-17 05:49:30 +02:00
ia64 Merge branch 'signal-for-v5.17' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace 2022-01-17 05:49:30 +02:00
m68k Merge branch 'signal-for-v5.17' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace 2022-01-17 05:49:30 +02:00
microblaze Kbuild updates for v5.17 2022-01-19 11:15:19 +02:00
mips Kbuild updates for v5.17 2022-01-19 11:15:19 +02:00
nds32 Kbuild updates for v5.17 2022-01-19 11:15:19 +02:00
nios2 Kbuild updates for v5.17 2022-01-19 11:15:19 +02:00
openrisc Kbuild updates for v5.17 2022-01-19 11:15:19 +02:00
parisc Kbuild updates for v5.17 2022-01-19 11:15:19 +02:00
powerpc Kbuild updates for v5.17 2022-01-19 11:15:19 +02:00
riscv riscv: mm: init: try best to use IS_ENABLED(CONFIG_64BIT) instead of #ifdef 2022-01-19 09:56:31 -08:00
s390 Kbuild updates for v5.17 2022-01-19 11:15:19 +02:00
sh Kbuild updates for v5.17 2022-01-19 11:15:19 +02:00
sparc Merge branch 'signal-for-v5.17' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace 2022-01-17 05:49:30 +02:00
um virtio,vdpa,qemu_fw_cfg: features, cleanups, fixes 2022-01-18 10:05:48 +02:00
x86 Kbuild updates for v5.17 2022-01-19 11:15:19 +02:00
xtensa Kbuild updates for v5.17 2022-01-19 11:15:19 +02:00
.gitignore
Kconfig Kbuild updates for v5.17 2022-01-19 11:15:19 +02:00