1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/tools/testing/selftests/riscv/mm
Christoph Müllner 12c1691965
tools: selftests: riscv: Fix compile warnings in mm tests
When building the mm tests with a riscv32 compiler, we see a range
of shift-count-overflow errors from shifting 1UL by more than 32 bits
in do_mmaps(). Since, the relevant code is only called from code that
is gated by `__riscv_xlen == 64`, we can just apply the same gating
to do_mmaps().

Signed-off-by: Christoph Müllner <christoph.muellner@vrull.eu>
Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Link: https://lore.kernel.org/r/20231123185821.2272504-6-christoph.muellner@vrull.eu
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
2024-01-11 08:02:51 -08:00
..
.gitignore
Makefile riscv: kselftests: Fix mm build by removing testcases subdirectory 2023-09-20 02:29:26 -07:00
mmap_bottomup.c riscv: kselftests: Fix mm build by removing testcases subdirectory 2023-09-20 02:29:26 -07:00
mmap_default.c riscv: kselftests: Fix mm build by removing testcases subdirectory 2023-09-20 02:29:26 -07:00
mmap_test.h tools: selftests: riscv: Fix compile warnings in mm tests 2024-01-11 08:02:51 -08:00
run_mmap.sh riscv: kselftests: Fix mm build by removing testcases subdirectory 2023-09-20 02:29:26 -07:00