summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Tucker <guillaume.tucker@collabora.com>2022-07-13 09:35:01 +0300
committerShuah Khan <skhan@linuxfoundation.org>2022-07-14 23:43:26 +0300
commita917dd94b832c8f4ad458d0ca2bd1007466c5643 (patch)
tree96230b4d7dff64d966dc665314c16125ff1371b8
parentce7d101750ff8450af16d6e1f6ccba10d44ae9f3 (diff)
downloadlinux-a917dd94b832c8f4ad458d0ca2bd1007466c5643.tar.xz
selftests/landlock: drop deprecated headers dependency
The khdr make target has been removed, so drop it from the landlock Makefile dependencies as well as related include paths that are standard for headers in the kernel tree. Signed-off-by: Guillaume Tucker <guillaume.tucker@collabora.com> Reported-by: Anders Roxell <anders.roxell@linaro.org> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
-rw-r--r--tools/testing/selftests/landlock/Makefile9
1 files changed, 2 insertions, 7 deletions
diff --git a/tools/testing/selftests/landlock/Makefile b/tools/testing/selftests/landlock/Makefile
index 1313e44e8fb9..a6959df28eb0 100644
--- a/tools/testing/selftests/landlock/Makefile
+++ b/tools/testing/selftests/landlock/Makefile
@@ -11,13 +11,8 @@ TEST_GEN_PROGS_EXTENDED := true
OVERRIDE_TARGETS := 1
include ../lib.mk
-khdr_dir = $(top_srcdir)/usr/include
-
-$(khdr_dir)/linux/landlock.h: khdr
- @:
-
$(OUTPUT)/true: true.c
$(LINK.c) $< $(LDLIBS) -o $@ -static
-$(OUTPUT)/%_test: %_test.c $(khdr_dir)/linux/landlock.h ../kselftest_harness.h common.h
- $(LINK.c) $< $(LDLIBS) -o $@ -lcap -I$(khdr_dir)
+$(OUTPUT)/%_test: %_test.c ../kselftest_harness.h common.h
+ $(LINK.c) $< $(LDLIBS) -o $@ -lcap