From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-182.mta1.migadu.com (out-182.mta1.migadu.com [95.215.58.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7D7A326ED59 for ; Mon, 4 May 2026 18:20:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777918810; cv=none; b=JMgGPkLTH5VNXFaVpFZvpIu4hc7/ZI+y1XfYtOi/jys1pybhYnXTNMmVhzbhwgQdQk3hzKqAD4YyTgrqNEwf9wfqMxS3+MbXHkLFS+SfT90prFIWk+Fs0lF0mIDJQFWdD8rot6pT8aG6JEU4VUxoj8o2UfM2p4WUwf+uoUGP85M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777918810; c=relaxed/simple; bh=KIzurIqdeeba0VzNMn+ZULQLOoHVS1cyXffRE9zh1HI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=kOyOT5SexERGhp0rZ+P1Zvm9Qs/AXRKHxO6YUPANSKedEZFm6wt5YH/AlIXXA+wZJdHPK9VCZNgxKlrlIE8Vpwzs/pW7M8MApNTHXllhjDq/VUM5FTp2s2a8fSkVI5yD2zKVOCC0zBCv37WAk+rYXDPChWIr+cJjtOLY5eCnFCo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=d7Bo4wcg; arc=none smtp.client-ip=95.215.58.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="d7Bo4wcg" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1777918806; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=+5CHIHSkCCCQx9KIrlp+ifYhyriouc6ijBoOVdyi0JQ=; b=d7Bo4wcgSSAMP0V1wB3XTlLskg8m2mv4FdUiS60KI9qRiZAHDBYn1aBVMqnpqfuY9QfwI8 pdaoeoHTHVl7yKcLZw3JVOBz1Bzr2BfG1G44r4NQza0LTUDGM0FW0h+hUnEfZdS//vTLFN vNYgh2DMKgGkikiFhvCBx3ghINU2Z0c= From: Thorsten Blum To: Steve Wahl , Justin Ernst , Kyle Meyer , Dimitri Sivanich , Russ Anderson , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" Cc: Thorsten Blum , linux-kernel@vger.kernel.org Subject: [PATCH RESEND] x86/platform/uv: use str_enabled_disabled in uv_nmi_setup_hubless_intr Date: Mon, 4 May 2026 20:19:46 +0200 Message-ID: <20260504181945.143928-2-thorsten.blum@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1237; i=thorsten.blum@linux.dev; h=from:subject; bh=KIzurIqdeeba0VzNMn+ZULQLOoHVS1cyXffRE9zh1HI=; b=owGbwMvMwCUWt7pQ4caZUj3G02pJDJk/HjvO0GBflR12M6timeDJgIu6S77b38nclB74xXmdW KqRl8SBjlIWBjEuBlkxRZYHs37M8C2tqdxkErETZg4rE8gQBi5OAZiIVTIjw/pNGy8oVF9Je5EX s6n8uLDKLA3+Cdo1K6K/vC5O7mape8bIcGxy782lP0X5FqadM65Lczrb9dJhgt0+wX0bKnPPVWw WZAMA X-Developer-Key: i=thorsten.blum@linux.dev; a=openpgp; fpr=1D60735E8AEF3BE473B69D84733678FD8DFEEAD4 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT Replace hard-coded strings with the str_enabled_disabled() helper. This unifies the output and helps the linker with deduplication, which can result in a smaller binary. Additionally, silence the following Coccinelle/coccicheck warning reported by string_choices.cocci: opportunity for str_enabled_disabled(uv_pch_intr_now_enabled) Reviewed-by: Kyle Meyer Signed-off-by: Thorsten Blum --- arch/x86/platform/uv/uv_nmi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/x86/platform/uv/uv_nmi.c b/arch/x86/platform/uv/uv_nmi.c index 5c50e550ab63..565ab43fa6b4 100644 --- a/arch/x86/platform/uv/uv_nmi.c +++ b/arch/x86/platform/uv/uv_nmi.c @@ -18,6 +18,7 @@ #include #include #include +#include #include #include @@ -340,7 +341,7 @@ static void uv_nmi_setup_hubless_intr(void) uv_pch_intr_now_enabled ? GPIROUTNMI : 0); nmi_debug("UV:NMI: GPP_D_0 interrupt %s\n", - uv_pch_intr_now_enabled ? "enabled" : "disabled"); + str_enabled_disabled(uv_pch_intr_now_enabled)); } static struct init_nmi {