From nobody Sun Dec 14 13:38:59 2025 Received: from out-174.mta0.migadu.com (out-174.mta0.migadu.com [91.218.175.174]) (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 EF2412253F0 for ; Tue, 10 Dec 2024 11:10:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733829018; cv=none; b=L9349HG42TsFdeLZrn8WUsEKy8vim6c03E9TrKwuIizxRFGSeOcAmWzAZ9xxmTPIycLi/TlTzND7ggz3qDV+DAr6dqAzY8L2pwfpnFcd8wY6HkHT9WdnK4zyKQHqtHH13Of0wtfTqgO0HpSUCwAt86/9QrSuiWKPtwNAvE+XiEQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733829018; c=relaxed/simple; bh=xYDp6sKG5fwtMcoHr7NUe/IdwwtM0oEDlKxrHHrm/rk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=DV3MBJZ2jzsEQY+L/Az9pb/JM3YO6TAj1mZHrMfGWBdrHUfu+/FJmigRvrO+SuNVvUEz8pobjT8Ppxqg12XBVoGrHPnW46nMuIuralfHVpZ9exrHUQtBctbcqqQadY6v90t87pbMW94SiJRxjc/YhPnd9H1uIZylAmHrY1Ij/bo= 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=rwQWO9kU; arc=none smtp.client-ip=91.218.175.174 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="rwQWO9kU" 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=1733829014; 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=EXnNWERxS630dnGYYdf2dN5o4wS6D1OTxPJtZ06w44w=; b=rwQWO9kUBm/TPiuqgh+9qGziWTSGUDBR9mDMGu2oMZVI0Fyrmtldsvjz8/x5AOQEeqoEcc 7HymKv0JHj9OsJpKDvs1Veyo7LaqmzRAY7lBVtskzgoMhEeSYHUyASs405jw2KBw06M1jX Ybd4Vg8IT0apbuTgs3bcWNOPOTFXU1o= From: Thorsten Blum To: Chris Zankel , Max Filippov , Jens Axboe , Damien Le Moal , Hannes Reinecke , Himanshu Madhani , Dan Williams Cc: Thorsten Blum , linux-kernel@vger.kernel.org Subject: [PATCH] xtensa/simdisk: Use str_write_read() helper in simdisk_transfer() Date: Tue, 10 Dec 2024 12:09:33 +0100 Message-ID: <20241210110935.104919-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_write_read() helper. Signed-off-by: Thorsten Blum --- arch/xtensa/platforms/iss/simdisk.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/xtensa/platforms/iss/simdisk.c b/arch/xtensa/platforms/is= s/simdisk.c index d6d2b533a574..6ed009318d24 100644 --- a/arch/xtensa/platforms/iss/simdisk.c +++ b/arch/xtensa/platforms/iss/simdisk.c @@ -14,6 +14,7 @@ #include #include #include +#include #include #include #include @@ -75,7 +76,7 @@ static void simdisk_transfer(struct simdisk *dev, unsigne= d long sector, =20 if (offset > dev->size || dev->size - offset < nbytes) { pr_notice("Beyond-end %s (%ld %ld)\n", - write ? "write" : "read", offset, nbytes); + str_write_read(write), offset, nbytes); return; } =20 --=20 2.47.1