From: Abinash Singh <abinashsinghlalotra@gmail.com>
To: "James E . J . Bottomley" <James.Bottomley@HansenPartnership.com>,
"Martin K . Petersen" <martin.petersen@oracle.com>
Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org,
Abinash Singh <abinashsinghlalotra@gmail.com>
Subject: [PATCH v7 0/2] scsi: sd: Fix build warning in sd_revalidate_disk()
Date: Sun, 17 Aug 2025 02:23:27 +0530 [thread overview]
Message-ID: <20250816205329.404116-1-abinashsinghlalotra@gmail.com> (raw)
Hi all,
This v7 series follows up on v6 of the
"scsi: sd: Fix build warning in sd_revalidate_disk()" patches.
On Mon, 11 Aug 2025 09:39 Damien Le Moal wrote:
> The order of the patches must be reversed because the fix build warning patch
> must be CC-ed to stable with a Fixes tag. The cleanup making
> sd_revalidate_disk() a void function must come after the fix. That will avoid
> the weird placeholder comment and also will allow a more extensive cleanup to
> replace several "goto out" with a simple return.
Damien Le Moal pointed out that the order of the patches should be reversed:
The build warning fix must come first, since it requires a Fixes tag
and should be CC-ed to stable.
The cleanup making sd_revalidate_disk() return void should follow afterwards,
which also allows for a cleaner refactor without placeholder comments and prepares
for further simplifications.
Changes in v7:
Reversed patch order:
Fix build warning in sd_revalidate_disk() (with Fixes and Cc: stable)
Refactor sd_revalidate_disk() to return void
I have built and tested this series locally with both gcc and clang;
no build errors or warnings remain.
Many thanks to Damien for the review and guidance.
Abinash Singh (2):
scsi: sd: Fix build warning in sd_revalidate_disk()
scsi: sd: make sd_revalidate_disk() return void
drivers/scsi/sd.c | 58 +++++++++++++++++++++++++++--------------------
1 file changed, 33 insertions(+), 25 deletions(-)
--
2.43.0
next reply other threads:[~2025-08-16 20:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-16 20:53 Abinash Singh [this message]
2025-08-16 20:53 ` [PATCH v7 1/2] " Abinash Singh
2025-08-19 19:26 ` Bart Van Assche
2025-08-16 20:53 ` [PATCH v7 2/2] scsi: sd: make sd_revalidate_disk() return void Abinash Singh
2025-08-19 19:24 ` Bart Van Assche
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=20250816205329.404116-1-abinashsinghlalotra@gmail.com \
--to=abinashsinghlalotra@gmail.com \
--cc=James.Bottomley@HansenPartnership.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.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
all inboxes | Powered by JetHome®