Skip to content

Commit 0d7a916

Browse files
compudjshuahkh
authored andcommitted
selftests: iommu: 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 ac5ec90 commit 0d7a916

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tools/testing/selftests/iommu/Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# SPDX-License-Identifier: GPL-2.0-only
22
CFLAGS += -Wall -O2 -Wno-unused-function
3-
CFLAGS += -I../../../../include/uapi/
4-
CFLAGS += -I../../../../include/
3+
CFLAGS += $(KHDR_INCLUDES)
54

65
CFLAGS += -D_GNU_SOURCE
76

0 commit comments

Comments
 (0)