aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/vm/Makefile
diff options
context:
space:
mode:
authorMuhammad Usama Anjum <usama.anjum@collabora.com>2022-01-19 15:15:30 +0500
committerShuah Khan <skhan@linuxfoundation.org>2022-02-23 17:21:04 -0700
commit4a8900207abdc629933f07329bd884c60b50f074 (patch)
tree9e1c54572ea51c4a89bd995d9ff30dcab93ed4cd /tools/testing/selftests/vm/Makefile
parentselftests: mptcp: Add the uapi headers include variable (diff)
downloadlinux-dev-4a8900207abdc629933f07329bd884c60b50f074.tar.xz
linux-dev-4a8900207abdc629933f07329bd884c60b50f074.zip
selftests: vm: Add the uapi headers include variable
Out of tree build of this test fails if relative path of the output directory is specified. Add the KHDR_INCLUDES to correctly reach the headers. Acked-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Muhammad Usama Anjum <usama.anjum@collabora.com> Tested-by: Alistair Popple <apopple@nvidia.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/testing/selftests/vm/Makefile')
-rw-r--r--tools/testing/selftests/vm/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/vm/Makefile b/tools/testing/selftests/vm/Makefile
index 1607322a112c..033e9e11e2da 100644
--- a/tools/testing/selftests/vm/Makefile
+++ b/tools/testing/selftests/vm/Makefile
@@ -23,7 +23,7 @@ MACHINE ?= $(shell echo $(uname_M) | sed -e 's/aarch64.*/arm64/' -e 's/ppc64.*/p
# LDLIBS.
MAKEFLAGS += --no-builtin-rules
-CFLAGS = -Wall -I ../../../../usr/include $(EXTRA_CFLAGS)
+CFLAGS = -Wall -I ../../../../usr/include $(EXTRA_CFLAGS) $(KHDR_INCLUDES)
LDLIBS = -lrt -lpthread
TEST_GEN_FILES = compaction_test
TEST_GEN_FILES += gup_test