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=1796388866; b=iZk43PbR5yBqhxS2X2worrEzHjjqDT3gHxsWJ61ipb8EIKN18Kk2vYa4ofgTGzH8QzNT T5LqwZmDdjB37g3dbKUu7sb3k4t3amdJKl9wBggpK8YWi3apXBgqpd80iA5d9hCaItEuR U7caRt2yTXh7XpbI6OG1PIQv1NZ+pEsAudTu8kNhvqfvtoedB6lH5YnBrDDENFIflvmO4 kLos1zLXX4yQIleNQXS8qsQXNkHzU7hkKiEEfuq7l0Fu3+1Z+RTv5K+wYZopQOIAM3t+4 ZG1FprtddlP2KiMcvEIZlMmj/LvjG32mQTGKHt9aZhFAFce5bFXwfmnVDP8Uht4RArg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796388866; 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=tNiF+uIMV00m5UpXVa07BS3fZu/+5K7cdGUvcfpq3rI=; b=MFa4oZv54HS9lDFks38ZkE3TY0SJsJiOhSYBzL5uT46CIJkFURs5CmfdKjzrLtfgXpA2 48kwv0/AVMXWwmTwuYPQT/CgqiUABRTgbY/hBy1133xSg7GcJq3Lll5qM/1fKYOfh93Z1 9OvxBuznFXNue0TnlsYodjHlFuWvu9RKoIRtQLPt6SnkDQUuaqmsgPFoQsaZKLNXq2mvm wfdDddWNde0vTgOzxDQNFV+SiDj8EurdHbvkUZ4qRUjH3v4M0eJCZ9Ylsr0NowS06W/92 l9mhHeKWASYJuWYBXl2eNQV/loKGKCLXRJEM/x1xiol8yC7onwElHeKfwr+rZvwM/8A== 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=dQ0mj9dq; 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 8502F606A330; Fri, 4 Dec 2026 12:54:26 +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=dQ0mj9dq Received: by smtp.kernel.org (Postfix) with ESMTPSA id 104E31F000C2; Fri, 4 Dec 2026 12:54:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796388866; bh=tNiF+uIMV00m5UpXVa07BS3fZu/+5K7cdGUvcfpq3rI=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=dQ0mj9dq988U8Cq3TGmacUComUs5xvZUP7303O0qub/BBt35qrxAadgQGiPIZsWS8 fFlnAT69B70a2I8Df/++aoYJe/v6ks9X5IlhkhwMVpFw3RRhq0Gu39FfokOjSCSRbX Qwub/MNxFDlYA2bwb1arm9mLJlKnmr/7NBk3CQGg= 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.1 0781/1059] selftests: drivers/s390x: Select uvdevice tests using the target architecture Date: Fri, 4 Dec 2026 19:05:12 +0900 Message-ID: <20261204100704.250488362@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100643.980430235@linuxfoundation.org> References: <20261204100643.980430235@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-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