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