scsi: sd: Fix build warning in sd_revalidate_disk()
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v8 Latest2 patches 2 repliesIn review
- v72 patches 2 repliesSuperseded
- v62 patches 1 replySuperseded
Earlier versions · 5
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v5 | 2 patches | 0 replies | Superseded | |
| v4 | 1 patch | 1 reply | Superseded | |
| v3 | 1 patch | 1 reply | Superseded | |
| v2 | 1 patch | 1 reply | Superseded | |
| v1 RFC | 1 patch | 1 reply | Superseded |
Changes in v8 from the cover letter
- Patch 1/2:
* Reverse the order of kfree() calls to follow the conventional opposite-of-kmalloc() order.
* Added Bart Van Assche’s Reviewed-by tag.
- Patch 2/2:
* Removed the unused ‘err’ variable initializer.
Patches in v8 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | scsi: sd: Fix build warning in sd_revalidate_disk()drivers/ | +31 | 2 replies | |
| 2/2 | scsi: sd: make sd_revalidate_disk() return voiddrivers/ | +5 | 0 replies |
Reviews trailers per patch
1 of 2 patches has a Reviewed-by or Acked-by.
| Patch | Bart Van Assche |
|---|---|
| 1/2 | R-b |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v8 0/2] scsi: sd: Fix build warning in sd_revalidate_disk()
Hi all,
This v8 series follows up on v7 of the
"scsi: sd: Fix build warning in sd_revalidate_disk()" patches.
Quoted 5 lines · On Tue, 19 Aug 2025 Bart Van Assche wrote:
The traditional order for
kfree()statements is the opposite order of the correspondingkmalloc()calls.Shouldn't this patch remove the initializer from the 'err' variable? Otherwise this patch looks good to me.
Based on Bart’s feedback, I have addressed the following in v8:
Changes in v8:
- Patch 1/2:
* Reverse the order of kfree() calls to follow the conventional opposite-of-kmalloc() order.
* Added Bart Van Assche’s Reviewed-by tag.
- Patch 2/2:
* Removed the unused ‘err’ variable initializer.
As before, the first patch fixes the stack usage warning by moving a large struct off the stack (with Fixes and Cc: stable tags). The second patch then simplifies sd_revalidate_disk() by making it return void.
Many thanks to Bart and Damien for their reviews 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 | 56 +++++++++++++++++++++++++++-------------------- 1 file changed, 32 insertions(+), 24 deletions(-)
Signature · 1 line
2.43.0