Skip to content

Commit a917dd9

Browse files
gctuckershuahkh
authored andcommitted
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>
1 parent ce7d101 commit a917dd9

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

  • tools/testing/selftests/landlock

tools/testing/selftests/landlock/Makefile

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,8 @@ TEST_GEN_PROGS_EXTENDED := true
1111
OVERRIDE_TARGETS := 1
1212
include ../lib.mk
1313

14-
khdr_dir = $(top_srcdir)/usr/include
15-
16-
$(khdr_dir)/linux/landlock.h: khdr
17-
@:
18-
1914
$(OUTPUT)/true: true.c
2015
$(LINK.c) $< $(LDLIBS) -o $@ -static
2116

22-
$(OUTPUT)/%_test: %_test.c $(khdr_dir)/linux/landlock.h ../kselftest_harness.h common.h
23-
$(LINK.c) $< $(LDLIBS) -o $@ -lcap -I$(khdr_dir)
17+
$(OUTPUT)/%_test: %_test.c ../kselftest_harness.h common.h
18+
$(LINK.c) $< $(LDLIBS) -o $@ -lcap

0 commit comments

Comments
 (0)