diff options
author | 2021-12-06 23:03:50 +0800 | |
---|---|---|
committer | 2022-01-19 09:56:31 -0800 | |
commit | 07aabe8fb6d1ac3163cc74c856521f2ee746270b (patch) | |
tree | 35f66b211c5026dd53fec5280fc57fafc6c219d2 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | riscv: mm: init: remove unnecessary "#ifdef CONFIG_CRASH_DUMP" (diff) | |
download | linux-dev-07aabe8fb6d1ac3163cc74c856521f2ee746270b.tar.xz linux-dev-07aabe8fb6d1ac3163cc74c856521f2ee746270b.zip |
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions