]> git.ipfire.org Git - thirdparty/linux.git/commit
selftests: riscv: Generalize mm selftests
authorCharlie Jenkins <charlie@rivosinc.com>
Wed, 31 Jan 2024 01:07:01 +0000 (17:07 -0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 14 Mar 2024 15:46:14 +0000 (08:46 -0700)
commit73d05262a2ca28c72c5aec57d79b47c251fe77c5
tree54b573a67797f7cfe0b1785627a7b5180899f74f
parentb5b4287accd702f562a49a60b10dbfaf7d40270f
selftests: riscv: Generalize mm selftests

The behavior of mmap on riscv is defined to not provide an address that
uses more bits than the hint address, if provided. Make the tests
reflect that.

Signed-off-by: Charlie Jenkins <charlie@rivosinc.com>
Link: https://lore.kernel.org/r/20240130-use_mmap_hint_address-v3-2-8a655cfa8bcb@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
tools/testing/selftests/riscv/mm/mmap_bottomup.c
tools/testing/selftests/riscv/mm/mmap_default.c
tools/testing/selftests/riscv/mm/mmap_test.h