Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests: stop using KSFT_KHDR_INSTALL

Stop using the KSFT_KHDR_INSTALL flag as installing the kernel headers
from the kselftest Makefile is causing some issues. Instead, rely on
the headers to be installed directly by the top-level Makefile
"headers_install" make target prior to building kselftest.

Signed-off-by: Guillaume Tucker <guillaume.tucker@collabora.com>
Tested-by: Anders Roxell <anders.roxell@linaro.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>

authored by

Guillaume Tucker and committed by
Shuah Khan
f2745dc0 3bb267a3

+1 -13
-1
tools/testing/selftests/arm64/mte/Makefile
··· 22 22 TEST_GEN_PROGS := $(PROGS) 23 23 24 24 # Get Kernel headers installed and use them. 25 - KSFT_KHDR_INSTALL := 1 26 25 else 27 26 $(warning compiler "$(CC)" does not support the ARMv8.5 MTE extension.) 28 27 $(warning test program "mte" will not be created.)
-1
tools/testing/selftests/arm64/signal/Makefile
··· 11 11 TEST_GEN_PROGS := $(notdir $(PROGS)) 12 12 13 13 # Get Kernel headers installed and use them. 14 - KSFT_KHDR_INSTALL := 1 15 14 16 15 # Including KSFT lib.mk here will also mangle the TEST_GEN_PROGS list 17 16 # to account for any OUTPUT target-dirs optionally provided by
+1 -3
tools/testing/selftests/arm64/signal/test_signals.h
··· 9 9 #include <ucontext.h> 10 10 11 11 /* 12 - * Using ARCH specific and sanitized Kernel headers installed by KSFT 13 - * framework since we asked for it by setting flag KSFT_KHDR_INSTALL 14 - * in our Makefile. 12 + * Using ARCH specific and sanitized Kernel headers from the tree. 15 13 */ 16 14 #include <asm/ptrace.h> 17 15 #include <asm/hwcap.h>
-1
tools/testing/selftests/drivers/s390x/uvdevice/Makefile
··· 11 11 TEST_GEN_PROGS := test_uvdevice 12 12 13 13 top_srcdir ?= ../../../../../.. 14 - KSFT_KHDR_INSTALL := 1 15 14 khdr_dir = $(top_srcdir)/usr/include 16 15 LINUX_TOOL_ARCH_INCLUDE = $(top_srcdir)/tools/arch/$(ARCH)/include 17 16
-1
tools/testing/selftests/futex/functional/Makefile
··· 22 22 TEST_PROGS := run.sh 23 23 24 24 top_srcdir = ../../../../.. 25 - KSFT_KHDR_INSTALL := 1 26 25 DEFAULT_INSTALL_HDR_PATH := 1 27 26 include ../../lib.mk 28 27
-1
tools/testing/selftests/kvm/Makefile
··· 4 4 all: 5 5 6 6 top_srcdir = ../../../.. 7 - KSFT_KHDR_INSTALL := 1 8 7 9 8 # For cross-builds to work, UNAME_M has to map to ARCH and arch specific 10 9 # directories and targets in this Makefile. "uname -m" doesn't map to
-1
tools/testing/selftests/landlock/Makefile
··· 8 8 9 9 TEST_GEN_PROGS_EXTENDED := true 10 10 11 - KSFT_KHDR_INSTALL := 1 12 11 OVERRIDE_TARGETS := 1 13 12 include ../lib.mk 14 13
-1
tools/testing/selftests/net/Makefile
··· 62 62 63 63 TEST_FILES := settings 64 64 65 - KSFT_KHDR_INSTALL := 1 66 65 include ../lib.mk 67 66 68 67 include bpf/Makefile
-1
tools/testing/selftests/net/mptcp/Makefile
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 2 3 3 top_srcdir = ../../../../.. 4 - KSFT_KHDR_INSTALL := 1 5 4 6 5 CFLAGS = -Wall -Wl,--no-as-needed -O2 -g -I$(top_srcdir)/usr/include $(KHDR_INCLUDES) 7 6
-1
tools/testing/selftests/tc-testing/Makefile
··· 5 5 APIDIR := $(top_scrdir)/include/uapi 6 6 TEST_GEN_FILES = action.o 7 7 8 - KSFT_KHDR_INSTALL := 1 9 8 include ../lib.mk 10 9 11 10 PROBE := $(shell $(LLC) -march=bpf -mcpu=probe -filetype=null /dev/null 2>&1)
-1
tools/testing/selftests/vm/Makefile
··· 94 94 TEST_FILES := test_vmalloc.sh 95 95 TEST_FILES += test_hmm.sh 96 96 97 - KSFT_KHDR_INSTALL := 1 98 97 include ../lib.mk 99 98 100 99 $(OUTPUT)/madv_populate: vm_util.c