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=1796383277; b=FBhLmLckYu8Kdrd7vfkmBi9yzjLGWQdlR0Y0lrHM0Ykl5T7LNhSUkh7QUTR4AW63xLzk CVflWJIZh+uOFHblrwnvcqcwx1t5g/F+VxMCranuSGAjf1ThtLnBcEFBu7kZqwL2WGdo5 FuVIfpwqvQEf0YC8kiWmfglvv+IPIejjnyjzUe2bLmOgvRcpEog5IhInMgMDoDqt0Hbmv znX82saaBk3ZlRTJaR4ST9DxKIMscn0TyoyNDCPASOrsnQrlMHaC27VGvF9m1bJIlIVcU a4u83tEh2pz7LCva8zhIGm9euhSB1cWqgo0vhB71eVuQ9SXFfFwrXt7pLaeAJ3muHtQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796383277; 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=dmXThmYBr1xoirzCcXmw6p2tFb61qfcF6A0BiHwHtY0=; b=GwMdtoH8JaWQ+KKuBk0gZbYIauTuPEnxRvEaf+7bRAXfaeMA7yYsjtGUs4o3TGbayGGH /QHp7fBiglsB2/bjJF2dsK0fQJ/z/Pg60h+8886X69OcUzmA7EVBKxVLzDjJYz+HeSXjF q4obwpT37tWRORR6K+1aDirQCSADEyji9XkWKs/0de2aySYIIl5MUuvj/jRiHckgToBoM Qw2TGq9KZCofXyA+n4xaUBTZ6oKSSHCftfaSB9xbZuvJ4hopll+D1a5n599fD9HQFrpK2 NIHqIYObs2JuhsEgQXdLfx1dg4QstubloUk9BxRp9foKlPiN5UC5y+UqbtLK92S3dFQ== 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=nNnkR3NU; 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 09260606A322; Fri, 4 Dec 2026 11:21:17 +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=nNnkR3NU Received: by smtp.kernel.org (Postfix) with ESMTPSA id 769291F000C2; Fri, 4 Dec 2026 11:21:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796383276; bh=dmXThmYBr1xoirzCcXmw6p2tFb61qfcF6A0BiHwHtY0=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=nNnkR3NUk9ei97nlfPXS/Mqj/k+ySKwn0zN+3krdyWM9wNO5MjVotYXVJztnTBuqg O2D5xvYMnR0THUfFZQMR9NzfXitghe4SrFOzRsUm8r3NTbm0E8z+EVak59KSPrGiFF A25RWFY2xhoiH/zxHDiA89a3qxnzfCd+JxXBdW1s= 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.12 158/555] selftests: drivers/s390x: Select uvdevice tests using the target architecture Date: Fri, 4 Dec 2026 19:03:21 +0900 Message-ID: <20261204100614.263377028@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100603.988357525@linuxfoundation.org> References: <20261204100603.988357525@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.12-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