Skip to content

Commit a24ebb4

Browse files
compudjshuahkh
authored andcommitted
selftests: memfd: Use installed kernel headers search path
Use $(KHDR_INCLUDES) as lookup path for installed kernel headers rather than using kernel headers in include/uapi from the source kernel tree kernel headers. Remove bogus ../../../../include/ from the search path, because kernel source headers are not needed by those user-space selftests, and it causes issues because -I paths are searched before -isystem paths, and conflicts for files appearing both in kernel sources and in uapi headers with incompatible semantics (e.g. types.h). Signed-off-by: Mathieu Desnoyers <[email protected]> Cc: Shuah Khan <[email protected]> Cc: [email protected] Cc: Ingo Molnar <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
1 parent 0d7a916 commit a24ebb4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tools/testing/selftests/memfd/Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# SPDX-License-Identifier: GPL-2.0
22
CFLAGS += -D_FILE_OFFSET_BITS=64
3-
CFLAGS += -I../../../../include/uapi/
4-
CFLAGS += -I../../../../include/
5-
CFLAGS += -I../../../../usr/include/
3+
CFLAGS += $(KHDR_INCLUDES)
64

75
TEST_GEN_PROGS := memfd_test
86
TEST_PROGS := run_fuse_test.sh run_hugetlbfs_test.sh

0 commit comments

Comments
 (0)