Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

riscv: kselftests: Fix mm build by removing testcases subdirectory

kselftests fails to build because the mm/testcases subdirectory is not
created and then the compiler fails to output the binary there.

So fix this by simply removing this subdirectory which is not very
useful.

Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Reviewed-by: Charlie Jenkins <charlie@rivosinc.com>
Link: https://lore.kernel.org/r/20230915100113.13131-1-alexghiti@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>

authored by

Alexandre Ghiti and committed by
Palmer Dabbelt
b06fab00 8eb8fe67

+5 -5
+3 -3
tools/testing/selftests/riscv/mm/Makefile
··· 5 5 # Additional include paths needed by kselftest.h and local headers 6 6 CFLAGS += -D_GNU_SOURCE -std=gnu99 -I. 7 7 8 - TEST_GEN_FILES := testcases/mmap_default testcases/mmap_bottomup 8 + TEST_GEN_FILES := mmap_default mmap_bottomup 9 9 10 - TEST_PROGS := testcases/run_mmap.sh 10 + TEST_PROGS := run_mmap.sh 11 11 12 12 include ../../lib.mk 13 13 14 - $(OUTPUT)/mm: testcases/mmap_default.c testcases/mmap_bottomup.c testcases/mmap_tests.h 14 + $(OUTPUT)/mm: mmap_default.c mmap_bottomup.c mmap_tests.h 15 15 $(CC) -o$@ $(CFLAGS) $(LDFLAGS) $^
+1 -1
tools/testing/selftests/riscv/mm/testcases/mmap_bottomup.c tools/testing/selftests/riscv/mm/mmap_bottomup.c
··· 1 1 // SPDX-License-Identifier: GPL-2.0-only 2 2 #include <sys/mman.h> 3 - #include <testcases/mmap_test.h> 3 + #include <mmap_test.h> 4 4 5 5 #include "../../kselftest_harness.h" 6 6
+1 -1
tools/testing/selftests/riscv/mm/testcases/mmap_default.c tools/testing/selftests/riscv/mm/mmap_default.c
··· 1 1 // SPDX-License-Identifier: GPL-2.0-only 2 2 #include <sys/mman.h> 3 - #include <testcases/mmap_test.h> 3 + #include <mmap_test.h> 4 4 5 5 #include "../../kselftest_harness.h" 6 6
tools/testing/selftests/riscv/mm/testcases/mmap_test.h tools/testing/selftests/riscv/mm/mmap_test.h
tools/testing/selftests/riscv/mm/testcases/run_mmap.sh tools/testing/selftests/riscv/mm/run_mmap.sh