From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796381706; b=KmA8KJQ3KWF3UXejFJVRNm+rTyNSzI2TBlUIKB/+rTt+1ZXki1ipwGUcI0RorLefO6Kx rj7olLXIj3SOcgTbq00dFMidl2IFIgG6Xo4GAqNHEXXLY92oWS11mE+JFzWXQvdTavrHs y/UzvyeWEoaAtZX8LkmKZ3y/KOm9T1dSiIwQjXwlvszqmzns4qf+MeM5l3Ba25Qwq+p7G QICWPiAZn94Uue1kA7pIrL5ysjNxkJxmJWuZ6aieNXZqA+4BNGig50+TiOqadsgTpFf5Z jJ+endDRlh+/ywHsyLVBDWJLBBGqnAFHCtIQvykrjZPie9o1FOGaz8Klq8IQ//M1E7Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796381706; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=Wg7gZEXsUPGlJM0qBafw7G75w+zazjxQtw3wlUaLrgc=; b=WmC2pM0HZ/cC5pCU1Sgy6MTD2OQFVTVknTIJbIxeyZAWQNUt6e+79XCOUiHxPh16U24N fRIhvd5eplSsvUUHm2FLw2R4zXxRqZ4qoFS67SRSWM85i5+lFC6NFd3tXvgjHPOZG2HCJ upAt1cdGpmZQoiAJX/4YU/jp9aSEUJCvOT97bpYQo/zH+kW4L29arlpVzp8QMUtZo8DlS 5MJXAiIg/GvZywgVu22bCiqk7flent7Q6f58U5G4fc0Hp6JMmJp/qHESpJ7lOn3GA1/Jf VsiP9YfI4F6Jlqkf1RFkWmg67B4AcrqCJmklZWOEjCX60/EDfn44mgeOq0ENhBKGz/Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=ioK1RJYY; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 28619606A322; Fri, 4 Dec 2026 10:55:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=ioK1RJYY Received: by smtp.kernel.org (Postfix) with ESMTPSA id 91AD01F000CE; Fri, 4 Dec 2026 10:55:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796381706; bh=Wg7gZEXsUPGlJM0qBafw7G75w+zazjxQtw3wlUaLrgc=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=ioK1RJYYO0HwPSoeBe4dyln67j2T5E+HDfI8Rm/RqmcRVJz86RjiD8jws8m2owwmc SRfpiw0I44se391ljD66N1wY2thQK1ky9FZlJ/SQ6NeX91rnBKL4RSPy5C8tVoFXPs An8acUeRxTwZQ3P19RLEFRnAP79P+W4+6uxGy0G8= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Sasha Levin , Steffen Eiden , Christian Borntraeger Subject: [PATCH 6.18 137/703] selftests: drivers/s390x: Select uvdevice tests using the target architecture Date: Fri, 4 Dec 2026 19:00:36 +0900 Message-ID: <20261204100631.529573113@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100627.522266145@linuxfoundation.org> References: <20261204100627.522266145@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Sasha Levin [ Upstream commit 62aef2c04e0e69a9b88affa74ff699ce5c4e8652 ] The uvdevice Makefile decides whether to build its test from uname -m, which describes the build host. A cross build for s390 on another host therefore silently omits the test, while the non-s390 branch provides no-op build and installation targets but no emit_tests target. Select the test from the target ARCH when it is given and from the host's SUBARCH otherwise, accepting both the s390 and s390x spellings, and include lib.mk unconditionally so that other architectures build, install and emit an empty runlist. ARCH itself is left unset so that a native LLVM=1 build keeps using the compiler's native target. Drop the include path derived from tools/arch/$(ARCH): the test only needs asm/uvdevice.h from the installed kernel headers, and the path does not exist for the s390x spelling. Fixes: cbac924200b8 ("selftests: drivers/s390x: Add uvdevice tests") Signed-off-by: Sasha Levin Reviewed-by: Steffen Eiden Signed-off-by: Christian Borntraeger Signed-off-by: Sasha Levin --- .../selftests/drivers/s390x/uvdevice/Makefile | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/tools/testing/selftests/drivers/s390x/uvdevice/Makefile b/tools/testing/selftests/drivers/s390x/uvdevice/Makefile index 755d164384c46..586a9aa6fb158 100644 --- a/tools/testing/selftests/drivers/s390x/uvdevice/Makefile +++ b/tools/testing/selftests/drivers/s390x/uvdevice/Makefile @@ -1,20 +1,13 @@ include ../../../../../build/Build.include -UNAME_M := $(shell uname -m) - -ifneq ($(UNAME_M),s390x) -nothing: -.PHONY: all clean run_tests install -.SILENT: -else +top_srcdir ?= ../../../../../.. +include $(top_srcdir)/scripts/subarch.include +ARCH_PROCESSED := $(or $(ARCH),$(SUBARCH)) +ifneq (,$(filter s390 s390x,$(ARCH_PROCESSED))) TEST_GEN_PROGS := test_uvdevice -top_srcdir ?= ../../../../../.. -LINUX_TOOL_ARCH_INCLUDE = $(top_srcdir)/tools/arch/$(ARCH)/include - -CFLAGS += -Wall -Werror -static $(KHDR_INCLUDES) -I$(LINUX_TOOL_ARCH_INCLUDE) +CFLAGS += -Wall -Werror -static $(KHDR_INCLUDES) +endif include ../../../lib.mk - -endif -- 2.53.0