[GIT PULL] Kselftest update for Linux 6.0-rc2

From: Shuah Khan
Date: Thu Aug 18 2022 - 12:26:28 EST


Hi Linus,

Please pull the following Kselftest update for Linux 6.0-rc2.

This Kselftest fixes update for Linux 6.0-rc2 consists of a single
patch to fix landlock test build regression.

diff is attached.

thanks,
-- Shuah

----------------------------------------------------------------
The following changes since commit 568035b01cfb107af8d2e4bd2fb9aea22cf5b868:

Linux 6.0-rc1 (2022-08-14 15:50:18 -0700)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest tags/linux-kselftest-next-6.0-rc2

for you to fetch changes up to f1227dc7d0411ee9a9faaa1e80cfd9d6e5d6d63e:

selftests/landlock: fix broken include of linux/landlock.h (2022-08-15 11:26:12 -0600)

----------------------------------------------------------------
linux-kselftest-next-6.0-rc2

This Kselftest fixes update for Linux 6.0-rc2 consists of a single
patch to fix landlock test build regression.

----------------------------------------------------------------
Guillaume Tucker (1):
selftests/landlock: fix broken include of linux/landlock.h

tools/testing/selftests/landlock/Makefile | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------
diff --git a/tools/testing/selftests/landlock/Makefile b/tools/testing/selftests/landlock/Makefile
index a6959df28eb0..02868ac3bc71 100644
--- a/tools/testing/selftests/landlock/Makefile
+++ b/tools/testing/selftests/landlock/Makefile
@@ -9,10 +9,13 @@ TEST_GEN_PROGS := $(src_test:.c=)
TEST_GEN_PROGS_EXTENDED := true

OVERRIDE_TARGETS := 1
+top_srcdir := ../../../..
include ../lib.mk

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

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