From nobody Wed Dec 17 12:42:22 2025 Received: from out-185.mta1.migadu.com (out-185.mta1.migadu.com [95.215.58.185]) (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 0609922836C for ; Fri, 20 Dec 2024 19:17:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.185 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734722246; cv=none; b=EUUvQcTVjwVCd4Yr7yqp7i2QFX+n8IpOwAOICHrhdB3tnVK2ot3MDnEXCmBe2WdmGCFQhulWHUaEB3Qx+iIgFXxM36ift5yj348as9fvOP1SK0W3EZHGBCuqKg6dcPF7lu6iWhWFUSM5/u11eHGAHsf+bO2OKFZPAjJY/AeLK2A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734722246; c=relaxed/simple; bh=z//+dXPXufdDNeW/4mfGF70rTrKf1xncwdlSj5vCDbc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=U28zC4AyWjpbTKCLso8y7A6y8jVLTGmTig6T8KIedNhQcT6sZrI/L/PX+SBJzbySiW3fgzam3FeA6nr338a9e7ETwLs6yuInunYKKFDe8Nz7feUGaBi9xn7ixOTDjaT6plziV1ZuT4dPu8ePHPh0WOti0DOJXDyVtmLgfPo3SgI= 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=ua0rrXeE; arc=none smtp.client-ip=95.215.58.185 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="ua0rrXeE" 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=1734722241; 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=Pf34OojONVP7LNB6ICjh3yc06WTmNpDfYvUhl/RPtw4=; b=ua0rrXeEXXIylFNilJijvdYEJ3TVUFGo3mG+In874+Sr3zei8nhpqn+yDgn56KbOu4n2yC ND9VONiwM4+7+OUDocX6w2Q9+ITD+1Xk9eeAxZgbcwKmfBvmqZ4A4vgqWn0glesFPPfTUQ J9KOgrvIp+5arRFaiB/WBDBLNsl8pBU= From: Thorsten Blum To: Michael Ellerman , Nicholas Piggin , Christophe Leroy , Naveen N Rao , Madhavan Srinivasan , Hari Bathini , Thomas Gleixner , Thorsten Blum , =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= , Baoquan He , "Ritesh Harjani (IBM)" Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [RESEND PATCH] powerpc: Use str_on_off() helper in check_cache_coherency() Date: Fri, 20 Dec 2024 20:17:04 +0100 Message-ID: <20241220191705.1446-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_on_off() helper function. Signed-off-by: Thorsten Blum Reviewed-by: Ritesh Harjani (IBM) --- arch/powerpc/kernel/setup-common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/kernel/setup-common.c b/arch/powerpc/kernel/setup= -common.c index 6fa179448c33..f7d7a93f07fc 100644 --- a/arch/powerpc/kernel/setup-common.c +++ b/arch/powerpc/kernel/setup-common.c @@ -834,8 +834,8 @@ static int __init check_cache_coherency(void) if (devtree_coherency !=3D KERNEL_COHERENCY) { printk(KERN_ERR "kernel coherency:%s !=3D device tree_coherency:%s\n", - KERNEL_COHERENCY ? "on" : "off", - devtree_coherency ? "on" : "off"); + str_on_off(KERNEL_COHERENCY), + str_on_off(devtree_coherency)); BUG(); } =20 --=20 2.47.1