[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240328131519.372381-4-thorsten.blum@toblux.com>
Date: Thu, 28 Mar 2024 14:15:22 +0100
From: Thorsten Blum <thorsten.blum@...lux.com>
To: Dan Williams <dan.j.williams@...el.com>,
Herbert Xu <herbert@...dor.apana.org.au>,
"David S. Miller" <davem@...emloft.net>
Cc: linux-crypto@...r.kernel.org,
linux-kernel@...r.kernel.org,
Thorsten Blum <thorsten.blum@...lux.com>
Subject: [PATCH] raid6test: Use str_plural() to fix Coccinelle warning
Fixes the following Coccinelle/coccicheck warning reported by
string_choices.cocci:
opportunity for str_plural(err)
Signed-off-by: Thorsten Blum <thorsten.blum@...lux.com>
---
crypto/async_tx/raid6test.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/crypto/async_tx/raid6test.c b/crypto/async_tx/raid6test.c
index d3fbee1e03e5..3826ccf0b9cc 100644
--- a/crypto/async_tx/raid6test.c
+++ b/crypto/async_tx/raid6test.c
@@ -11,6 +11,7 @@
#include <linux/mm.h>
#include <linux/random.h>
#include <linux/module.h>
+#include <linux/string_choices.h>
#undef pr
#define pr(fmt, args...) pr_info("raid6test: " fmt, ##args)
@@ -228,7 +229,7 @@ static int __init raid6_test(void)
pr("\n");
pr("complete (%d tests, %d failure%s)\n",
- tests, err, err == 1 ? "" : "s");
+ tests, err, str_plural(err));
for (i = 0; i < NDISKS+3; i++)
put_page(data[i]);
--
2.44.0
Powered by blists - more mailing lists