From: Shuah Khan <skhan@linuxfoundation.org>
To: Bartlomiej Kubik <kubik.bartlomiej@gmail.com>,
sathya.prakash@broadcom.com, kashyap.desai@broadcom.com,
sumit.saxena@broadcom.com, sreekanth.reddy@broadcom.com,
James.Bottomley@HansenPartnership.com,
martin.petersen@oracle.com
Cc: mpi3mr-linuxdrv.pdl@broadcom.com, linux-scsi@vger.kernel.org,
david.hunter.linux@gmail.com,
linux-kernel-mentees@lists.linuxfoundation.org,
Shuah Khan <skhan@linuxfoundation.org>
Subject: Re: [PATCH] driver/scsi/mpi3mr.h: Fix build warning for mpi3mr_start_watchdog
Date: Tue, 7 Oct 2025 15:17:56 -0600 [thread overview]
Message-ID: <3adc91e7-8a96-4ffe-b891-2b9df252d8da@linuxfoundation.org> (raw)
In-Reply-To: <20250924160635.27359-1-kubik.bartlomiej@gmail.com>
On 9/24/25 10:06, Bartlomiej Kubik wrote:
> Fix watchdog name truncation.
>
> In function mpi3mr_start_watchdog, watchdog_work_q_name is build
> snprintf(mrioc->watchdog_work_q_name,
> sizeof(mrioc->watchdog_work_q_name), "watchdog_%s%d", mrioc->name,
> mrioc->id);
Include build warning in the commit message
>
> Signed-off-by: Bartlomiej Kubik <kubik.bartlomiej@gmail.com>
> ---
> drivers/scsi/mpi3mr/mpi3mr.h | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/scsi/mpi3mr/mpi3mr.h b/drivers/scsi/mpi3mr/mpi3mr.h
> index 8d4ef49e04d1..5307fcdf216f 100644
> --- a/drivers/scsi/mpi3mr/mpi3mr.h
> +++ b/drivers/scsi/mpi3mr/mpi3mr.h
> @@ -66,6 +66,7 @@ extern atomic64_t event_counter;
>
> #define MPI3MR_NAME_LENGTH 64
> #define IOCNAME "%s: "
> +#define MPI3MR_WATCHDOG_NAME_LENGTH (MPI3MR_NAME_LENGTH + 15)
This 15 looks random to me?
>
> #define MPI3MR_DEFAULT_MAX_IO_SIZE (1 * 1024 * 1024)
>
> @@ -1261,7 +1262,7 @@ struct mpi3mr_ioc {
> spinlock_t fwevt_lock;
> struct list_head fwevt_list;
>
> - char watchdog_work_q_name[50];
> + char watchdog_work_q_name[MPI3MR_WATCHDOG_NAME_LENGTH];
> struct workqueue_struct *watchdog_work_q;
> struct delayed_work watchdog_work;
> spinlock_t watchdog_lock;
> --
> 2.39.5
>
You are changing the structure size here? How did you test this
patch? DO you have this scsi card to test and make sure this
change doesn't introduce regressions?
thanks,
-- Shuah
prev parent reply other threads:[~2025-10-07 21:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-24 16:06 [PATCH] driver/scsi/mpi3mr.h: Fix build warning for mpi3mr_start_watchdog Bartlomiej Kubik
2025-10-07 21:17 ` Shuah Khan [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=3adc91e7-8a96-4ffe-b891-2b9df252d8da@linuxfoundation.org \
--to=skhan@linuxfoundation.org \
--cc=James.Bottomley@HansenPartnership.com \
--cc=david.hunter.linux@gmail.com \
--cc=kashyap.desai@broadcom.com \
--cc=kubik.bartlomiej@gmail.com \
--cc=linux-kernel-mentees@lists.linuxfoundation.org \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=mpi3mr-linuxdrv.pdl@broadcom.com \
--cc=sathya.prakash@broadcom.com \
--cc=sreekanth.reddy@broadcom.com \
--cc=sumit.saxena@broadcom.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox