From nobody Sat Feb 7 15:09:48 2026 Received: from out-189.mta1.migadu.com (out-189.mta1.migadu.com [95.215.58.189]) (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 6A69F2080F6 for ; Fri, 10 Jan 2025 22:53:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.189 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736549633; cv=none; b=GMxwxAXouWR3BPuYXmomCTYY8DzUgfwyMvkGWkR5BMOwLwsWyU1jriUG+TApRceZCL4uQc8INNyZx4Zfsy0GwjWRhfYJhcTmLy9iz1otpukW81tdv4BCet/bdgG81ZIss96Fud1F8xVJtueyBvcOeq1+/UhMHlSnBiqSFXBQaQM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736549633; c=relaxed/simple; bh=JTjqSHbfRwOx/pr5FfQIXpFcwvpdy7keNJ14EYu0g2Y=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=jE4fW+9o5we8PtR16oClr0guvdQaAEiWgSy9Dvh3HQDuUeJORu+djBn1wJk/COepmfUqXdCIzJBTuIedbjOwdaW8sB5GdnQKwQwRXHhSCj5w9QwqZEIXyOptypJQTPj1W8ZYYpMbdBDLQxcXh+FgFE8vgBNfA9DbbevHgjOWjes= 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=rxRidBOW; arc=none smtp.client-ip=95.215.58.189 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="rxRidBOW" 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=1736549629; 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=eJTTDJmqLymoNkdRC+AVperlrWlU0YZNLMNy9tALto8=; b=rxRidBOWYfEutC16dOZAuW3ZTMoV+kHg5ik3aLx5CZRtabjkTcVS5FGW1ERMCF3/hv7ZbF PeKpOjRfUnU5KhiGJz5Pe3ErFWQUT2PHVkQ+IkOwQ3eBdCo4hTK232/S823GL6PC+RP4Qx VROEmT7dSLG0nXwNUfQMrQhd8dtSHzI= From: Thorsten Blum To: Marc Zyngier , Oliver Upton , Joey Gouly , Suzuki K Poulose , Zenghui Yu , Catalin Marinas , Will Deacon , Sebastian Ott , Fuad Tabba Cc: Thorsten Blum , Christophe JAILLET , linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH] KVM: arm64: vgic: Use str_enabled_disabled() in vgic_v3_probe() Date: Fri, 10 Jan 2025 23:53:09 +0100 Message-ID: <20250110225310.369980-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 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" Remove hard-coded strings by using the str_enabled_disabled() helper function. Suggested-by: Christophe JAILLET Signed-off-by: Thorsten Blum Reviewed-by: Oliver Upton --- arch/arm64/kvm/vgic/vgic-v3.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm64/kvm/vgic/vgic-v3.c b/arch/arm64/kvm/vgic/vgic-v3.c index f267bc2486a1..528ee93fefd4 100644 --- a/arch/arm64/kvm/vgic/vgic-v3.c +++ b/arch/arm64/kvm/vgic/vgic-v3.c @@ -6,6 +6,7 @@ #include #include #include +#include #include #include #include @@ -663,9 +664,9 @@ int vgic_v3_probe(const struct gic_kvm_info *info) if (info->has_v4) { kvm_vgic_global_state.has_gicv4 =3D gicv4_enable; kvm_vgic_global_state.has_gicv4_1 =3D info->has_v4_1 && gicv4_enable; - kvm_info("GICv4%s support %sabled\n", + kvm_info("GICv4%s support %s\n", kvm_vgic_global_state.has_gicv4_1 ? ".1" : "", - gicv4_enable ? "en" : "dis"); + str_enabled_disabled(gicv4_enable)); } =20 kvm_vgic_global_state.vcpu_base =3D 0; --=20 2.47.1