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=1796386275; b=HD7VC4IPWZzzVwxmJFdQEfDdh6fYHHPBCBG/E9x5lVt229Ciml7WBFDU4mtN7o0V65Ra e35fSe2etl8wAs8PX467YZipCs1ZJgsZzK3iRwVzlNKT5G4rosgPBT2rZRk8S+uyy4d6b +o26OkqsePPSxf1zF7SVm3CcADiaI8CTNvk+Ke8hhmcYFc+md3KeNaFtNtbJlW3qS5x2Y wCEPtoWoSvpyTdCU6+ZM+ri0GTZSQBzbBH8msSNMg3bY/tTnN8G8Y5rOmvts+PBmXyCMK D74ZXHTuEVa1t1YJSkJ43XuozKFXV75G2Pm1yzstb1PQSMzQwPO9wD1jcGY0+V5MGbQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796386275; 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=uAY94bipfJtvMm1kyFxn7lkj+EO34Kuwr055ffmv4AU=; b=CyqZ599TQ8US/KSwdmRFTC+mZ9WTr0Hz3Zjy7S+lRn3OUBsyi4AUEAt+vvV1otgImnwC ceokhi9KzoNcT/lntJOHC1tGy/KaP0yXunygBMO3P6z8Gpe7ve/0dESfr0I3MYgSUeLxO NdbumkWX1p8E42V4POQCRV74Tbhi2P3gr12MpQFL/3PL8Dyq5jr/7ElkAUn/BWE/Ucfdt NyRPQdGCqATNMQOBQby8+jgDsh6koj4krIBHnbAPijjqkg0qTQBcPSAqyVn5n3QyQze5a 4SwFZf5G3ADCNvPbCSRF+6Qsusfa0CDM1nYqfJtgG+TL5qSEYbaHkDluMtkTNTMZ+Kg== 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=Ea7A52KF; 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 01276606A33B; Fri, 4 Dec 2026 12:11:15 +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=Ea7A52KF Received: by smtp.kernel.org (Postfix) with ESMTPSA id 540601F00A0D; Fri, 4 Dec 2026 12:11:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796386274; bh=uAY94bipfJtvMm1kyFxn7lkj+EO34Kuwr055ffmv4AU=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Ea7A52KF7+tw5i4iXrs5K6tZm61z0elvOlJa1Bf5VqqzObwCqTIzNWwGuzxaCBNG1 mxaH+yHABvx5wOl4RVQ71204421j5UX3Kfjra+O+h57L6Zmld06WSBdH+zlVp5ySZd KSK7dZCIZXvrHsIy1QmQMROuIIzf9tRrKAhQdIZw= 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.6 0854/1167] selftests: drivers/s390x: Select uvdevice tests using the target architecture Date: Fri, 4 Dec 2026 19:04:41 +0900 Message-ID: <20261204100724.361298406@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100702.047403948@linuxfoundation.org> References: <20261204100702.047403948@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.6-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