mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v5 0/2] scsi: sd: Fix build warning in sd_revalidate_disk()
@ 2025-08-08 20:58 Abinash Singh
  2025-08-08 20:58 ` [PATCH v5 1/2] scsi: sd: make sd_revalidate_disk() return void Abinash Singh
  2025-08-08 20:58 ` [PATCH v5 2/2] scsi: sd: Fix build warning in sd_revalidate_disk() Abinash Singh
  0 siblings, 2 replies; 4+ messages in thread
From: Abinash Singh @ 2025-08-08 20:58 UTC (permalink / raw)
  To: bvanassche
  Cc: James.Bottomley, abinashsinghlalotra, dlemoal, linux-kernel,
	linux-scsi, martin.petersen

This v5 series follows up on v4 of the "scsi: sd: Fix build warning in sd_revalidate_disk()"
patch. In v4 and earlier, the change was sent as a single patch.

As @Bart mentioned about changing the return type of function `sd_revalidate_disk()`

Based on the review/feedback, the change has now been split into two logically
independent patches:

  1. Change sd_revalidate_disk() return type to void.
  2. Fix build warning in sd_revalidate_disk()

The return type change removes unused and potentially misleading return
codes, since none of the callers care about the returned value.

The stack usage fix prevents large structures from being allocated on the
stack, improving safety and avoiding potential kernel stack overflows.

Changes since v4:
  - Split the original single patch into two patches.
  - Started a new email thread (not a reply) as suggested.

Link to v4:
https://lore.kernel.org/all/411260ff-d5c7-4f82-8c47-e66e4828c2b1@acm.org/



Abinash Singh (2):
  scsi: sd: make sd_revalidate_disk() return void
  scsi: sd: Fix build warning in sd_revalidate_disk()

 drivers/scsi/sd.c | 54 +++++++++++++++++++++++++++--------------------
 1 file changed, 31 insertions(+), 23 deletions(-)

-- 
2.50.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-08-09  8:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-08-08 20:58 [PATCH v5 0/2] scsi: sd: Fix build warning in sd_revalidate_disk() Abinash Singh
2025-08-08 20:58 ` [PATCH v5 1/2] scsi: sd: make sd_revalidate_disk() return void Abinash Singh
2025-08-08 20:58 ` [PATCH v5 2/2] scsi: sd: Fix build warning in sd_revalidate_disk() Abinash Singh
2025-08-09  8:17   ` kernel test robot

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®