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=1796379982; b=S2Fu0rtPCiUkWk44dVZUHjpUvWiVlOe932DK2h3CSsAzTlwL3ODQ22CECn7bV/X1Plig 5bSBR08Hvbq5Cejm1hnwfWdgR/giQscsT6BRUdychiDQBLQRgc/aEBpa4kOynwQ6JfQH9 X9zXtLVHMXVWQpaoQHuyIgFhp7qMZokuD21gmlISUVaQxCKAhHKk+qsEt0IUZxMrqmujZ 4lycbgtl+/f4UJyAbTERHfCLnecsy7zuLREFWMflwW83xvsqa0+Tkk2EYrgOHo+Hg5zoV 8+cAULHnnekQh83mqMz9ijdvLglJlRCdb3/YvNE8UH9dAlKxQ6/59M68UQ3g7y4RUJA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796379982; 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=knjgERjwULchnP15fh/8TUpne9yyb+jRaamwSaRLzSM=; b=JDHLiZ35bWOZE8z/eaQernipob1aYja+LykAtOaNBqw1+mzSUiPb/epUG0kGF02abJup Dv7E52zrdXQwW7p8/HSs9e5N1XEfKrY7z3CurVLLzE7ZVoGk/uDi8qAcLAiQxSskRW4WU Gf2EV9NZefnTEbFwP7P2Tk3fG9gg47PtVAEmgnFDOrkC4e/iMcJumrzbKIv0HpclqJMY0 YmZDBXvmwM3fO+27+oJmZkl0uOwSKzYgETrJs2BIZUxqam8BV/NbsbEpUnio9MG5fz06z PDpr7x5LVipwecCqm7GiSFMAyMR0W439eQ8bskvpAhik07RgjP/uPdBjDz504wv1Mqw== 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=MQx71VJy; 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 2F6FA606A322; Fri, 4 Dec 2026 10:26:21 +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=MQx71VJy Received: by smtp.kernel.org (Postfix) with ESMTPSA id 647EC1F000C2; Fri, 4 Dec 2026 10:26:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796379981; bh=knjgERjwULchnP15fh/8TUpne9yyb+jRaamwSaRLzSM=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=MQx71VJyULYOslaA5Rm71hi8h2lIy79VjbWPqpWWxc3zXqhV0RQspBWaflaZmuqUj DVza4jh4oL2YnHPzQjjSIPrMkctXN3HK3I+VfgjJMaPHXZnFjBXDYn5g23COdkD7wV d4B2/FK/NfGVhiP+OsMp4zV4/HqMLZSnGJ7scjA8= 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 7.3 077/742] selftests: drivers/s390x: Select uvdevice tests using the target architecture Date: Fri, 4 Dec 2026 18:59:01 +0900 Message-ID: <20261204100637.131185187@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100635.034361255@linuxfoundation.org> References: <20261204100635.034361255@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 7.3-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