linux-imx/tools/testing/selftests/riscv
Christoph Müllner 12d43aec0e tools: selftests: riscv: Fix compile warnings in mm tests
[ Upstream commit 12c1691965 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-03-01 13:34:48 +01:00
..
hwprobe selftests: add .gitignore file for RISC-V hwprobe 2023-06-08 07:16:59 -07:00
mm tools: selftests: riscv: Fix compile warnings in mm tests 2024-03-01 13:34:48 +01:00
vector tools: selftests: riscv: Fix compile warnings in vector tests 2024-03-01 13:34:48 +01:00
Makefile RISC-V Patches for the 6.6 Merge Window, Part 1 2023-09-01 08:09:48 -07:00