From nobody Thu Dec 18 06:30:31 2025 Received: from out-170.mta0.migadu.com (out-170.mta0.migadu.com [91.218.175.170]) (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 9153A1EDA11 for ; Fri, 11 Apr 2025 08:47:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744361267; cv=none; b=UTCSqpt0rGkMjeZoUESvaPpD+6+kkyEdt5E3nap+THjpfSlRKNH8iT+jTPri/wj9z26n5dUeyr4rNiZ56k+PjPfZoYpK5sAyy4KdSt5EAyQuXRsdHjCbUytR4fGapWZjZ1NE7EcTP0Uwavq1bpiNNQQCyWTmw9BK8cE3Yu9ykuA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744361267; c=relaxed/simple; bh=usfVP6LlpHBCPvtgzb/m0iAxVThx8yduHHfIQc3dpew=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=lYj4fZg0oGwqI10MurmvboY9Sc9ZhaMj2Hur/v8KfUoO2ByXJLMZ0NIpzBVwZ2H20I7D6Z7nwOaFh/iF8YaAts/umDK8t7MMn6Xf8MqxRSjN14jUt9nx0oYAyx+ZsdEabgQN5N6NYu6soa4K0X0ZIMEQWDbDgg9CSn7UmRMggxo= 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=TvUo8GK0; arc=none smtp.client-ip=91.218.175.170 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="TvUo8GK0" 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=1744361262; 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=CISzMpwIVKRzzULkCjNr+EVHLzO+7fOhSA52j2Jwi44=; b=TvUo8GK0bJeYa8uDnR1BO0JMMwlbFvluTLw8tFxmhg+WE0gbr+lt/2fjFiEWXQmDkcO4s3 /SXU9HCyoCrisbe/ZfBUVlqjF9eJVcQr6AJlnxyWPxGPKv6eIQoH/DgtQxVHmavU4cSvqS IGCsnyx8WGBOF+PwO1v0Ba7xBJ2EJkc= From: Thorsten Blum To: Don Brace , "James E.J. Bottomley" , "Martin K. Petersen" Cc: Thorsten Blum , storagedev@microchip.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RESEND PATCH] scsi: hpsa: Use str_enabled_disabled() helper function Date: Fri, 11 Apr 2025 10:47:20 +0200 Message-ID: <20250411084719.7396-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. Signed-off-by: Thorsten Blum --- drivers/scsi/hpsa.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index c73a71ac3c29..c190412ad9fc 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c @@ -36,6 +36,7 @@ #include #include #include +#include #include #include #include @@ -465,7 +466,7 @@ static ssize_t host_store_hp_ssd_smart_path_status(stru= ct device *dev, h->acciopath_status =3D !!status; dev_warn(&h->pdev->dev, "hpsa: HP SSD Smart Path %s via sysfs update.\n", - h->acciopath_status ? "enabled" : "disabled"); + str_enabled_disabled(h->acciopath_status)); return count; } =20 @@ -552,7 +553,7 @@ static ssize_t host_show_hp_ssd_smart_path_status(struc= t device *dev, =20 h =3D shost_to_hba(shost); return snprintf(buf, 30, "HP SSD Smart Path %s\n", - (h->acciopath_status =3D=3D 1) ? "enabled" : "disabled"); + str_enabled_disabled(h->acciopath_status =3D=3D 1)); } =20 /* List of controllers which cannot be hard reset on kexec with reset_devi= ces */ --=20 2.49.0