From: sashiko-bot@kernel.org
To: "Thorsten Blum" <thorsten.blum@linux.dev>
Cc: linux-scsi@vger.kernel.org
Subject: Re: [PATCH] scsi: csiostor: Use str_plural() in csio_mem_intr_handler()
Date: Fri, 03 Jul 2026 22:32:57 +0000 [thread overview]
Message-ID: <20260703223257.8499C1F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260703221731.180534-3-thorsten.blum@linux.dev>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] The patch introduces a build failure by including a non-existent header `<linux/string_choices.h>` and calling an undefined function `str_plural()`.
--
commit cdb7701e8f1bfc8ec07f47cf6dd02c5a65955713
Author: Thorsten Blum <thorsten.blum@linux.dev>
scsi: csiostor: Use str_plural() in csio_mem_intr_handler()
This patch simplifies the pluralization logic in csio_mem_intr_handler()
by replacing a manual ternary operator with the str_plural() helper.
It also adds the string_choices.h header to support this function.
> diff --git a/drivers/scsi/csiostor/csio_hw.c b/drivers/scsi/csiostor/csio_hw.c
> --- a/drivers/scsi/csiostor/csio_hw.c
> +++ b/drivers/scsi/csiostor/csio_hw.c
> @@ -38,6 +38,7 @@
> #include <linux/stddef.h>
> #include <linux/delay.h>
> #include <linux/string.h>
> +#include <linux/string_choices.h>
[Severity: Low]
Does this header exist in the current tree? It appears that including
linux/string_choices.h might cause a build failure if the header is not
present in this kernel version.
[ ... ]
> @@ -3026,7 +3027,7 @@ static void csio_mem_intr_handler(struct csio_hw *hw, int idx)
>
> csio_wr_reg32(hw, ECC_CECNT_V(ECC_CECNT_M), cnt_addr);
> csio_warn(hw, "%u %s correctable ECC data error%s\n",
> - cnt, name[idx], cnt > 1 ? "s" : "");
> + cnt, name[idx], str_plural(cnt));
[Severity: Low]
Is str_plural() defined in this kernel version? If the helper function
is missing, this will result in an undeclared function error during
compilation.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260703221731.180534-3-thorsten.blum@linux.dev?part=1
prev parent reply other threads:[~2026-07-03 22:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-03 22:17 [PATCH] scsi: csiostor: Use str_plural() in csio_mem_intr_handler() Thorsten Blum
2026-07-03 22:32 ` sashiko-bot [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260703223257.8499C1F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=thorsten.blum@linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.