Thread (130 messages) flat view 130 messages, 5 authors, 7d ago

Re: [PATCH v2 09/40] scsi: sr: use 16-bits defined sense codes

From: Hannes Reinecke <hare@suse.de>
Date: 2026-09-07 13:57:05
Also in: linux-s390, linux-scsi, linux-usb

On 9/3/26 5:41 AM, Damien Le Moal wrote:
Refactor the SCSI CDROM driver to use the 16-bits sense_code field of
struct scsi_sense_hdr and replace all hard-coded additional sense codes
and additional sense code qualifiers with the enum values defined in
include/scsi/scsi_sense.h. This helps with code clarity as the sense codes
being processed are easier to test and self-documented.

No functional change intended.

Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
---
  drivers/scsi/sr.c       |  3 ++-
  drivers/scsi/sr_ioctl.c | 29 +++++++++++------------------
  2 files changed, 13 insertions(+), 19 deletions(-)
Reviewed-by: Hannes Reinecke <hare@kernel.org>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke                  Kernel Storage Architect
hare@suse.de                                +49 911 74053 688
SUSE Software Solutions GmbH, Frankenstr. 146, 90461 Nürnberg
HRB 36809 (AG Nürnberg), GF: I. Totev, A. McDonald, W. Knoblich
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help