]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
scsi: core: Do not declare scsi_cmnd pointers const
authorBart Van Assche <bvanassche@acm.org>
Tue, 14 Oct 2025 22:04:25 +0000 (15:04 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 22 Oct 2025 01:11:35 +0000 (21:11 -0400)
commitce085ecdba23a5d5462877d884ecff3ffceaad22
tree78c7255863d84b8ca58aa04b8f6cd1fa86371e71
parent3d0d1c7a5c9981ca35e2976337c0b6c9e644d269
scsi: core: Do not declare scsi_cmnd pointers const

This change allows removing multiple casts and hence improves type
checking by the compiler.

Cc: Hannes Reinecke <hare@suse.de>
Suggested-by: John Garry <john.g.garry@oracle.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: John Garry <john.g.garry@oracle.com>
Link: https://patch.msgid.link/20251014220426.3690007-1-bvanassche@acm.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_logging.c
include/scsi/scsi_dbg.h
include/scsi/scsi_device.h