From nobody Tue Dec 2 01:06:09 2025 Received: from out-172.mta1.migadu.com (out-172.mta1.migadu.com [95.215.58.172]) (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 ECC542E8B8B for ; Sat, 22 Nov 2025 11:53:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763812427; cv=none; b=H+ykRIUyx/zY3/RI7T0lEgYmRp+Zy/IyAZH2d15xrzPljgU6n5dAzfiQKJJRsAm7mi02pf2qzVIEgWyOM+mfUqIhyYwp/Q6sq9Vl18jsC9NPkuLa84lIxx3kixC9zVzqy7cpWZ6rnRlhAiOu5SPdj1iD+wI/Dxse0Jts+K604nI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763812427; c=relaxed/simple; bh=rAhceWvrvno7hRTaZRW02yH+tbcpqS0T7tGbznwz6J8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=u1oTrfvm7HR1zEEr25h6+pVgXYOA/+ani+WrYXb6RXXqSvoAn4lBoiEAgjQqGU9BD7Ou+KvTs7uTs/526kk0w/sMp3bc+D5E7JN+2OENfPSpeqcOZBvZyNA6tHoe8GZ2HUzyDRb2nPw1r6DZeGQqGjhKmAaymmxqzgNk6zFA6co= 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=Vpx4gI98; arc=none smtp.client-ip=95.215.58.172 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="Vpx4gI98" 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=1763812420; 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=SwhwL3XJGz5ztQ2Pag8XGQS9YI2pvXxKeHHgc5KsHUk=; b=Vpx4gI98cUz3IG+zWNhZjiWQtGcXIfJPmS7YuaVIqqnXF+usS6a31kYonLp65hLt4ZxrLG aTBssI/I+iwJOzgwKggf6roLEhATg4L8nbpBIsN79YVOzYaYVq+TdA0Q336xR3mV+mORVQ 98tn/olJvGj7HuDPPRYOWwboHZPJ1B4= 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: Sat, 22 Nov 2025 12:53:27 +0100 Message-ID: <20251122115328.447796-1-thorsten.blum@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" 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 =20 #include @@ -340,7 +341,7 @@ static void uv_nmi_setup_hubless_intr(void) uv_pch_intr_now_enabled ? GPIROUTNMI : 0); =20 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)); } =20 static struct init_nmi { --=20 2.51.1