summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/vm/Makefile
diff options
context:
space:
mode:
authorAndrea Arcangeli2015-09-22 23:58:55 +0200
committerLinus Torvalds2015-09-23 00:09:53 +0200
commit67f6a029b2ccf3399783a0ff2f812666f290d94f (patch)
treea62800bdf6855c171c56508b4f75a3ae87a14a31 /tools/testing/selftests/vm/Makefile
parentuserfaultfd: selftests: vm: pick up sanitized kernel headers (diff)
downloadkernel-qcow2-linux-67f6a029b2ccf3399783a0ff2f812666f290d94f.tar.gz
kernel-qcow2-linux-67f6a029b2ccf3399783a0ff2f812666f290d94f.tar.xz
kernel-qcow2-linux-67f6a029b2ccf3399783a0ff2f812666f290d94f.zip
userfaultfd: selftest: headers fixup
Depend on "make headers_install" to create proper headers to include and provide syscall numbers. Signed-off-by: Andrea Arcangeli <aarcange@redhat.com> Cc: Dr. David Alan Gilbert <dgilbert@redhat.com> Cc: Michael Ellerman <mpe@ellerman.id.au> Cc: Shuah Khan <shuahkh@osg.samsung.com> Cc: Thierry Reding <treding@nvidia.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/testing/selftests/vm/Makefile')
-rw-r--r--tools/testing/selftests/vm/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/testing/selftests/vm/Makefile b/tools/testing/selftests/vm/Makefile
index 949e275f11a6..3c53cac15de1 100644
--- a/tools/testing/selftests/vm/Makefile
+++ b/tools/testing/selftests/vm/Makefile
@@ -12,8 +12,11 @@ BINARIES += userfaultfd
all: $(BINARIES)
%: %.c
$(CC) $(CFLAGS) -o $@ $^ -lrt
-userfaultfd: userfaultfd.c
- $(CC) $(CFLAGS) -O2 -o $@ $^ -lpthread
+userfaultfd: userfaultfd.c ../../../../usr/include/linux/kernel.h
+ $(CC) $(CFLAGS) -O2 -o $@ $< -lpthread
+
+../../../../usr/include/linux/kernel.h:
+ make -C ../../../.. headers_install
TEST_PROGS := run_vmtests
TEST_FILES := $(BINARIES)