[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241210110935.104919-2-thorsten.blum@linux.dev>
Date: Tue, 10 Dec 2024 12:09:33 +0100
From: Thorsten Blum <thorsten.blum@...ux.dev>
To: Chris Zankel <chris@...kel.net>,
Max Filippov <jcmvbkbc@...il.com>,
Jens Axboe <axboe@...nel.dk>,
Damien Le Moal <dlemoal@...nel.org>,
Hannes Reinecke <hare@...e.de>,
Himanshu Madhani <himanshu.madhani@...cle.com>,
Dan Williams <dan.j.williams@...el.com>
Cc: Thorsten Blum <thorsten.blum@...ux.dev>,
linux-kernel@...r.kernel.org
Subject: [PATCH] xtensa/simdisk: Use str_write_read() helper in simdisk_transfer()
Remove hard-coded strings by using the str_write_read() helper.
Signed-off-by: Thorsten Blum <thorsten.blum@...ux.dev>
---
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/iss/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 <linux/kernel.h>
#include <linux/init.h>
#include <linux/string.h>
+#include <linux/string_choices.h>
#include <linux/blkdev.h>
#include <linux/bio.h>
#include <linux/proc_fs.h>
@@ -75,7 +76,7 @@ static void simdisk_transfer(struct simdisk *dev, unsigned long sector,
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;
}
--
2.47.1
Powered by blists - more mailing lists