From: Muhammad Usama Anjum <usama.anjum@collabora.com> Date: Wed, 19 Jan 2022 10:15:30 +0000 (+0500) Subject: selftests: vm: Add the uapi headers include variable X-Git-Tag: howlett/maple/20220722_2~960^2~11 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=4a8900207abdc629933f07329bd884c60b50f074;p=users%2Fjedix%2Flinux-maple.git 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> --- 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