Re: [PATCH 12/81] scsi: BusLogic: Declare SCSI host template const

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 3/3/23 5:29 PM, Bart Van Assche wrote:
Make it explicit that the SCSI host template is not modified.

Signed-off-by: Bart Van Assche <bvanassche@xxxxxxx>
---
  drivers/scsi/BusLogic.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/scsi/BusLogic.c b/drivers/scsi/BusLogic.c
index f7b7ffda1161..72ceaf650b0d 100644
--- a/drivers/scsi/BusLogic.c
+++ b/drivers/scsi/BusLogic.c
@@ -54,7 +54,7 @@
  #define FAILURE (-1)
  #endif
-static struct scsi_host_template blogic_template;
+static const struct scsi_host_template blogic_template;
/*
    blogic_drvr_options_count is a count of the number of BusLogic Driver
@@ -3663,7 +3663,7 @@ static int __init blogic_parseopts(char *options)
    Get it all started
  */
-static struct scsi_host_template blogic_template = {
+static const struct scsi_host_template blogic_template = {
  	.module = THIS_MODULE,
  	.proc_name = "BusLogic",
  	.write_info = blogic_wr

Looks good to me.

Acked-by: Khalid Aziz <khalid@xxxxxxxxxxxxxx>



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux