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

scsi: sgiwd93: Declare SCSI host template const

Make it explicit that the SCSI host template is not modified.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20230322195515.1267197-70-bvanassche@acm.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Bart Van Assche and committed by
Martin K. Petersen
4517353a 7c7a1419

+1 -1
+1 -1
drivers/scsi/sgiwd93.c
··· 204 204 * arguments not with pointers. So this is going to blow up beautyfully 205 205 * on 64-bit systems with memory outside the compat address spaces. 206 206 */ 207 - static struct scsi_host_template sgiwd93_template = { 207 + static const struct scsi_host_template sgiwd93_template = { 208 208 .module = THIS_MODULE, 209 209 .proc_name = "SGIWD93", 210 210 .name = "SGI WD93",