On 9/3/26 5:41 AM, Damien Le Moal wrote:
Instead of passing the sense key, additional sense code and additional
sense code qualifier as separate parameters, change the functions
scsi_extd_sense_format(), scsi_format_extd_sense(), and
usb_stor_show_sense() to take a pointer to a struct scsi_sense_hdr to
access the sense key and sense code with a single argument.
No functional change intended.
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
---
drivers/scsi/constants.c | 11 +++++------
drivers/scsi/scsi_logging.c | 22 ++++++++++++----------
drivers/usb/storage/debug.c | 12 +++++-------
drivers/usb/storage/debug.h | 4 ++--
drivers/usb/storage/transport.c | 2 +-
include/scsi/scsi_dbg.h | 6 +++---
6 files changed, 28 insertions(+), 29 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