Thread (90 messages) flat view 90 messages, 4 authors, 19h ago

Re: [PATCH v2 02/40] scsi: constants: use defined sense codes

From: Hannes Reinecke <hare@suse.de>
Date: 2026-09-07 12:02:33
Also in: linux-ide, linux-s390, linux-scsi

On 9/3/26 5:41 AM, Damien Le Moal wrote:
The SENSE_CODE() macro is used for defining the array of struct error_info
which associates a string description to an additional sense code and its
combinations with additional sense code qualifiers. These are however
hardcoded values.

Now that all 16-bits sense codes are defined as macros in
include/scsi/scsi_sense.h, modify sense_codes.h to use the defined
sense code macros. While doing this, 2 missing entries are added for the
codes OVERLAPPING_ATOMIC_COMMAND_IN_PROGRESS and
DEPOPULATION_RESTORATION_INTERRUPTED.

Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
---
  drivers/scsi/sense_codes.h | 2496 +++++++++++++++++++++++-------------
  1 file changed, 1631 insertions(+), 865 deletions(-)
Would be nice if we could auto-generate that...

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