Skip to content

Commit 90b6b68

Browse files
committed
Merge tag 'linux-kselftest-next-6.0-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest
Pull Kselftest fix from Shuah Khan: - fix landlock test build regression * tag 'linux-kselftest-next-6.0-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest: selftests/landlock: fix broken include of linux/landlock.h
2 parents 0de277d + f1227dc commit 90b6b68

File tree

1 file changed

+5
-2
lines changed
  • tools/testing/selftests/landlock

1 file changed

+5
-2
lines changed

tools/testing/selftests/landlock/Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,13 @@ TEST_GEN_PROGS := $(src_test:.c=)
99
TEST_GEN_PROGS_EXTENDED := true
1010

1111
OVERRIDE_TARGETS := 1
12+
top_srcdir := ../../../..
1213
include ../lib.mk
1314

15+
khdr_dir = $(top_srcdir)/usr/include
16+
1417
$(OUTPUT)/true: true.c
1518
$(LINK.c) $< $(LDLIBS) -o $@ -static
1619

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

0 commit comments

Comments
 (0)