Skip to content

Commit b06fab0

Browse files
Alexandre Ghitipalmer-dabbelt
authored andcommitted
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 <[email protected]> Reviewed-by: Charlie Jenkins <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 8eb8fe6 commit b06fab0

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

tools/testing/selftests/riscv/mm/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
# Additional include paths needed by kselftest.h and local headers
66
CFLAGS += -D_GNU_SOURCE -std=gnu99 -I.
77

8-
TEST_GEN_FILES := testcases/mmap_default testcases/mmap_bottomup
8+
TEST_GEN_FILES := mmap_default mmap_bottomup
99

10-
TEST_PROGS := testcases/run_mmap.sh
10+
TEST_PROGS := run_mmap.sh
1111

1212
include ../../lib.mk
1313

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
1515
$(CC) -o$@ $(CFLAGS) $(LDFLAGS) $^

tools/testing/selftests/riscv/mm/testcases/mmap_bottomup.c renamed to tools/testing/selftests/riscv/mm/mmap_bottomup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: GPL-2.0-only
22
#include <sys/mman.h>
3-
#include <testcases/mmap_test.h>
3+
#include <mmap_test.h>
44

55
#include "../../kselftest_harness.h"
66

tools/testing/selftests/riscv/mm/testcases/mmap_default.c renamed to tools/testing/selftests/riscv/mm/mmap_default.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: GPL-2.0-only
22
#include <sys/mman.h>
3-
#include <testcases/mmap_test.h>
3+
#include <mmap_test.h>
44

55
#include "../../kselftest_harness.h"
66

0 commit comments

Comments
 (0)