Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

scsi: firewire: sbp2: Declare the SCSI host template const

Make it explicit that the sbp2 host template it not modified.

Cc: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20230322195515.1267197-6-bvanassche@acm.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Bart Van Assche and committed by
Martin K. Petersen
0ca31eca 25df73d9

+2 -2
+2 -2
drivers/firewire/sbp2.c
··· 1117 1117 tgt->workarounds = w; 1118 1118 } 1119 1119 1120 - static struct scsi_host_template scsi_driver_template; 1120 + static const struct scsi_host_template scsi_driver_template; 1121 1121 static void sbp2_remove(struct fw_unit *unit); 1122 1122 1123 1123 static int sbp2_probe(struct fw_unit *unit, const struct ieee1394_device_id *id) ··· 1586 1586 1587 1587 ATTRIBUTE_GROUPS(sbp2_scsi_sysfs); 1588 1588 1589 - static struct scsi_host_template scsi_driver_template = { 1589 + static const struct scsi_host_template scsi_driver_template = { 1590 1590 .module = THIS_MODULE, 1591 1591 .name = "SBP-2 IEEE-1394", 1592 1592 .proc_name = "sbp2",