selftests: riscv: Allow mmap test to compile on 32-bit
authorCharlie Jenkins <charlie@rivosinc.com>
Thu, 8 Aug 2024 18:41:40 +0000 (11:41 -0700)
committerPalmer Dabbelt <palmer@rivosinc.com>
Tue, 17 Sep 2024 15:05:09 +0000 (08:05 -0700)
commit11c2dbd7f2415731ac8213d3de0dbd5f5dd0ddc7
tree1db352d71c31c6a2dfeecd5cb38e860e510add84
parent594ffcf4efe5094876f5b549a36262416104cd3d
selftests: riscv: Allow mmap test to compile on 32-bit

Macros needed for 32-bit compilations were hidden behind 64-bit riscv
ifdefs. Fix the 32-bit compilations by moving macros to allow the
memory_layout test to run on 32-bit.

Signed-off-by: Charlie Jenkins <charlie@rivosinc.com>
Fixes: 73d05262a2ca ("selftests: riscv: Generalize mm selftests")
Link: https://lore.kernel.org/r/20240808-mmap_tests__fixes-v1-1-b1344b642a84@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
tools/testing/selftests/riscv/mm/mmap_test.h