]> www.infradead.org Git - users/jedix/linux-maple.git/commit
scsi: scsi_debug: Constify sdebug_driver_template
authorJohn Garry <john.g.garry@oracle.com>
Tue, 7 Jan 2025 15:33:25 +0000 (15:33 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 10 Jan 2025 21:21:14 +0000 (16:21 -0500)
commit37d061e1ace17a376eda34b10dde28b144296534
treec528f1afa515dc73fe9e0999229c97d85cb5b346
parent8bf10dfd7d0d8c0e6cdda176c461b3c5eba022ca
scsi: scsi_debug: Constify sdebug_driver_template

It's better to have sdebug_driver_template as const, so update the probe
path to set the shost members directly after allocation and make that
change.

Signed-off-by: John Garry <john.g.garry@oracle.com>
Link: https://lore.kernel.org/r/20250107153325.1689432-1-john.g.garry@oracle.com
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_debug.c