Skip to content

Commit

Permalink
selftests/landlock: drop deprecated headers dependency
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Guillaume Tucker authored and Shuah Khan committed Jul 14, 2022
1 parent ce7d101 commit a917dd9
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions tools/testing/selftests/landlock/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a917dd9

Please sign in to comment.