From patchwork Wed Mar 22 19:53:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184548 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DE7D0C6FD1F for ; Wed, 22 Mar 2023 19:55:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229620AbjCVTzY (ORCPT ); Wed, 22 Mar 2023 15:55:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229600AbjCVTzX (ORCPT ); Wed, 22 Mar 2023 15:55:23 -0400 Received: from mail-pj1-f47.google.com (mail-pj1-f47.google.com [209.85.216.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52C14521EE for ; Wed, 22 Mar 2023 12:55:22 -0700 (PDT) Received: by mail-pj1-f47.google.com with SMTP id p3-20020a17090a74c300b0023f69bc7a68so15740625pjl.4 for ; Wed, 22 Mar 2023 12:55:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679514922; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rTPeS6tBEMRDFCUaBbBw56D6tDM3vZchiMLIhTZmKIw=; b=tPHwhLEOZtFaRmlL9ppO3eakEJNK1+bbtxLA/Dz1Nj92EJLcqbCcycI+TR+nVGvQVz hHUN4GgeQP4A+TeYcjqdiM5lyDsbcScCCEE4bdAsvR5F5FIzyrsV+EtjcbeMiq/hcH0k 8vuV/KfV+PD/wbUk5wx4xvlM9PqUsGvxW5IQKZqZtC3ZkQihmKYf+0G0fusXITfalMKP 7l37LwrYQJ1Ct9pgeLQ24hoiMCQzLnZxstD4ZiwC9SDkHBDYVXwntxt00OCBvRY+Shnb fVB04NWQUfblvdEBp/0d/NLq4+vlv0n0VwFkg/Z4PrvrrLLO0QUQOQwUocA7HmQD5DNA Xq6A== X-Gm-Message-State: AO0yUKXxyKog9o+J6uLuJ3NBg9Gb+k+vT2DB9dkqdh0KrYM/ygbEPOOG pGOMbzEkzrIf/s49kS16QitoOCnUgzw= X-Google-Smtp-Source: AK7set8P7ly3wyJnPcpnCBs5WNZIUcqmOZ6LzOFHMrlyU9lecP14AxpTCfi5FIe3na36fuggqPtm4A== X-Received: by 2002:a17:90b:164b:b0:236:73d5:82cf with SMTP id il11-20020a17090b164b00b0023673d582cfmr4730304pjb.9.1679514921687; Wed, 22 Mar 2023 12:55:21 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.55.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:55:21 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , Nilesh Javali , GR-QLogic-Storage-Upstream@marvell.com, "James E.J. Bottomley" Subject: [PATCH v3 01/80] scsi: qla2xxx: Refer directly to the qla2xxx_driver_template Date: Wed, 22 Mar 2023 12:53:56 -0700 Message-Id: <20230322195515.1267197-2-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Access the qla2xxx_driver_template data structure directly instead of via the host pointer. This patch prepares for declaring the 'hostt' pointer const. Cc: Nilesh Javali Signed-off-by: Bart Van Assche --- drivers/scsi/qla2xxx/qla_target.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_target.c b/drivers/scsi/qla2xxx/qla_target.c index aa0cf5ca6c1c..5258b07687a9 100644 --- a/drivers/scsi/qla2xxx/qla_target.c +++ b/drivers/scsi/qla2xxx/qla_target.c @@ -6395,8 +6395,7 @@ int qlt_add_target(struct qla_hw_data *ha, struct scsi_qla_host *base_vha) return -ENOMEM; } - if (!(base_vha->host->hostt->supported_mode & MODE_TARGET)) - base_vha->host->hostt->supported_mode |= MODE_TARGET; + qla2xxx_driver_template.supported_mode |= MODE_TARGET; rc = btree_init64(&tgt->lun_qpair_map); if (rc) { From patchwork Wed Mar 22 19:53:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184549 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7F6D2C6FD1F for ; Wed, 22 Mar 2023 19:55:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229812AbjCVTz3 (ORCPT ); Wed, 22 Mar 2023 15:55:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229691AbjCVTz1 (ORCPT ); Wed, 22 Mar 2023 15:55:27 -0400 Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3B9054C8D for ; Wed, 22 Mar 2023 12:55:26 -0700 (PDT) Received: by mail-pl1-f180.google.com with SMTP id kc4so5678601plb.10 for ; Wed, 22 Mar 2023 12:55:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679514926; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=iGZZNfXoyPkNTywBK1wXL/TXSFbB7zwD2eO1FuTaAKQ=; b=vsw9DNfBoYM4pQ+p6WgDt7YLUwAa4XLVMWEiwXd/iKxVQFeoI4RJe/JyBmH4zIy8Cd 0wda0x9JlvUY6IeNFOa5bIZrpK0S2MUf+AlY5GsRk1CHO8MQdOe//6ZrDnzLFCo93TYU hX1lilJGdwbWhE+94ylZJbnrEvepCgGhaM+VnJbLRZL3VsP4cEhoeOwwFC82yP3bhW9k ucxhb1k9VCnoz14xLD/7JviI6wEJrdyHG0zL2PZLCsfpP7G+EUODRQCbUgbKSGBfqMH7 qDnozH+fFY1ZtS9FKhZfQY0qf4AiGx4pYQTMmeoSFvo1+iUZbFrp4waY367WZVSex7g9 BypA== X-Gm-Message-State: AO0yUKUH3uvGbuIZui/wX/t95TgC5+gRrisLR4OydbCRlg3RcHOnzCe1 uMJ4H7p3IIT6OOsHhkp7m3c= X-Google-Smtp-Source: AK7set9khTRr1ThpxZEupudCNCnfl1Nj0/IgJH+2pccsfYcwB9KeiDNqFgAS+8muLAs2CgME1BBvrA== X-Received: by 2002:a17:90b:3e8c:b0:233:fb7d:845a with SMTP id rj12-20020a17090b3e8c00b00233fb7d845amr5536070pjb.4.1679514926086; Wed, 22 Mar 2023 12:55:26 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.55.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:55:22 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , Benjamin Block , John Garry , Ming Lei , Christoph Hellwig , Hannes Reinecke , Mike Christie , "James E.J. Bottomley" Subject: [PATCH v3 02/80] scsi: core: Declare most SCSI host template pointers const Date: Wed, 22 Mar 2023 12:53:57 -0700 Message-Id: <20230322195515.1267197-3-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Prepare for constifying most SCSI host template pointers by constifying the SCSI host template pointer arguments and variables in the SCSI core. Reviewed-by: Benjamin Block Reviewed-by: John Garry Reviewed-by: Ming Lei Cc: Christoph Hellwig Cc: Hannes Reinecke Cc: Mike Christie Signed-off-by: Bart Van Assche --- drivers/scsi/scsi_error.c | 16 ++++++++-------- drivers/scsi/scsi_sysfs.c | 6 +++--- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/scsi/scsi_error.c b/drivers/scsi/scsi_error.c index 2aa2c2aee6e7..3ec8bfd4090f 100644 --- a/drivers/scsi/scsi_error.c +++ b/drivers/scsi/scsi_error.c @@ -58,7 +58,7 @@ #define HOST_RESET_SETTLE_TIME (10) static int scsi_eh_try_stu(struct scsi_cmnd *scmd); -static enum scsi_disposition scsi_try_to_abort_cmd(struct scsi_host_template *, +static enum scsi_disposition scsi_try_to_abort_cmd(const struct scsi_host_template *, struct scsi_cmnd *); void scsi_eh_wakeup(struct Scsi_Host *shost) @@ -699,7 +699,7 @@ EXPORT_SYMBOL_GPL(scsi_check_sense); static void scsi_handle_queue_ramp_up(struct scsi_device *sdev) { - struct scsi_host_template *sht = sdev->host->hostt; + const struct scsi_host_template *sht = sdev->host->hostt; struct scsi_device *tmp_sdev; if (!sht->track_queue_depth || @@ -731,7 +731,7 @@ static void scsi_handle_queue_ramp_up(struct scsi_device *sdev) static void scsi_handle_queue_full(struct scsi_device *sdev) { - struct scsi_host_template *sht = sdev->host->hostt; + const struct scsi_host_template *sht = sdev->host->hostt; struct scsi_device *tmp_sdev; if (!sht->track_queue_depth) @@ -840,7 +840,7 @@ static enum scsi_disposition scsi_try_host_reset(struct scsi_cmnd *scmd) unsigned long flags; enum scsi_disposition rtn; struct Scsi_Host *host = scmd->device->host; - struct scsi_host_template *hostt = host->hostt; + const struct scsi_host_template *hostt = host->hostt; SCSI_LOG_ERROR_RECOVERY(3, shost_printk(KERN_INFO, host, "Snd Host RST\n")); @@ -870,7 +870,7 @@ static enum scsi_disposition scsi_try_bus_reset(struct scsi_cmnd *scmd) unsigned long flags; enum scsi_disposition rtn; struct Scsi_Host *host = scmd->device->host; - struct scsi_host_template *hostt = host->hostt; + const struct scsi_host_template *hostt = host->hostt; SCSI_LOG_ERROR_RECOVERY(3, scmd_printk(KERN_INFO, scmd, "%s: Snd Bus RST\n", __func__)); @@ -912,7 +912,7 @@ static enum scsi_disposition scsi_try_target_reset(struct scsi_cmnd *scmd) unsigned long flags; enum scsi_disposition rtn; struct Scsi_Host *host = scmd->device->host; - struct scsi_host_template *hostt = host->hostt; + const struct scsi_host_template *hostt = host->hostt; if (!hostt->eh_target_reset_handler) return FAILED; @@ -941,7 +941,7 @@ static enum scsi_disposition scsi_try_target_reset(struct scsi_cmnd *scmd) static enum scsi_disposition scsi_try_bus_device_reset(struct scsi_cmnd *scmd) { enum scsi_disposition rtn; - struct scsi_host_template *hostt = scmd->device->host->hostt; + const struct scsi_host_template *hostt = scmd->device->host->hostt; if (!hostt->eh_device_reset_handler) return FAILED; @@ -970,7 +970,7 @@ static enum scsi_disposition scsi_try_bus_device_reset(struct scsi_cmnd *scmd) * link down on FibreChannel) */ static enum scsi_disposition -scsi_try_to_abort_cmd(struct scsi_host_template *hostt, struct scsi_cmnd *scmd) +scsi_try_to_abort_cmd(const struct scsi_host_template *hostt, struct scsi_cmnd *scmd) { if (!hostt->eh_abort_handler) return FAILED; diff --git a/drivers/scsi/scsi_sysfs.c b/drivers/scsi/scsi_sysfs.c index ee28f73af4d4..603e8fcfcb8a 100644 --- a/drivers/scsi/scsi_sysfs.c +++ b/drivers/scsi/scsi_sysfs.c @@ -296,7 +296,7 @@ store_host_reset(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) { struct Scsi_Host *shost = class_to_shost(dev); - struct scsi_host_template *sht = shost->hostt; + const struct scsi_host_template *sht = shost->hostt; int ret = -EINVAL; int type; @@ -1025,7 +1025,7 @@ sdev_store_queue_depth(struct device *dev, struct device_attribute *attr, { int depth, retval; struct scsi_device *sdev = to_scsi_device(dev); - struct scsi_host_template *sht = sdev->host->hostt; + const struct scsi_host_template *sht = sdev->host->hostt; if (!sht->change_queue_depth) return -EINVAL; @@ -1606,7 +1606,7 @@ void scsi_sysfs_device_initialize(struct scsi_device *sdev) { unsigned long flags; struct Scsi_Host *shost = sdev->host; - struct scsi_host_template *hostt = shost->hostt; + const struct scsi_host_template *hostt = shost->hostt; struct scsi_target *starget = sdev->sdev_target; device_initialize(&sdev->sdev_gendev); From patchwork Wed Mar 22 19:53:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184550 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 373B7C6FD1F for ; Wed, 22 Mar 2023 19:55:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229732AbjCVTzr (ORCPT ); Wed, 22 Mar 2023 15:55:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229620AbjCVTzq (ORCPT ); Wed, 22 Mar 2023 15:55:46 -0400 Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com [209.85.216.48]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E13395504C for ; Wed, 22 Mar 2023 12:55:45 -0700 (PDT) Received: by mail-pj1-f48.google.com with SMTP id a16so15155607pjs.4 for ; Wed, 22 Mar 2023 12:55:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679514945; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bmHV3StCAM30QjSMn9jCJqoD98hC11B1P6yD15Wd/MM=; b=QQj76RBLfjwNZWKCmahRKgvMfVju8pMA4O6LRCd6ESyW5v3ksorltU4WZfX84eRtl6 jVjulb02pxFYiTxYdsyRpfWrOvrhR5YEG59buBa146Xa3wYN6I6Uf0aoHdqQhyHkZxzy YyVvaUk7nq8r3Rn49las7KVLzrl0/RV5c6LFGAFd2IpszEd+A66tiz2aCQEgtiO5V6DE OrAwqd70/CFSNxtzMz0/CdbN4IsGnjnf6qoDlqOafooULjMQhbgdwBfNG4rIaxbOzrCN XeYPPwCe59lcFuoOICmDP+y0qcY89NTxy6N0wh2+Dy0WoKPURpRLcR84QPJZIGuqdW7H IlaQ== X-Gm-Message-State: AO0yUKUlOohIsiTIOhj9ag191L2SasdSxiNHIMOkmf1OdTEZonqPMLU8 BmM36ROBqtF+6u2udHSWhCg= X-Google-Smtp-Source: AK7set+CM0jG+ntRQ1Pg+9zrzsJP2BqXjIz3D/QfjMWj4a09soZhaLMYQ4d3b2z0TMoacBFm0LGB7Q== X-Received: by 2002:a17:90b:1e4a:b0:23f:3f9c:7878 with SMTP id pi10-20020a17090b1e4a00b0023f3f9c7878mr4529163pjb.2.1679514944865; Wed, 22 Mar 2023 12:55:44 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.55.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:55:44 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , Benjamin Block , John Garry , Christoph Hellwig , Ming Lei , Hannes Reinecke , Mike Christie , Jonathan Corbet , "James E.J. Bottomley" , Jens Axboe Subject: [PATCH v3 03/80] scsi: core: Declare SCSI host template pointer members const Date: Wed, 22 Mar 2023 12:53:58 -0700 Message-Id: <20230322195515.1267197-4-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Declare the SCSI host template pointer members const and also the remaining SCSI host template pointers in the SCSI core. Reviewed-by: Benjamin Block Reviewed-by: John Garry Cc: Christoph Hellwig Cc: Ming Lei Cc: Hannes Reinecke Cc: Mike Christie Signed-off-by: Bart Van Assche --- Documentation/scsi/scsi_mid_low_api.rst | 2 +- drivers/scsi/hosts.c | 4 ++-- include/linux/raid_class.h | 2 +- include/scsi/libfc.h | 2 +- include/scsi/scsi_host.h | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Documentation/scsi/scsi_mid_low_api.rst b/Documentation/scsi/scsi_mid_low_api.rst index a8c5bd15a440..6fa3a6279501 100644 --- a/Documentation/scsi/scsi_mid_low_api.rst +++ b/Documentation/scsi/scsi_mid_low_api.rst @@ -436,7 +436,7 @@ Details:: * * Defined in: drivers/scsi/hosts.c . **/ - struct Scsi_Host * scsi_host_alloc(struct scsi_host_template * sht, + struct Scsi_Host * scsi_host_alloc(const struct scsi_host_template * sht, int privsize) diff --git a/drivers/scsi/hosts.c b/drivers/scsi/hosts.c index f7f62e56afca..0ac3289f6b09 100644 --- a/drivers/scsi/hosts.c +++ b/drivers/scsi/hosts.c @@ -219,7 +219,7 @@ EXPORT_SYMBOL(scsi_remove_host); int scsi_add_host_with_dma(struct Scsi_Host *shost, struct device *dev, struct device *dma_dev) { - struct scsi_host_template *sht = shost->hostt; + const struct scsi_host_template *sht = shost->hostt; int error = -EINVAL; shost_printk(KERN_INFO, shost, "%s\n", @@ -392,7 +392,7 @@ static struct device_type scsi_host_type = { * Return value: * Pointer to a new Scsi_Host **/ -struct Scsi_Host *scsi_host_alloc(struct scsi_host_template *sht, int privsize) +struct Scsi_Host *scsi_host_alloc(const struct scsi_host_template *sht, int privsize) { struct Scsi_Host *shost; int index; diff --git a/include/linux/raid_class.h b/include/linux/raid_class.h index 5cdfcb873a8f..6a9b177d5c41 100644 --- a/include/linux/raid_class.h +++ b/include/linux/raid_class.h @@ -11,7 +11,7 @@ struct raid_template { }; struct raid_function_template { - void *cookie; + const void *cookie; int (*is_raid)(struct device *); void (*get_resync)(struct device *); void (*get_state)(struct device *); diff --git a/include/scsi/libfc.h b/include/scsi/libfc.h index 6e29e1719db1..eca6fd42d7f7 100644 --- a/include/scsi/libfc.h +++ b/include/scsi/libfc.h @@ -866,7 +866,7 @@ static inline void *lport_priv(const struct fc_lport *lport) * Returns: libfc lport */ static inline struct fc_lport * -libfc_host_alloc(struct scsi_host_template *sht, int priv_size) +libfc_host_alloc(const struct scsi_host_template *sht, int priv_size) { struct fc_lport *lport; struct Scsi_Host *shost; diff --git a/include/scsi/scsi_host.h b/include/scsi/scsi_host.h index 587cc767bb67..0f29799efa02 100644 --- a/include/scsi/scsi_host.h +++ b/include/scsi/scsi_host.h @@ -554,7 +554,7 @@ struct Scsi_Host { struct completion * eh_action; /* Wait for specific actions on the host. */ wait_queue_head_t host_wait; - struct scsi_host_template *hostt; + const struct scsi_host_template *hostt; struct scsi_transport_template *transportt; struct kref tagset_refcnt; @@ -747,7 +747,7 @@ static inline int scsi_host_in_recovery(struct Scsi_Host *shost) extern int scsi_queue_work(struct Scsi_Host *, struct work_struct *); extern void scsi_flush_work(struct Scsi_Host *); -extern struct Scsi_Host *scsi_host_alloc(struct scsi_host_template *, int); +extern struct Scsi_Host *scsi_host_alloc(const struct scsi_host_template *, int); extern int __must_check scsi_add_host_with_dma(struct Scsi_Host *, struct device *, struct device *); From patchwork Wed Mar 22 19:53:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184555 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2E226C76196 for ; Wed, 22 Mar 2023 19:56:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230099AbjCVT4r (ORCPT ); Wed, 22 Mar 2023 15:56:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230025AbjCVT4h (ORCPT ); Wed, 22 Mar 2023 15:56:37 -0400 Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BDB955F6F4 for ; Wed, 22 Mar 2023 12:56:23 -0700 (PDT) Received: by mail-pl1-f179.google.com with SMTP id o11so20309324ple.1 for ; Wed, 22 Mar 2023 12:56:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679514983; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=lIkCHne8pXVMSKeLVp69cnplh/G8wecrTe/DfbOzeOc=; b=qS3nm86vLuQ7O/ggMnuI8X35vAbS4q1Fr+xv/sEKclRRRZKTQ5cE3wwam7ka8tHItg ewjyr35VBqpWcGYDk+S5da9OtgI3EcBIEA3ciW0eTO+B/RytD32PckLJT26MxPmnL9dt HFNCgcbKvLdd/2i7ntleexQiLu7X1xKXvQchMyZGiVzFBsW597dX8OsPM6uok53fc5rF iTNse7qKeetV9OdzE1RJsDGVA8q6rmXz4Z/6Ju+UgHv4tq/RNdYe2EGH0GaPyF8HnJZi yHzjzcQlgNCnuoE/hvl+/QhkPomvS78yd9ugF04pW/QKUko1FcmTNzjwpD6H3jOQ5WLL kUtA== X-Gm-Message-State: AO0yUKWheCLtWKjjSxDS8TgJlZhFjBIjsgnu3RyGBiOQFcgDTkg1qAHH 2b+d2z5OjmhQNjm1+zz54gs0VqIfg80= X-Google-Smtp-Source: AK7set+z50GQKNNnqY1zXT5vKfRU6xHkWUkvgq4MF/Nx6WHlr1ADr+FVj2V0OBPsnXQk/N0zCIcEAA== X-Received: by 2002:a17:90b:3b88:b0:23f:a667:4efa with SMTP id pc8-20020a17090b3b8800b0023fa6674efamr5030908pjb.15.1679514982868; Wed, 22 Mar 2023 12:56:22 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.56.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:56:21 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , Linus Walleij , Damien Le Moal , Serge Semin , John Garry , Jon Hunter , Christoph Hellwig , Ming Lei , Hannes Reinecke , Mike Christie , Shawn Guo , Sascha Hauer , Matthias Brugger , Hans de Goede , Jens Axboe , Patrice Chotard , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Thierry Reding , Viresh Kumar , Mikael Pettersson , Ondrej Zary , Sergey Shtylyov Subject: [PATCH v3 04/80] ata: Declare SCSI host templates const Date: Wed, 22 Mar 2023 12:53:59 -0700 Message-Id: <20230322195515.1267197-5-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that ATA host templates are not modified. Reviewed-by: Linus Walleij Acked-by: Damien Le Moal Reviewed-by: Serge Semin (for DWC AHCI SATA) Reviewed-by: John Garry Reviewed-by: Jon Hunter (for Tegra) Cc: Christoph Hellwig Cc: Ming Lei Cc: Hannes Reinecke Cc: John Garry Cc: Mike Christie Signed-off-by: Bart Van Assche --- drivers/ata/acard-ahci.c | 2 +- drivers/ata/ahci.c | 2 +- drivers/ata/ahci.h | 2 +- drivers/ata/ahci_brcm.c | 2 +- drivers/ata/ahci_ceva.c | 2 +- drivers/ata/ahci_da850.c | 2 +- drivers/ata/ahci_dm816.c | 2 +- drivers/ata/ahci_dwc.c | 2 +- drivers/ata/ahci_imx.c | 2 +- drivers/ata/ahci_mtk.c | 2 +- drivers/ata/ahci_mvebu.c | 2 +- drivers/ata/ahci_platform.c | 2 +- drivers/ata/ahci_qoriq.c | 2 +- drivers/ata/ahci_seattle.c | 2 +- drivers/ata/ahci_st.c | 2 +- drivers/ata/ahci_sunxi.c | 2 +- drivers/ata/ahci_tegra.c | 2 +- drivers/ata/ahci_xgene.c | 2 +- drivers/ata/ata_generic.c | 2 +- drivers/ata/ata_piix.c | 6 +++--- drivers/ata/libahci.c | 4 ++-- drivers/ata/libahci_platform.c | 2 +- drivers/ata/libata-core.c | 4 ++-- drivers/ata/libata-scsi.c | 2 +- drivers/ata/libata-sff.c | 8 ++++---- drivers/ata/libata.h | 2 +- drivers/ata/pata_acpi.c | 2 +- drivers/ata/pata_ali.c | 2 +- drivers/ata/pata_amd.c | 2 +- drivers/ata/pata_arasan_cf.c | 2 +- drivers/ata/pata_artop.c | 2 +- drivers/ata/pata_atiixp.c | 2 +- drivers/ata/pata_atp867x.c | 2 +- drivers/ata/pata_buddha.c | 2 +- drivers/ata/pata_cmd640.c | 2 +- drivers/ata/pata_cmd64x.c | 2 +- drivers/ata/pata_cs5520.c | 2 +- drivers/ata/pata_cs5530.c | 2 +- drivers/ata/pata_cs5535.c | 2 +- drivers/ata/pata_cs5536.c | 2 +- drivers/ata/pata_cypress.c | 2 +- drivers/ata/pata_efar.c | 2 +- drivers/ata/pata_ep93xx.c | 2 +- drivers/ata/pata_falcon.c | 2 +- drivers/ata/pata_ftide010.c | 2 +- drivers/ata/pata_gayle.c | 2 +- drivers/ata/pata_hpt366.c | 2 +- drivers/ata/pata_hpt37x.c | 2 +- drivers/ata/pata_hpt3x2n.c | 2 +- drivers/ata/pata_hpt3x3.c | 2 +- drivers/ata/pata_icside.c | 2 +- drivers/ata/pata_imx.c | 2 +- drivers/ata/pata_isapnp.c | 2 +- drivers/ata/pata_it8213.c | 2 +- drivers/ata/pata_it821x.c | 2 +- drivers/ata/pata_ixp4xx_cf.c | 2 +- drivers/ata/pata_jmicron.c | 2 +- drivers/ata/pata_legacy.c | 2 +- drivers/ata/pata_macio.c | 2 +- drivers/ata/pata_marvell.c | 2 +- drivers/ata/pata_mpc52xx.c | 2 +- drivers/ata/pata_mpiix.c | 2 +- drivers/ata/pata_netcell.c | 2 +- drivers/ata/pata_ninja32.c | 2 +- drivers/ata/pata_ns87410.c | 2 +- drivers/ata/pata_ns87415.c | 2 +- drivers/ata/pata_octeon_cf.c | 2 +- drivers/ata/pata_of_platform.c | 2 +- drivers/ata/pata_oldpiix.c | 2 +- drivers/ata/pata_opti.c | 2 +- drivers/ata/pata_optidma.c | 2 +- drivers/ata/pata_parport/pata_parport.c | 2 +- drivers/ata/pata_pcmcia.c | 2 +- drivers/ata/pata_pdc2027x.c | 2 +- drivers/ata/pata_pdc202xx_old.c | 2 +- drivers/ata/pata_piccolo.c | 2 +- drivers/ata/pata_platform.c | 4 ++-- drivers/ata/pata_pxa.c | 2 +- drivers/ata/pata_radisys.c | 2 +- drivers/ata/pata_rb532_cf.c | 2 +- drivers/ata/pata_rdc.c | 2 +- drivers/ata/pata_rz1000.c | 2 +- drivers/ata/pata_sc1200.c | 2 +- drivers/ata/pata_sch.c | 2 +- drivers/ata/pata_serverworks.c | 6 +++--- drivers/ata/pata_sil680.c | 2 +- drivers/ata/pata_sis.c | 2 +- drivers/ata/pata_sl82c105.c | 2 +- drivers/ata/pata_triflex.c | 2 +- drivers/ata/pata_via.c | 2 +- drivers/ata/pdc_adma.c | 2 +- drivers/ata/sata_dwc_460ex.c | 2 +- drivers/ata/sata_fsl.c | 2 +- drivers/ata/sata_highbank.c | 2 +- drivers/ata/sata_inic162x.c | 2 +- drivers/ata/sata_mv.c | 4 ++-- drivers/ata/sata_nv.c | 8 ++++---- drivers/ata/sata_promise.c | 2 +- drivers/ata/sata_qstor.c | 2 +- drivers/ata/sata_rcar.c | 2 +- drivers/ata/sata_sil.c | 2 +- drivers/ata/sata_sil24.c | 2 +- drivers/ata/sata_sis.c | 2 +- drivers/ata/sata_svw.c | 2 +- drivers/ata/sata_sx4.c | 2 +- drivers/ata/sata_uli.c | 2 +- drivers/ata/sata_via.c | 2 +- drivers/ata/sata_vsc.c | 2 +- include/linux/ahci_platform.h | 2 +- include/linux/ata_platform.h | 2 +- include/linux/libata.h | 10 +++++----- 111 files changed, 129 insertions(+), 129 deletions(-) diff --git a/drivers/ata/acard-ahci.c b/drivers/ata/acard-ahci.c index 993eadd173da..547f56341705 100644 --- a/drivers/ata/acard-ahci.c +++ b/drivers/ata/acard-ahci.c @@ -66,7 +66,7 @@ static int acard_ahci_pci_device_suspend(struct pci_dev *pdev, pm_message_t mesg static int acard_ahci_pci_device_resume(struct pci_dev *pdev); #endif -static struct scsi_host_template acard_ahci_sht = { +static const struct scsi_host_template acard_ahci_sht = { AHCI_SHT("acard-ahci"), }; diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c index 14a1c0d14916..addba109406b 100644 --- a/drivers/ata/ahci.c +++ b/drivers/ata/ahci.c @@ -101,7 +101,7 @@ static int ahci_pci_device_resume(struct device *dev); #endif #endif /* CONFIG_PM */ -static struct scsi_host_template ahci_sht = { +static const struct scsi_host_template ahci_sht = { AHCI_SHT("ahci"), }; diff --git a/drivers/ata/ahci.h b/drivers/ata/ahci.h index ff8e6ae1c636..4bae95b06ae3 100644 --- a/drivers/ata/ahci.h +++ b/drivers/ata/ahci.h @@ -430,7 +430,7 @@ void ahci_set_em_messages(struct ahci_host_priv *hpriv, struct ata_port_info *pi); int ahci_reset_em(struct ata_host *host); void ahci_print_info(struct ata_host *host, const char *scc_s); -int ahci_host_activate(struct ata_host *host, struct scsi_host_template *sht); +int ahci_host_activate(struct ata_host *host, const struct scsi_host_template *sht); void ahci_error_handler(struct ata_port *ap); u32 ahci_handle_port_intr(struct ata_host *host, u32 irq_masked); diff --git a/drivers/ata/ahci_brcm.c b/drivers/ata/ahci_brcm.c index 6f216eb25610..4e3dc2b6d67f 100644 --- a/drivers/ata/ahci_brcm.c +++ b/drivers/ata/ahci_brcm.c @@ -417,7 +417,7 @@ static int __maybe_unused brcm_ahci_resume(struct device *dev) return ret; } -static struct scsi_host_template ahci_platform_sht = { +static const struct scsi_host_template ahci_platform_sht = { AHCI_SHT(DRV_NAME), }; diff --git a/drivers/ata/ahci_ceva.c b/drivers/ata/ahci_ceva.c index cb24ecf36faf..bc027468decb 100644 --- a/drivers/ata/ahci_ceva.c +++ b/drivers/ata/ahci_ceva.c @@ -185,7 +185,7 @@ static void ahci_ceva_setup(struct ahci_host_priv *hpriv) } } -static struct scsi_host_template ahci_platform_sht = { +static const struct scsi_host_template ahci_platform_sht = { AHCI_SHT(DRV_NAME), }; diff --git a/drivers/ata/ahci_da850.c b/drivers/ata/ahci_da850.c index dc8a019b8340..ca0924dc5bd2 100644 --- a/drivers/ata/ahci_da850.c +++ b/drivers/ata/ahci_da850.c @@ -153,7 +153,7 @@ static const struct ata_port_info ahci_da850_port_info = { .port_ops = &ahci_da850_port_ops, }; -static struct scsi_host_template ahci_platform_sht = { +static const struct scsi_host_template ahci_platform_sht = { AHCI_SHT(DRV_NAME), }; diff --git a/drivers/ata/ahci_dm816.c b/drivers/ata/ahci_dm816.c index d26efcd20f64..b08547b877a1 100644 --- a/drivers/ata/ahci_dm816.c +++ b/drivers/ata/ahci_dm816.c @@ -134,7 +134,7 @@ static const struct ata_port_info ahci_dm816_port_info = { .port_ops = &ahci_dm816_port_ops, }; -static struct scsi_host_template ahci_dm816_platform_sht = { +static const struct scsi_host_template ahci_dm816_platform_sht = { AHCI_SHT(AHCI_DM816_DRV_NAME), }; diff --git a/drivers/ata/ahci_dwc.c b/drivers/ata/ahci_dwc.c index 8fb66860db31..4bfbb09cdc02 100644 --- a/drivers/ata/ahci_dwc.c +++ b/drivers/ata/ahci_dwc.c @@ -398,7 +398,7 @@ static const struct ata_port_info ahci_dwc_port_info = { .port_ops = &ahci_dwc_port_ops, }; -static struct scsi_host_template ahci_dwc_scsi_info = { +static const struct scsi_host_template ahci_dwc_scsi_info = { AHCI_SHT(DRV_NAME), }; diff --git a/drivers/ata/ahci_imx.c b/drivers/ata/ahci_imx.c index a950767f7948..1c1139dae29a 100644 --- a/drivers/ata/ahci_imx.c +++ b/drivers/ata/ahci_imx.c @@ -979,7 +979,7 @@ static u32 imx_ahci_parse_props(struct device *dev, return reg_value; } -static struct scsi_host_template ahci_platform_sht = { +static const struct scsi_host_template ahci_platform_sht = { AHCI_SHT(DRV_NAME), }; diff --git a/drivers/ata/ahci_mtk.c b/drivers/ata/ahci_mtk.c index c056378e3e72..f6a75341256f 100644 --- a/drivers/ata/ahci_mtk.c +++ b/drivers/ata/ahci_mtk.c @@ -37,7 +37,7 @@ static const struct ata_port_info ahci_port_info = { .port_ops = &ahci_platform_ops, }; -static struct scsi_host_template ahci_platform_sht = { +static const struct scsi_host_template ahci_platform_sht = { AHCI_SHT(DRV_NAME), }; diff --git a/drivers/ata/ahci_mvebu.c b/drivers/ata/ahci_mvebu.c index 22ecc4f3ae79..596cf017f427 100644 --- a/drivers/ata/ahci_mvebu.c +++ b/drivers/ata/ahci_mvebu.c @@ -178,7 +178,7 @@ static const struct ata_port_info ahci_mvebu_port_info = { .port_ops = &ahci_platform_ops, }; -static struct scsi_host_template ahci_platform_sht = { +static const struct scsi_host_template ahci_platform_sht = { AHCI_SHT(DRV_NAME), }; diff --git a/drivers/ata/ahci_platform.c b/drivers/ata/ahci_platform.c index 8f5572a9f8f1..299ee686ac49 100644 --- a/drivers/ata/ahci_platform.c +++ b/drivers/ata/ahci_platform.c @@ -36,7 +36,7 @@ static const struct ata_port_info ahci_port_info_nolpm = { .port_ops = &ahci_platform_ops, }; -static struct scsi_host_template ahci_platform_sht = { +static const struct scsi_host_template ahci_platform_sht = { AHCI_SHT(DRV_NAME), }; diff --git a/drivers/ata/ahci_qoriq.c b/drivers/ata/ahci_qoriq.c index 9cf9bf36a874..0ba764d283c8 100644 --- a/drivers/ata/ahci_qoriq.c +++ b/drivers/ata/ahci_qoriq.c @@ -159,7 +159,7 @@ static const struct ata_port_info ahci_qoriq_port_info = { .port_ops = &ahci_qoriq_ops, }; -static struct scsi_host_template ahci_qoriq_sht = { +static const struct scsi_host_template ahci_qoriq_sht = { AHCI_SHT(DRV_NAME), }; diff --git a/drivers/ata/ahci_seattle.c b/drivers/ata/ahci_seattle.c index ced12705ed9d..9eda7bbd2151 100644 --- a/drivers/ata/ahci_seattle.c +++ b/drivers/ata/ahci_seattle.c @@ -72,7 +72,7 @@ static const struct ata_port_info ahci_port_seattle_info = { .port_ops = &ahci_seattle_ops, }; -static struct scsi_host_template ahci_platform_sht = { +static const struct scsi_host_template ahci_platform_sht = { AHCI_SHT(DRV_NAME), }; diff --git a/drivers/ata/ahci_st.c b/drivers/ata/ahci_st.c index 8607b68eee53..f2c1edb36986 100644 --- a/drivers/ata/ahci_st.c +++ b/drivers/ata/ahci_st.c @@ -138,7 +138,7 @@ static const struct ata_port_info st_ahci_port_info = { .port_ops = &st_ahci_port_ops, }; -static struct scsi_host_template ahci_platform_sht = { +static const struct scsi_host_template ahci_platform_sht = { AHCI_SHT(DRV_NAME), }; diff --git a/drivers/ata/ahci_sunxi.c b/drivers/ata/ahci_sunxi.c index c7273c1cb0c7..076c12b4ba08 100644 --- a/drivers/ata/ahci_sunxi.c +++ b/drivers/ata/ahci_sunxi.c @@ -206,7 +206,7 @@ static const struct ata_port_info ahci_sunxi_port_info = { .port_ops = &ahci_platform_ops, }; -static struct scsi_host_template ahci_platform_sht = { +static const struct scsi_host_template ahci_platform_sht = { AHCI_SHT(DRV_NAME), }; diff --git a/drivers/ata/ahci_tegra.c b/drivers/ata/ahci_tegra.c index 4fb94db1217d..8e5e2b359f2d 100644 --- a/drivers/ata/ahci_tegra.c +++ b/drivers/ata/ahci_tegra.c @@ -506,7 +506,7 @@ static const struct of_device_id tegra_ahci_of_match[] = { }; MODULE_DEVICE_TABLE(of, tegra_ahci_of_match); -static struct scsi_host_template ahci_platform_sht = { +static const struct scsi_host_template ahci_platform_sht = { AHCI_SHT(DRV_NAME), }; diff --git a/drivers/ata/ahci_xgene.c b/drivers/ata/ahci_xgene.c index 1e08704d5117..83f5ff54ef5b 100644 --- a/drivers/ata/ahci_xgene.c +++ b/drivers/ata/ahci_xgene.c @@ -710,7 +710,7 @@ static int xgene_ahci_mux_select(struct xgene_ahci_context *ctx) return val & CFG_SATA_ENET_SELECT_MASK ? -1 : 0; } -static struct scsi_host_template ahci_platform_sht = { +static const struct scsi_host_template ahci_platform_sht = { AHCI_SHT(DRV_NAME), }; diff --git a/drivers/ata/ata_generic.c b/drivers/ata/ata_generic.c index 20a32e4d501d..2f57ec00ab82 100644 --- a/drivers/ata/ata_generic.c +++ b/drivers/ata/ata_generic.c @@ -95,7 +95,7 @@ static int generic_set_mode(struct ata_link *link, struct ata_device **unused) return 0; } -static struct scsi_host_template generic_sht = { +static const struct scsi_host_template generic_sht = { ATA_BMDMA_SHT(DRV_NAME), }; diff --git a/drivers/ata/ata_piix.c b/drivers/ata/ata_piix.c index ade5e894563b..ec3c5bd1f813 100644 --- a/drivers/ata/ata_piix.c +++ b/drivers/ata/ata_piix.c @@ -1059,7 +1059,7 @@ static u8 piix_vmw_bmdma_status(struct ata_port *ap) return ata_bmdma_status(ap) & ~ATA_DMA_ERR; } -static struct scsi_host_template piix_sht = { +static const struct scsi_host_template piix_sht = { ATA_BMDMA_SHT(DRV_NAME), }; @@ -1095,7 +1095,7 @@ static struct attribute *piix_sidpr_shost_attrs[] = { ATTRIBUTE_GROUPS(piix_sidpr_shost); -static struct scsi_host_template piix_sidpr_sht = { +static const struct scsi_host_template piix_sidpr_sht = { ATA_BMDMA_SHT(DRV_NAME), .shost_groups = piix_sidpr_shost_groups, }; @@ -1645,7 +1645,7 @@ static int piix_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) struct device *dev = &pdev->dev; struct ata_port_info port_info[2]; const struct ata_port_info *ppi[] = { &port_info[0], &port_info[1] }; - struct scsi_host_template *sht = &piix_sht; + const struct scsi_host_template *sht = &piix_sht; unsigned long port_flags; struct ata_host *host; struct piix_host_priv *hpriv; diff --git a/drivers/ata/libahci.c b/drivers/ata/libahci.c index 8f216de76648..9c2cb6cbea76 100644 --- a/drivers/ata/libahci.c +++ b/drivers/ata/libahci.c @@ -2692,7 +2692,7 @@ void ahci_set_em_messages(struct ahci_host_priv *hpriv, EXPORT_SYMBOL_GPL(ahci_set_em_messages); static int ahci_host_activate_multi_irqs(struct ata_host *host, - struct scsi_host_template *sht) + const struct scsi_host_template *sht) { struct ahci_host_priv *hpriv = host->private_data; int i, rc; @@ -2736,7 +2736,7 @@ static int ahci_host_activate_multi_irqs(struct ata_host *host, * RETURNS: * 0 on success, -errno otherwise. */ -int ahci_host_activate(struct ata_host *host, struct scsi_host_template *sht) +int ahci_host_activate(struct ata_host *host, const struct scsi_host_template *sht) { struct ahci_host_priv *hpriv = host->private_data; int irq = hpriv->irq; diff --git a/drivers/ata/libahci_platform.c b/drivers/ata/libahci_platform.c index b9e336bacf17..d6c3a6ffb0b3 100644 --- a/drivers/ata/libahci_platform.c +++ b/drivers/ata/libahci_platform.c @@ -680,7 +680,7 @@ EXPORT_SYMBOL_GPL(ahci_platform_get_resources); int ahci_platform_init_host(struct platform_device *pdev, struct ahci_host_priv *hpriv, const struct ata_port_info *pi_template, - struct scsi_host_template *sht) + const struct scsi_host_template *sht) { struct device *dev = &pdev->dev; struct ata_port_info pi = *pi_template; diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index 14c17c3bda4e..8bf612bdd61a 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c @@ -5775,7 +5775,7 @@ static void async_port_probe(void *data, async_cookie_t cookie) * RETURNS: * 0 on success, -errno otherwise. */ -int ata_host_register(struct ata_host *host, struct scsi_host_template *sht) +int ata_host_register(struct ata_host *host, const struct scsi_host_template *sht) { int i, rc; @@ -5883,7 +5883,7 @@ EXPORT_SYMBOL_GPL(ata_host_register); */ int ata_host_activate(struct ata_host *host, int irq, irq_handler_t irq_handler, unsigned long irq_flags, - struct scsi_host_template *sht) + const struct scsi_host_template *sht) { int i, rc; char *irq_desc; diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c index e093c7a7deeb..7bb12deab70c 100644 --- a/drivers/ata/libata-scsi.c +++ b/drivers/ata/libata-scsi.c @@ -4186,7 +4186,7 @@ void ata_scsi_simulate(struct ata_device *dev, struct scsi_cmnd *cmd) scsi_done(cmd); } -int ata_scsi_add_hosts(struct ata_host *host, struct scsi_host_template *sht) +int ata_scsi_add_hosts(struct ata_host *host, const struct scsi_host_template *sht) { int i, rc; diff --git a/drivers/ata/libata-sff.c b/drivers/ata/libata-sff.c index cd82d3b5ed14..9d28badfe41d 100644 --- a/drivers/ata/libata-sff.c +++ b/drivers/ata/libata-sff.c @@ -2281,7 +2281,7 @@ EXPORT_SYMBOL_GPL(ata_pci_sff_prepare_host); */ int ata_pci_sff_activate_host(struct ata_host *host, irq_handler_t irq_handler, - struct scsi_host_template *sht) + const struct scsi_host_template *sht) { struct device *dev = host->dev; struct pci_dev *pdev = to_pci_dev(dev); @@ -2378,7 +2378,7 @@ static const struct ata_port_info *ata_sff_find_valid_pi( static int ata_pci_init_one(struct pci_dev *pdev, const struct ata_port_info * const *ppi, - struct scsi_host_template *sht, void *host_priv, + const struct scsi_host_template *sht, void *host_priv, int hflags, bool bmdma) { struct device *dev = &pdev->dev; @@ -2452,7 +2452,7 @@ static int ata_pci_init_one(struct pci_dev *pdev, */ int ata_pci_sff_init_one(struct pci_dev *pdev, const struct ata_port_info * const *ppi, - struct scsi_host_template *sht, void *host_priv, int hflag) + const struct scsi_host_template *sht, void *host_priv, int hflag) { return ata_pci_init_one(pdev, ppi, sht, host_priv, hflag, 0); } @@ -3175,7 +3175,7 @@ EXPORT_SYMBOL_GPL(ata_pci_bmdma_prepare_host); */ int ata_pci_bmdma_init_one(struct pci_dev *pdev, const struct ata_port_info * const * ppi, - struct scsi_host_template *sht, void *host_priv, + const struct scsi_host_template *sht, void *host_priv, int hflags) { return ata_pci_init_one(pdev, ppi, sht, host_priv, hflags, 1); diff --git a/drivers/ata/libata.h b/drivers/ata/libata.h index 2cd6124a01e8..926d0d33cd29 100644 --- a/drivers/ata/libata.h +++ b/drivers/ata/libata.h @@ -111,7 +111,7 @@ static inline void ata_acpi_bind_dev(struct ata_device *dev) {} extern struct ata_device *ata_scsi_find_dev(struct ata_port *ap, const struct scsi_device *scsidev); extern int ata_scsi_add_hosts(struct ata_host *host, - struct scsi_host_template *sht); + const struct scsi_host_template *sht); extern void ata_scsi_scan_host(struct ata_port *ap, int sync); extern int ata_scsi_offline_dev(struct ata_device *dev); extern bool ata_scsi_sense_is_valid(u8 sk, u8 asc, u8 ascq); diff --git a/drivers/ata/pata_acpi.c b/drivers/ata/pata_acpi.c index f8706ee427d2..ab38871b5e00 100644 --- a/drivers/ata/pata_acpi.c +++ b/drivers/ata/pata_acpi.c @@ -205,7 +205,7 @@ static int pacpi_port_start(struct ata_port *ap) return ata_bmdma_port_start(ap); } -static struct scsi_host_template pacpi_sht = { +static const struct scsi_host_template pacpi_sht = { ATA_BMDMA_SHT(DRV_NAME), }; diff --git a/drivers/ata/pata_ali.c b/drivers/ata/pata_ali.c index 76ad0e73fe2a..bb790edd6036 100644 --- a/drivers/ata/pata_ali.c +++ b/drivers/ata/pata_ali.c @@ -355,7 +355,7 @@ static void ali_c2_c3_postreset(struct ata_link *link, unsigned int *classes) ata_sff_postreset(link, classes); } -static struct scsi_host_template ali_sht = { +static const struct scsi_host_template ali_sht = { ATA_BMDMA_SHT(DRV_NAME), }; diff --git a/drivers/ata/pata_amd.c b/drivers/ata/pata_amd.c index f216f9d7b9ec..5b02b89748b7 100644 --- a/drivers/ata/pata_amd.c +++ b/drivers/ata/pata_amd.c @@ -388,7 +388,7 @@ static void nv_host_stop(struct ata_host *host) pci_write_config_dword(to_pci_dev(host->dev), 0x60, udma); } -static struct scsi_host_template amd_sht = { +static const struct scsi_host_template amd_sht = { ATA_BMDMA_SHT(DRV_NAME), }; diff --git a/drivers/ata/pata_arasan_cf.c b/drivers/ata/pata_arasan_cf.c index e89617ed9175..6ab294322e79 100644 --- a/drivers/ata/pata_arasan_cf.c +++ b/drivers/ata/pata_arasan_cf.c @@ -218,7 +218,7 @@ struct arasan_cf_dev { struct ata_queued_cmd *qc; }; -static struct scsi_host_template arasan_cf_sht = { +static const struct scsi_host_template arasan_cf_sht = { ATA_BASE_SHT(DRIVER_NAME), .dma_boundary = 0xFFFFFFFFUL, }; diff --git a/drivers/ata/pata_artop.c b/drivers/ata/pata_artop.c index 20a8f31a3f57..40544282f455 100644 --- a/drivers/ata/pata_artop.c +++ b/drivers/ata/pata_artop.c @@ -292,7 +292,7 @@ static int artop6210_qc_defer(struct ata_queued_cmd *qc) return 0; } -static struct scsi_host_template artop_sht = { +static const struct scsi_host_template artop_sht = { ATA_BMDMA_SHT(DRV_NAME), }; diff --git a/drivers/ata/pata_atiixp.c b/drivers/ata/pata_atiixp.c index efdb94cff68b..8c5cc803aab3 100644 --- a/drivers/ata/pata_atiixp.c +++ b/drivers/ata/pata_atiixp.c @@ -251,7 +251,7 @@ static void atiixp_bmdma_stop(struct ata_queued_cmd *qc) ata_bmdma_stop(qc); } -static struct scsi_host_template atiixp_sht = { +static const struct scsi_host_template atiixp_sht = { ATA_BASE_SHT(DRV_NAME), .sg_tablesize = LIBATA_DUMB_MAX_PRD, .dma_boundary = ATA_DMA_BOUNDARY, diff --git a/drivers/ata/pata_atp867x.c b/drivers/ata/pata_atp867x.c index 779d660415c8..aaef5924f636 100644 --- a/drivers/ata/pata_atp867x.c +++ b/drivers/ata/pata_atp867x.c @@ -259,7 +259,7 @@ static int atp867x_cable_detect(struct ata_port *ap) return ATA_CBL_PATA_UNK; } -static struct scsi_host_template atp867x_sht = { +static const struct scsi_host_template atp867x_sht = { ATA_BMDMA_SHT(DRV_NAME), }; diff --git a/drivers/ata/pata_buddha.c b/drivers/ata/pata_buddha.c index 27d4c417fc60..49bc619b83e2 100644 --- a/drivers/ata/pata_buddha.c +++ b/drivers/ata/pata_buddha.c @@ -57,7 +57,7 @@ static unsigned int xsurf_bases[2] = { XSURF_BASE1, XSURF_BASE2 }; -static struct scsi_host_template pata_buddha_sht = { +static const struct scsi_host_template pata_buddha_sht = { ATA_PIO_SHT(DRV_NAME), }; diff --git a/drivers/ata/pata_cmd640.c b/drivers/ata/pata_cmd640.c index 1a3372a72213..45a7217b136e 100644 --- a/drivers/ata/pata_cmd640.c +++ b/drivers/ata/pata_cmd640.c @@ -172,7 +172,7 @@ static bool cmd640_sff_irq_check(struct ata_port *ap) return irq_stat & irq_mask; } -static struct scsi_host_template cmd640_sht = { +static const struct scsi_host_template cmd640_sht = { ATA_PIO_SHT(DRV_NAME), }; diff --git a/drivers/ata/pata_cmd64x.c b/drivers/ata/pata_cmd64x.c index 5baa4a7819c1..fafea2b79145 100644 --- a/drivers/ata/pata_cmd64x.c +++ b/drivers/ata/pata_cmd64x.c @@ -319,7 +319,7 @@ static void cmd646r1_bmdma_stop(struct ata_queued_cmd *qc) ata_bmdma_stop(qc); } -static struct scsi_host_template cmd64x_sht = { +static const struct scsi_host_template cmd64x_sht = { ATA_BMDMA_SHT(DRV_NAME), }; diff --git a/drivers/ata/pata_cs5520.c b/drivers/ata/pata_cs5520.c index f4289a532f87..422d42761a1d 100644 --- a/drivers/ata/pata_cs5520.c +++ b/drivers/ata/pata_cs5520.c @@ -94,7 +94,7 @@ static void cs5520_set_piomode(struct ata_port *ap, struct ata_device *adev) cs5520_set_timings(ap, adev, adev->pio_mode); } -static struct scsi_host_template cs5520_sht = { +static const struct scsi_host_template cs5520_sht = { ATA_BASE_SHT(DRV_NAME), .sg_tablesize = LIBATA_DUMB_MAX_PRD, .dma_boundary = ATA_DMA_BOUNDARY, diff --git a/drivers/ata/pata_cs5530.c b/drivers/ata/pata_cs5530.c index d5b7ac14e78f..1e67b0f8db43 100644 --- a/drivers/ata/pata_cs5530.c +++ b/drivers/ata/pata_cs5530.c @@ -146,7 +146,7 @@ static unsigned int cs5530_qc_issue(struct ata_queued_cmd *qc) return ata_bmdma_qc_issue(qc); } -static struct scsi_host_template cs5530_sht = { +static const struct scsi_host_template cs5530_sht = { ATA_BASE_SHT(DRV_NAME), .sg_tablesize = LIBATA_DUMB_MAX_PRD, .dma_boundary = ATA_DMA_BOUNDARY, diff --git a/drivers/ata/pata_cs5535.c b/drivers/ata/pata_cs5535.c index c2c3238ff84b..d793fc441b46 100644 --- a/drivers/ata/pata_cs5535.c +++ b/drivers/ata/pata_cs5535.c @@ -141,7 +141,7 @@ static void cs5535_set_dmamode(struct ata_port *ap, struct ata_device *adev) wrmsr(ATAC_CH0D0_DMA + 2 * adev->devno, reg, 0); } -static struct scsi_host_template cs5535_sht = { +static const struct scsi_host_template cs5535_sht = { ATA_BMDMA_SHT(DRV_NAME), }; diff --git a/drivers/ata/pata_cs5536.c b/drivers/ata/pata_cs5536.c index ab47aeb5587f..b811efd2cc34 100644 --- a/drivers/ata/pata_cs5536.c +++ b/drivers/ata/pata_cs5536.c @@ -217,7 +217,7 @@ static void cs5536_set_dmamode(struct ata_port *ap, struct ata_device *adev) cs5536_write(pdev, ETC, etc); } -static struct scsi_host_template cs5536_sht = { +static const struct scsi_host_template cs5536_sht = { ATA_BMDMA_SHT(DRV_NAME), }; diff --git a/drivers/ata/pata_cypress.c b/drivers/ata/pata_cypress.c index 3be5d52a777b..ae347b5c2871 100644 --- a/drivers/ata/pata_cypress.c +++ b/drivers/ata/pata_cypress.c @@ -115,7 +115,7 @@ static void cy82c693_set_dmamode(struct ata_port *ap, struct ata_device *adev) outb(0x50, 0x23); } -static struct scsi_host_template cy82c693_sht = { +static const struct scsi_host_template cy82c693_sht = { ATA_BMDMA_SHT(DRV_NAME), }; diff --git a/drivers/ata/pata_efar.c b/drivers/ata/pata_efar.c index 21da59f35b41..2e6eccf2902f 100644 --- a/drivers/ata/pata_efar.c +++ b/drivers/ata/pata_efar.c @@ -234,7 +234,7 @@ static void efar_set_dmamode (struct ata_port *ap, struct ata_device *adev) spin_unlock_irqrestore(&efar_lock, flags); } -static struct scsi_host_template efar_sht = { +static const struct scsi_host_template efar_sht = { ATA_BMDMA_SHT(DRV_NAME), }; diff --git a/drivers/ata/pata_ep93xx.c b/drivers/ata/pata_ep93xx.c index 47845d920075..c6e043e05d43 100644 --- a/drivers/ata/pata_ep93xx.c +++ b/drivers/ata/pata_ep93xx.c @@ -872,7 +872,7 @@ static int ep93xx_pata_port_start(struct ata_port *ap) return 0; } -static struct scsi_host_template ep93xx_pata_sht = { +static const struct scsi_host_template ep93xx_pata_sht = { ATA_BASE_SHT(DRV_NAME), /* ep93xx dma implementation limit */ .sg_tablesize = 32, diff --git a/drivers/ata/pata_falcon.c b/drivers/ata/pata_falcon.c index 823c88622e34..996516e64f13 100644 --- a/drivers/ata/pata_falcon.c +++ b/drivers/ata/pata_falcon.c @@ -33,7 +33,7 @@ #define DRV_NAME "pata_falcon" #define DRV_VERSION "0.1.0" -static struct scsi_host_template pata_falcon_sht = { +static const struct scsi_host_template pata_falcon_sht = { ATA_PIO_SHT(DRV_NAME), }; diff --git a/drivers/ata/pata_ftide010.c b/drivers/ata/pata_ftide010.c index 88924b5daa1a..6f6734c09b11 100644 --- a/drivers/ata/pata_ftide010.c +++ b/drivers/ata/pata_ftide010.c @@ -84,7 +84,7 @@ struct ftide010 { #define FTIDE010_CLK_MOD_DEV0_UDMA_EN BIT(4) #define FTIDE010_CLK_MOD_DEV1_UDMA_EN BIT(5) -static struct scsi_host_template pata_ftide010_sht = { +static const struct scsi_host_template pata_ftide010_sht = { ATA_BMDMA_SHT(DRV_NAME), }; diff --git a/drivers/ata/pata_gayle.c b/drivers/ata/pata_gayle.c index 65bc9f3042ce..e5aa07f92106 100644 --- a/drivers/ata/pata_gayle.c +++ b/drivers/ata/pata_gayle.c @@ -35,7 +35,7 @@ #define GAYLE_CONTROL 0x101a -static struct scsi_host_template pata_gayle_sht = { +static const struct scsi_host_template pata_gayle_sht = { ATA_PIO_SHT(DRV_NAME), }; diff --git a/drivers/ata/pata_hpt366.c b/drivers/ata/pata_hpt366.c index 7e441fb304d3..bdccd1ba1524 100644 --- a/drivers/ata/pata_hpt366.c +++ b/drivers/ata/pata_hpt366.c @@ -312,7 +312,7 @@ static int hpt366_prereset(struct ata_link *link, unsigned long deadline) return ata_sff_prereset(link, deadline); } -static struct scsi_host_template hpt36x_sht = { +static const struct scsi_host_template hpt36x_sht = { ATA_BMDMA_SHT(DRV_NAME), }; diff --git a/drivers/ata/pata_hpt37x.c b/drivers/ata/pata_hpt37x.c index ce3c5eaa7e76..c0329cf01135 100644 --- a/drivers/ata/pata_hpt37x.c +++ b/drivers/ata/pata_hpt37x.c @@ -526,7 +526,7 @@ static void hpt37x_bmdma_stop(struct ata_queued_cmd *qc) } -static struct scsi_host_template hpt37x_sht = { +static const struct scsi_host_template hpt37x_sht = { ATA_BMDMA_SHT(DRV_NAME), }; diff --git a/drivers/ata/pata_hpt3x2n.c b/drivers/ata/pata_hpt3x2n.c index 617c95522f43..5b1ecccf3c83 100644 --- a/drivers/ata/pata_hpt3x2n.c +++ b/drivers/ata/pata_hpt3x2n.c @@ -337,7 +337,7 @@ static unsigned int hpt3x2n_qc_issue(struct ata_queued_cmd *qc) return ata_bmdma_qc_issue(qc); } -static struct scsi_host_template hpt3x2n_sht = { +static const struct scsi_host_template hpt3x2n_sht = { ATA_BMDMA_SHT(DRV_NAME), }; diff --git a/drivers/ata/pata_hpt3x3.c b/drivers/ata/pata_hpt3x3.c index 83974d5eb387..d65c586b5ad0 100644 --- a/drivers/ata/pata_hpt3x3.c +++ b/drivers/ata/pata_hpt3x3.c @@ -136,7 +136,7 @@ static int hpt3x3_atapi_dma(struct ata_queued_cmd *qc) #endif /* CONFIG_PATA_HPT3X3_DMA */ -static struct scsi_host_template hpt3x3_sht = { +static const struct scsi_host_template hpt3x3_sht = { ATA_BMDMA_SHT(DRV_NAME), }; diff --git a/drivers/ata/pata_icside.c b/drivers/ata/pata_icside.c index 498383cb6e29..9cfb064782c3 100644 --- a/drivers/ata/pata_icside.c +++ b/drivers/ata/pata_icside.c @@ -298,7 +298,7 @@ static int icside_dma_init(struct pata_icside_info *info) } -static struct scsi_host_template pata_icside_sht = { +static const struct scsi_host_template pata_icside_sht = { ATA_BASE_SHT(DRV_NAME), .sg_tablesize = SG_MAX_SEGMENTS, .dma_boundary = IOMD_DMA_BOUNDARY, diff --git a/drivers/ata/pata_imx.c b/drivers/ata/pata_imx.c index 150939275b1b..4013f28679a9 100644 --- a/drivers/ata/pata_imx.c +++ b/drivers/ata/pata_imx.c @@ -97,7 +97,7 @@ static void pata_imx_set_piomode(struct ata_port *ap, struct ata_device *adev) __raw_writel(val, priv->host_regs + PATA_IMX_ATA_CONTROL); } -static struct scsi_host_template pata_imx_sht = { +static const struct scsi_host_template pata_imx_sht = { ATA_PIO_SHT(DRV_NAME), }; diff --git a/drivers/ata/pata_isapnp.c b/drivers/ata/pata_isapnp.c index 43bb224430d3..25a63d043c8e 100644 --- a/drivers/ata/pata_isapnp.c +++ b/drivers/ata/pata_isapnp.c @@ -20,7 +20,7 @@ #define DRV_NAME "pata_isapnp" #define DRV_VERSION "0.2.5" -static struct scsi_host_template isapnp_sht = { +static const struct scsi_host_template isapnp_sht = { ATA_PIO_SHT(DRV_NAME), }; diff --git a/drivers/ata/pata_it8213.c b/drivers/ata/pata_it8213.c index 8a3e8778163c..b7ac56103c8a 100644 --- a/drivers/ata/pata_it8213.c +++ b/drivers/ata/pata_it8213.c @@ -228,7 +228,7 @@ static void it8213_set_dmamode (struct ata_port *ap, struct ata_device *adev) pci_write_config_byte(dev, 0x48, udma_enable); } -static struct scsi_host_template it8213_sht = { +static const struct scsi_host_template it8213_sht = { ATA_BMDMA_SHT(DRV_NAME), }; diff --git a/drivers/ata/pata_it821x.c b/drivers/ata/pata_it821x.c index 8a5b4e0079ab..2fe3fb6102ce 100644 --- a/drivers/ata/pata_it821x.c +++ b/drivers/ata/pata_it821x.c @@ -800,7 +800,7 @@ static int it821x_rdc_cable(struct ata_port *ap) return ATA_CBL_PATA80; } -static struct scsi_host_template it821x_sht = { +static const struct scsi_host_template it821x_sht = { ATA_BMDMA_SHT(DRV_NAME), }; diff --git a/drivers/ata/pata_ixp4xx_cf.c b/drivers/ata/pata_ixp4xx_cf.c index e225913a619d..9a2c1b6cd71f 100644 --- a/drivers/ata/pata_ixp4xx_cf.c +++ b/drivers/ata/pata_ixp4xx_cf.c @@ -173,7 +173,7 @@ static unsigned int ixp4xx_mmio_data_xfer(struct ata_queued_cmd *qc, return words << 1; } -static struct scsi_host_template ixp4xx_sht = { +static const struct scsi_host_template ixp4xx_sht = { ATA_PIO_SHT(DRV_NAME), }; diff --git a/drivers/ata/pata_jmicron.c b/drivers/ata/pata_jmicron.c index d1b3ce8958dd..f51fb8219762 100644 --- a/drivers/ata/pata_jmicron.c +++ b/drivers/ata/pata_jmicron.c @@ -107,7 +107,7 @@ static int jmicron_pre_reset(struct ata_link *link, unsigned long deadline) /* No PIO or DMA methods needed for this device */ -static struct scsi_host_template jmicron_sht = { +static const struct scsi_host_template jmicron_sht = { ATA_BMDMA_SHT(DRV_NAME), }; diff --git a/drivers/ata/pata_legacy.c b/drivers/ata/pata_legacy.c index 03c580625c2c..448a511cbc17 100644 --- a/drivers/ata/pata_legacy.c +++ b/drivers/ata/pata_legacy.c @@ -250,7 +250,7 @@ static int legacy_set_mode(struct ata_link *link, struct ata_device **unused) return 0; } -static struct scsi_host_template legacy_sht = { +static const struct scsi_host_template legacy_sht = { ATA_PIO_SHT(DRV_NAME), }; diff --git a/drivers/ata/pata_macio.c b/drivers/ata/pata_macio.c index 9ccaac9e2bc3..c4d86ea049f0 100644 --- a/drivers/ata/pata_macio.c +++ b/drivers/ata/pata_macio.c @@ -908,7 +908,7 @@ static int pata_macio_do_resume(struct pata_macio_priv *priv) } #endif /* CONFIG_PM_SLEEP */ -static struct scsi_host_template pata_macio_sht = { +static const struct scsi_host_template pata_macio_sht = { __ATA_BASE_SHT(DRV_NAME), .sg_tablesize = MAX_DCMDS, /* We may not need that strict one */ diff --git a/drivers/ata/pata_marvell.c b/drivers/ata/pata_marvell.c index 014ccb0f45dc..8119caaad605 100644 --- a/drivers/ata/pata_marvell.c +++ b/drivers/ata/pata_marvell.c @@ -92,7 +92,7 @@ static int marvell_cable_detect(struct ata_port *ap) /* No PIO or DMA methods needed for this device */ -static struct scsi_host_template marvell_sht = { +static const struct scsi_host_template marvell_sht = { ATA_BMDMA_SHT(DRV_NAME), }; diff --git a/drivers/ata/pata_mpc52xx.c b/drivers/ata/pata_mpc52xx.c index 3ebd6522a1fd..66c9dea4ea6e 100644 --- a/drivers/ata/pata_mpc52xx.c +++ b/drivers/ata/pata_mpc52xx.c @@ -606,7 +606,7 @@ mpc52xx_ata_task_irq(int irq, void *vpriv) return IRQ_HANDLED; } -static struct scsi_host_template mpc52xx_ata_sht = { +static const struct scsi_host_template mpc52xx_ata_sht = { ATA_PIO_SHT(DRV_NAME), }; diff --git a/drivers/ata/pata_mpiix.c b/drivers/ata/pata_mpiix.c index 8fda0e32c1ab..69e4baf27d72 100644 --- a/drivers/ata/pata_mpiix.c +++ b/drivers/ata/pata_mpiix.c @@ -136,7 +136,7 @@ static unsigned int mpiix_qc_issue(struct ata_queued_cmd *qc) return ata_sff_qc_issue(qc); } -static struct scsi_host_template mpiix_sht = { +static const struct scsi_host_template mpiix_sht = { ATA_PIO_SHT(DRV_NAME), }; diff --git a/drivers/ata/pata_netcell.c b/drivers/ata/pata_netcell.c index 06929e77c491..c0b2897fcf40 100644 --- a/drivers/ata/pata_netcell.c +++ b/drivers/ata/pata_netcell.c @@ -31,7 +31,7 @@ static unsigned int netcell_read_id(struct ata_device *adev, return err_mask; } -static struct scsi_host_template netcell_sht = { +static const struct scsi_host_template netcell_sht = { ATA_BMDMA_SHT(DRV_NAME), }; diff --git a/drivers/ata/pata_ninja32.c b/drivers/ata/pata_ninja32.c index f9255d6fd194..76a91013d27d 100644 --- a/drivers/ata/pata_ninja32.c +++ b/drivers/ata/pata_ninja32.c @@ -77,7 +77,7 @@ static void ninja32_dev_select(struct ata_port *ap, unsigned int device) } } -static struct scsi_host_template ninja32_sht = { +static const struct scsi_host_template ninja32_sht = { ATA_BMDMA_SHT(DRV_NAME), }; diff --git a/drivers/ata/pata_ns87410.c b/drivers/ata/pata_ns87410.c index ca3ab2736fef..44cc24d21d5f 100644 --- a/drivers/ata/pata_ns87410.c +++ b/drivers/ata/pata_ns87410.c @@ -114,7 +114,7 @@ static unsigned int ns87410_qc_issue(struct ata_queued_cmd *qc) return ata_sff_qc_issue(qc); } -static struct scsi_host_template ns87410_sht = { +static const struct scsi_host_template ns87410_sht = { ATA_PIO_SHT(DRV_NAME), }; diff --git a/drivers/ata/pata_ns87415.c b/drivers/ata/pata_ns87415.c index 9dd6bffefb48..d60e1f69d7b0 100644 --- a/drivers/ata/pata_ns87415.c +++ b/drivers/ata/pata_ns87415.c @@ -320,7 +320,7 @@ static struct ata_port_operations ns87560_pata_ops = { }; #endif -static struct scsi_host_template ns87415_sht = { +static const struct scsi_host_template ns87415_sht = { ATA_BMDMA_SHT(DRV_NAME), }; diff --git a/drivers/ata/pata_octeon_cf.c b/drivers/ata/pata_octeon_cf.c index 4cbcdc5da038..b1ce9f1761af 100644 --- a/drivers/ata/pata_octeon_cf.c +++ b/drivers/ata/pata_octeon_cf.c @@ -58,7 +58,7 @@ struct octeon_cf_port { u64 dma_base; }; -static struct scsi_host_template octeon_cf_sht = { +static const struct scsi_host_template octeon_cf_sht = { ATA_PIO_SHT(DRV_NAME), }; diff --git a/drivers/ata/pata_of_platform.c b/drivers/ata/pata_of_platform.c index ac5a633c00a5..178b28eff170 100644 --- a/drivers/ata/pata_of_platform.c +++ b/drivers/ata/pata_of_platform.c @@ -15,7 +15,7 @@ #define DRV_NAME "pata_of_platform" -static struct scsi_host_template pata_platform_sht = { +static const struct scsi_host_template pata_platform_sht = { ATA_PIO_SHT(DRV_NAME), }; diff --git a/drivers/ata/pata_oldpiix.c b/drivers/ata/pata_oldpiix.c index 22a020374410..dca82d92b004 100644 --- a/drivers/ata/pata_oldpiix.c +++ b/drivers/ata/pata_oldpiix.c @@ -204,7 +204,7 @@ static unsigned int oldpiix_qc_issue(struct ata_queued_cmd *qc) } -static struct scsi_host_template oldpiix_sht = { +static const struct scsi_host_template oldpiix_sht = { ATA_BMDMA_SHT(DRV_NAME), }; diff --git a/drivers/ata/pata_opti.c b/drivers/ata/pata_opti.c index 01976c4e4033..3d23f57eb128 100644 --- a/drivers/ata/pata_opti.c +++ b/drivers/ata/pata_opti.c @@ -148,7 +148,7 @@ static void opti_set_piomode(struct ata_port *ap, struct ata_device *adev) opti_write_reg(ap, 0x85, CNTRL_REG); } -static struct scsi_host_template opti_sht = { +static const struct scsi_host_template opti_sht = { ATA_PIO_SHT(DRV_NAME), }; diff --git a/drivers/ata/pata_optidma.c b/drivers/ata/pata_optidma.c index ad1090b90e52..dfc36b4ec9c6 100644 --- a/drivers/ata/pata_optidma.c +++ b/drivers/ata/pata_optidma.c @@ -334,7 +334,7 @@ static int optidma_set_mode(struct ata_link *link, struct ata_device **r_failed) return rc; } -static struct scsi_host_template optidma_sht = { +static const struct scsi_host_template optidma_sht = { ATA_BMDMA_SHT(DRV_NAME), }; diff --git a/drivers/ata/pata_parport/pata_parport.c b/drivers/ata/pata_parport/pata_parport.c index 294a266a0dda..02a62310845a 100644 --- a/drivers/ata/pata_parport/pata_parport.c +++ b/drivers/ata/pata_parport/pata_parport.c @@ -398,7 +398,7 @@ static struct device pata_parport_bus = { .release = pata_parport_bus_release, }; -static struct scsi_host_template pata_parport_sht = { +static const struct scsi_host_template pata_parport_sht = { PATA_PARPORT_SHT("pata_parport") }; diff --git a/drivers/ata/pata_pcmcia.c b/drivers/ata/pata_pcmcia.c index 8eb066abbd9c..5b602206c522 100644 --- a/drivers/ata/pata_pcmcia.c +++ b/drivers/ata/pata_pcmcia.c @@ -132,7 +132,7 @@ static void pcmcia_8bit_drain_fifo(struct ata_queued_cmd *qc) } -static struct scsi_host_template pcmcia_sht = { +static const struct scsi_host_template pcmcia_sht = { ATA_PIO_SHT(DRV_NAME), }; diff --git a/drivers/ata/pata_pdc2027x.c b/drivers/ata/pata_pdc2027x.c index 4191aa61c8e4..6820c5597b14 100644 --- a/drivers/ata/pata_pdc2027x.c +++ b/drivers/ata/pata_pdc2027x.c @@ -122,7 +122,7 @@ static struct pci_driver pdc2027x_pci_driver = { #endif }; -static struct scsi_host_template pdc2027x_sht = { +static const struct scsi_host_template pdc2027x_sht = { ATA_BMDMA_SHT(DRV_NAME), }; diff --git a/drivers/ata/pata_pdc202xx_old.c b/drivers/ata/pata_pdc202xx_old.c index f894ff2de0a9..a32723e46357 100644 --- a/drivers/ata/pata_pdc202xx_old.c +++ b/drivers/ata/pata_pdc202xx_old.c @@ -289,7 +289,7 @@ static int pdc2026x_check_atapi_dma(struct ata_queued_cmd *qc) return 1; } -static struct scsi_host_template pdc202xx_sht = { +static const struct scsi_host_template pdc202xx_sht = { ATA_BMDMA_SHT(DRV_NAME), }; diff --git a/drivers/ata/pata_piccolo.c b/drivers/ata/pata_piccolo.c index 389b63b13c70..ced906bf56be 100644 --- a/drivers/ata/pata_piccolo.c +++ b/drivers/ata/pata_piccolo.c @@ -62,7 +62,7 @@ static void tosh_set_dmamode(struct ata_port *ap, struct ata_device *adev) } -static struct scsi_host_template tosh_sht = { +static const struct scsi_host_template tosh_sht = { ATA_BMDMA_SHT(DRV_NAME), }; diff --git a/drivers/ata/pata_platform.c b/drivers/ata/pata_platform.c index 21fb059859bd..87479bc893b2 100644 --- a/drivers/ata/pata_platform.c +++ b/drivers/ata/pata_platform.c @@ -45,7 +45,7 @@ static int pata_platform_set_mode(struct ata_link *link, struct ata_device **unu return 0; } -static struct scsi_host_template pata_platform_sht = { +static const struct scsi_host_template pata_platform_sht = { ATA_PIO_SHT(DRV_NAME), }; @@ -97,7 +97,7 @@ static void pata_platform_setup_port(struct ata_ioports *ioaddr, int __pata_platform_probe(struct device *dev, struct resource *io_res, struct resource *ctl_res, struct resource *irq_res, unsigned int ioport_shift, int __pio_mask, - struct scsi_host_template *sht, bool use16bit) + const struct scsi_host_template *sht, bool use16bit) { struct ata_host *host; struct ata_port *ap; diff --git a/drivers/ata/pata_pxa.c b/drivers/ata/pata_pxa.c index 985f42c4fd70..ea402e02c46e 100644 --- a/drivers/ata/pata_pxa.c +++ b/drivers/ata/pata_pxa.c @@ -136,7 +136,7 @@ static int pxa_check_atapi_dma(struct ata_queued_cmd *qc) return -EOPNOTSUPP; } -static struct scsi_host_template pxa_ata_sht = { +static const struct scsi_host_template pxa_ata_sht = { ATA_BMDMA_SHT(DRV_NAME), }; diff --git a/drivers/ata/pata_radisys.c b/drivers/ata/pata_radisys.c index 3aca8fe3fdb6..84b001097093 100644 --- a/drivers/ata/pata_radisys.c +++ b/drivers/ata/pata_radisys.c @@ -183,7 +183,7 @@ static unsigned int radisys_qc_issue(struct ata_queued_cmd *qc) } -static struct scsi_host_template radisys_sht = { +static const struct scsi_host_template radisys_sht = { ATA_BMDMA_SHT(DRV_NAME), }; diff --git a/drivers/ata/pata_rb532_cf.c b/drivers/ata/pata_rb532_cf.c index 2e110aefe59b..3974d294a341 100644 --- a/drivers/ata/pata_rb532_cf.c +++ b/drivers/ata/pata_rb532_cf.c @@ -73,7 +73,7 @@ static struct ata_port_operations rb532_pata_port_ops = { /* ------------------------------------------------------------------------ */ -static struct scsi_host_template rb532_pata_sht = { +static const struct scsi_host_template rb532_pata_sht = { ATA_PIO_SHT(DRV_NAME), }; diff --git a/drivers/ata/pata_rdc.c b/drivers/ata/pata_rdc.c index ecb229c2c1a2..0a9689862f71 100644 --- a/drivers/ata/pata_rdc.c +++ b/drivers/ata/pata_rdc.c @@ -288,7 +288,7 @@ static const struct ata_port_info rdc_port_info = { .port_ops = &rdc_pata_ops, }; -static struct scsi_host_template rdc_sht = { +static const struct scsi_host_template rdc_sht = { ATA_BMDMA_SHT(DRV_NAME), }; diff --git a/drivers/ata/pata_rz1000.c b/drivers/ata/pata_rz1000.c index fb00c3e5fd19..8e2606793091 100644 --- a/drivers/ata/pata_rz1000.c +++ b/drivers/ata/pata_rz1000.c @@ -50,7 +50,7 @@ static int rz1000_set_mode(struct ata_link *link, struct ata_device **unused) } -static struct scsi_host_template rz1000_sht = { +static const struct scsi_host_template rz1000_sht = { ATA_PIO_SHT(DRV_NAME), }; diff --git a/drivers/ata/pata_sc1200.c b/drivers/ata/pata_sc1200.c index f28daf62a37d..a388dfb97ad8 100644 --- a/drivers/ata/pata_sc1200.c +++ b/drivers/ata/pata_sc1200.c @@ -192,7 +192,7 @@ static int sc1200_qc_defer(struct ata_queued_cmd *qc) return 0; } -static struct scsi_host_template sc1200_sht = { +static const struct scsi_host_template sc1200_sht = { ATA_BASE_SHT(DRV_NAME), .sg_tablesize = LIBATA_DUMB_MAX_PRD, .dma_boundary = ATA_DMA_BOUNDARY, diff --git a/drivers/ata/pata_sch.c b/drivers/ata/pata_sch.c index 4f9c2aefd807..8356f1f2a025 100644 --- a/drivers/ata/pata_sch.c +++ b/drivers/ata/pata_sch.c @@ -57,7 +57,7 @@ static struct pci_driver sch_pci_driver = { #endif }; -static struct scsi_host_template sch_sht = { +static const struct scsi_host_template sch_sht = { ATA_BMDMA_SHT(DRV_NAME), }; diff --git a/drivers/ata/pata_serverworks.c b/drivers/ata/pata_serverworks.c index c0bc4af0d196..549ff24a9823 100644 --- a/drivers/ata/pata_serverworks.c +++ b/drivers/ata/pata_serverworks.c @@ -252,13 +252,13 @@ static void serverworks_set_dmamode(struct ata_port *ap, struct ata_device *adev pci_write_config_byte(pdev, 0x54, ultra_cfg); } -static struct scsi_host_template serverworks_osb4_sht = { +static const struct scsi_host_template serverworks_osb4_sht = { ATA_BASE_SHT(DRV_NAME), .sg_tablesize = LIBATA_DUMB_MAX_PRD, .dma_boundary = ATA_DMA_BOUNDARY, }; -static struct scsi_host_template serverworks_csb_sht = { +static const struct scsi_host_template serverworks_csb_sht = { ATA_BMDMA_SHT(DRV_NAME), }; @@ -413,7 +413,7 @@ static int serverworks_init_one(struct pci_dev *pdev, const struct pci_device_id } }; const struct ata_port_info *ppi[] = { &info[id->driver_data], NULL }; - struct scsi_host_template *sht = &serverworks_csb_sht; + const struct scsi_host_template *sht = &serverworks_csb_sht; int rc; rc = pcim_enable_device(pdev); diff --git a/drivers/ata/pata_sil680.c b/drivers/ata/pata_sil680.c index 67ef2e26d7df..abe64b5f83cf 100644 --- a/drivers/ata/pata_sil680.c +++ b/drivers/ata/pata_sil680.c @@ -223,7 +223,7 @@ static bool sil680_sff_irq_check(struct ata_port *ap) return val & 0x08; } -static struct scsi_host_template sil680_sht = { +static const struct scsi_host_template sil680_sht = { ATA_BMDMA_SHT(DRV_NAME), }; diff --git a/drivers/ata/pata_sis.c b/drivers/ata/pata_sis.c index 92e4cf05de2c..31de06b66221 100644 --- a/drivers/ata/pata_sis.c +++ b/drivers/ata/pata_sis.c @@ -539,7 +539,7 @@ static unsigned int sis_133_mode_filter(struct ata_device *adev, unsigned int ma return mask; } -static struct scsi_host_template sis_sht = { +static const struct scsi_host_template sis_sht = { ATA_BMDMA_SHT(DRV_NAME), }; diff --git a/drivers/ata/pata_sl82c105.c b/drivers/ata/pata_sl82c105.c index 8487470e2e01..3b62ea482f1a 100644 --- a/drivers/ata/pata_sl82c105.c +++ b/drivers/ata/pata_sl82c105.c @@ -238,7 +238,7 @@ static bool sl82c105_sff_irq_check(struct ata_port *ap) return val & mask; } -static struct scsi_host_template sl82c105_sht = { +static const struct scsi_host_template sl82c105_sht = { ATA_BMDMA_SHT(DRV_NAME), }; diff --git a/drivers/ata/pata_triflex.c b/drivers/ata/pata_triflex.c index 782162d2f3f8..26d448a869e2 100644 --- a/drivers/ata/pata_triflex.c +++ b/drivers/ata/pata_triflex.c @@ -160,7 +160,7 @@ static void triflex_bmdma_stop(struct ata_queued_cmd *qc) triflex_load_timing(qc->ap, qc->dev, qc->dev->pio_mode); } -static struct scsi_host_template triflex_sht = { +static const struct scsi_host_template triflex_sht = { ATA_BMDMA_SHT(DRV_NAME), }; diff --git a/drivers/ata/pata_via.c b/drivers/ata/pata_via.c index 34f00f389932..696b99720dcb 100644 --- a/drivers/ata/pata_via.c +++ b/drivers/ata/pata_via.c @@ -443,7 +443,7 @@ static int via_port_start(struct ata_port *ap) return 0; } -static struct scsi_host_template via_sht = { +static const struct scsi_host_template via_sht = { ATA_BMDMA_SHT(DRV_NAME), }; diff --git a/drivers/ata/pdc_adma.c b/drivers/ata/pdc_adma.c index 35b823ac20c9..8e6b2599f0d5 100644 --- a/drivers/ata/pdc_adma.c +++ b/drivers/ata/pdc_adma.c @@ -123,7 +123,7 @@ static void adma_freeze(struct ata_port *ap); static void adma_thaw(struct ata_port *ap); static int adma_prereset(struct ata_link *link, unsigned long deadline); -static struct scsi_host_template adma_ata_sht = { +static const struct scsi_host_template adma_ata_sht = { ATA_BASE_SHT(DRV_NAME), .sg_tablesize = LIBATA_MAX_PRD, .dma_boundary = ADMA_DMA_BOUNDARY, diff --git a/drivers/ata/sata_dwc_460ex.c b/drivers/ata/sata_dwc_460ex.c index 21d77633a98f..24334a8a3f0b 100644 --- a/drivers/ata/sata_dwc_460ex.c +++ b/drivers/ata/sata_dwc_460ex.c @@ -1076,7 +1076,7 @@ static void sata_dwc_dev_select(struct ata_port *ap, unsigned int device) /* * scsi mid-layer and libata interface structures */ -static struct scsi_host_template sata_dwc_sht = { +static const struct scsi_host_template sata_dwc_sht = { ATA_NCQ_SHT(DRV_NAME), /* * test-only: Currently this driver doesn't handle NCQ diff --git a/drivers/ata/sata_fsl.c b/drivers/ata/sata_fsl.c index b052c5a65c17..ccd99b9aa9ff 100644 --- a/drivers/ata/sata_fsl.c +++ b/drivers/ata/sata_fsl.c @@ -1376,7 +1376,7 @@ static void sata_fsl_host_stop(struct ata_host *host) /* * scsi mid-layer and libata interface structures */ -static struct scsi_host_template sata_fsl_sht = { +static const struct scsi_host_template sata_fsl_sht = { ATA_NCQ_SHT_QD("sata_fsl", SATA_FSL_QUEUE_DEPTH), .sg_tablesize = SATA_FSL_MAX_PRD_USABLE, .dma_boundary = ATA_DMA_BOUNDARY, diff --git a/drivers/ata/sata_highbank.c b/drivers/ata/sata_highbank.c index dfbf9493e451..8237ece4a46f 100644 --- a/drivers/ata/sata_highbank.c +++ b/drivers/ata/sata_highbank.c @@ -438,7 +438,7 @@ static const struct ata_port_info ahci_highbank_port_info = { .port_ops = &ahci_highbank_ops, }; -static struct scsi_host_template ahci_highbank_platform_sht = { +static const struct scsi_host_template ahci_highbank_platform_sht = { AHCI_SHT("sata_highbank"), }; diff --git a/drivers/ata/sata_inic162x.c b/drivers/ata/sata_inic162x.c index 2833c722118d..2c8c78ed86c1 100644 --- a/drivers/ata/sata_inic162x.c +++ b/drivers/ata/sata_inic162x.c @@ -242,7 +242,7 @@ struct inic_port_priv { dma_addr_t cpb_tbl_dma; }; -static struct scsi_host_template inic_sht = { +static const struct scsi_host_template inic_sht = { ATA_BASE_SHT(DRV_NAME), .sg_tablesize = LIBATA_MAX_PRD, /* maybe it can be larger? */ diff --git a/drivers/ata/sata_mv.c b/drivers/ata/sata_mv.c index e3cff01201b8..d404e631d152 100644 --- a/drivers/ata/sata_mv.c +++ b/drivers/ata/sata_mv.c @@ -659,13 +659,13 @@ static u8 mv_sff_check_status(struct ata_port *ap); * PRDs for 64K boundaries in mv_fill_sg(). */ #ifdef CONFIG_PCI -static struct scsi_host_template mv5_sht = { +static const struct scsi_host_template mv5_sht = { ATA_BASE_SHT(DRV_NAME), .sg_tablesize = MV_MAX_SG_CT / 2, .dma_boundary = MV_DMA_BOUNDARY, }; #endif -static struct scsi_host_template mv6_sht = { +static const struct scsi_host_template mv6_sht = { __ATA_BASE_SHT(DRV_NAME), .can_queue = MV_MAX_Q_DEPTH - 1, .sg_tablesize = MV_MAX_SG_CT / 2, diff --git a/drivers/ata/sata_nv.c b/drivers/ata/sata_nv.c index 9b2d289e89e1..abf5651c87ab 100644 --- a/drivers/ata/sata_nv.c +++ b/drivers/ata/sata_nv.c @@ -371,11 +371,11 @@ static struct pci_driver nv_pci_driver = { .remove = ata_pci_remove_one, }; -static struct scsi_host_template nv_sht = { +static const struct scsi_host_template nv_sht = { ATA_BMDMA_SHT(DRV_NAME), }; -static struct scsi_host_template nv_adma_sht = { +static const struct scsi_host_template nv_adma_sht = { __ATA_BASE_SHT(DRV_NAME), .can_queue = NV_ADMA_MAX_CPBS, .sg_tablesize = NV_ADMA_SGTBL_TOTAL_LEN, @@ -386,7 +386,7 @@ static struct scsi_host_template nv_adma_sht = { .tag_alloc_policy = BLK_TAG_ALLOC_RR, }; -static struct scsi_host_template nv_swncq_sht = { +static const struct scsi_host_template nv_swncq_sht = { __ATA_BASE_SHT(DRV_NAME), .can_queue = ATA_MAX_QUEUE - 1, .sg_tablesize = LIBATA_MAX_PRD, @@ -520,7 +520,7 @@ static struct ata_port_operations nv_swncq_ops = { struct nv_pi_priv { irq_handler_t irq_handler; - struct scsi_host_template *sht; + const struct scsi_host_template *sht; }; #define NV_PI_PRIV(_irq_handler, _sht) \ diff --git a/drivers/ata/sata_promise.c b/drivers/ata/sata_promise.c index 4e60e6c4c35a..2df1a070b25a 100644 --- a/drivers/ata/sata_promise.c +++ b/drivers/ata/sata_promise.c @@ -158,7 +158,7 @@ static void pdc_error_handler(struct ata_port *ap); static void pdc_post_internal_cmd(struct ata_queued_cmd *qc); static int pdc_pata_cable_detect(struct ata_port *ap); -static struct scsi_host_template pdc_ata_sht = { +static const struct scsi_host_template pdc_ata_sht = { ATA_BASE_SHT(DRV_NAME), .sg_tablesize = PDC_MAX_PRD, .dma_boundary = ATA_DMA_BOUNDARY, diff --git a/drivers/ata/sata_qstor.c b/drivers/ata/sata_qstor.c index 8ca0810aad26..8a6286159044 100644 --- a/drivers/ata/sata_qstor.c +++ b/drivers/ata/sata_qstor.c @@ -108,7 +108,7 @@ static void qs_thaw(struct ata_port *ap); static int qs_prereset(struct ata_link *link, unsigned long deadline); static void qs_error_handler(struct ata_port *ap); -static struct scsi_host_template qs_ata_sht = { +static const struct scsi_host_template qs_ata_sht = { ATA_BASE_SHT(DRV_NAME), .sg_tablesize = QS_MAX_PRD, .dma_boundary = QS_DMA_BOUNDARY, diff --git a/drivers/ata/sata_rcar.c b/drivers/ata/sata_rcar.c index 0195eb29f6c2..34790f15c1b8 100644 --- a/drivers/ata/sata_rcar.c +++ b/drivers/ata/sata_rcar.c @@ -608,7 +608,7 @@ static u8 sata_rcar_bmdma_status(struct ata_port *ap) return host_stat; } -static struct scsi_host_template sata_rcar_sht = { +static const struct scsi_host_template sata_rcar_sht = { ATA_BASE_SHT(DRV_NAME), /* * This controller allows transfer chunks up to 512MB which cross 64KB diff --git a/drivers/ata/sata_sil.c b/drivers/ata/sata_sil.c index 3b989a52879d..cc77c0248284 100644 --- a/drivers/ata/sata_sil.c +++ b/drivers/ata/sata_sil.c @@ -156,7 +156,7 @@ static struct pci_driver sil_pci_driver = { #endif }; -static struct scsi_host_template sil_sht = { +static const struct scsi_host_template sil_sht = { ATA_BASE_SHT(DRV_NAME), /** These controllers support Large Block Transfer which allows transfer chunks up to 2GB and which cross 64KB boundaries, diff --git a/drivers/ata/sata_sil24.c b/drivers/ata/sata_sil24.c index 22cc9e9789dd..e72a0257990d 100644 --- a/drivers/ata/sata_sil24.c +++ b/drivers/ata/sata_sil24.c @@ -373,7 +373,7 @@ static struct pci_driver sil24_pci_driver = { #endif }; -static struct scsi_host_template sil24_sht = { +static const struct scsi_host_template sil24_sht = { __ATA_BASE_SHT(DRV_NAME), .can_queue = SIL24_MAX_CMDS, .sg_tablesize = SIL24_MAX_SGE, diff --git a/drivers/ata/sata_sis.c b/drivers/ata/sata_sis.c index 316237362aa9..ef8724986de3 100644 --- a/drivers/ata/sata_sis.c +++ b/drivers/ata/sata_sis.c @@ -72,7 +72,7 @@ static struct pci_driver sis_pci_driver = { #endif }; -static struct scsi_host_template sis_sht = { +static const struct scsi_host_template sis_sht = { ATA_BMDMA_SHT(DRV_NAME), }; diff --git a/drivers/ata/sata_svw.c b/drivers/ata/sata_svw.c index 2e3418a82b44..c47c3fb434d5 100644 --- a/drivers/ata/sata_svw.c +++ b/drivers/ata/sata_svw.c @@ -330,7 +330,7 @@ static int k2_sata_show_info(struct seq_file *m, struct Scsi_Host *shost) return 0; } -static struct scsi_host_template k2_sata_sht = { +static const struct scsi_host_template k2_sata_sht = { ATA_BMDMA_SHT(DRV_NAME), .show_info = k2_sata_show_info, }; diff --git a/drivers/ata/sata_sx4.c b/drivers/ata/sata_sx4.c index a92c60455b1d..ccc016072637 100644 --- a/drivers/ata/sata_sx4.c +++ b/drivers/ata/sata_sx4.c @@ -226,7 +226,7 @@ static void pdc_post_internal_cmd(struct ata_queued_cmd *qc); static int pdc_check_atapi_dma(struct ata_queued_cmd *qc); -static struct scsi_host_template pdc_sata_sht = { +static const struct scsi_host_template pdc_sata_sht = { ATA_BASE_SHT(DRV_NAME), .sg_tablesize = LIBATA_MAX_PRD, .dma_boundary = ATA_DMA_BOUNDARY, diff --git a/drivers/ata/sata_uli.c b/drivers/ata/sata_uli.c index 815e6af75310..60ea45926cd1 100644 --- a/drivers/ata/sata_uli.c +++ b/drivers/ata/sata_uli.c @@ -59,7 +59,7 @@ static struct pci_driver uli_pci_driver = { .remove = ata_pci_remove_one, }; -static struct scsi_host_template uli_sht = { +static const struct scsi_host_template uli_sht = { ATA_BMDMA_SHT(DRV_NAME), }; diff --git a/drivers/ata/sata_via.c b/drivers/ata/sata_via.c index c7891cc84ea0..57cbf2cef618 100644 --- a/drivers/ata/sata_via.c +++ b/drivers/ata/sata_via.c @@ -107,7 +107,7 @@ static struct pci_driver svia_pci_driver = { .remove = ata_pci_remove_one, }; -static struct scsi_host_template svia_sht = { +static const struct scsi_host_template svia_sht = { ATA_BMDMA_SHT(DRV_NAME), }; diff --git a/drivers/ata/sata_vsc.c b/drivers/ata/sata_vsc.c index 87e4ed66b306..d39b87537168 100644 --- a/drivers/ata/sata_vsc.c +++ b/drivers/ata/sata_vsc.c @@ -277,7 +277,7 @@ static irqreturn_t vsc_sata_interrupt(int irq, void *dev_instance) } -static struct scsi_host_template vsc_sata_sht = { +static const struct scsi_host_template vsc_sata_sht = { ATA_BMDMA_SHT(DRV_NAME), }; diff --git a/include/linux/ahci_platform.h b/include/linux/ahci_platform.h index 17fa26215292..fe0760ce34c8 100644 --- a/include/linux/ahci_platform.h +++ b/include/linux/ahci_platform.h @@ -37,7 +37,7 @@ struct ahci_host_priv *ahci_platform_get_resources( int ahci_platform_init_host(struct platform_device *pdev, struct ahci_host_priv *hpriv, const struct ata_port_info *pi_template, - struct scsi_host_template *sht); + const struct scsi_host_template *sht); void ahci_platform_shutdown(struct platform_device *pdev); diff --git a/include/linux/ata_platform.h b/include/linux/ata_platform.h index 9cafec92282d..b9745cc08e38 100644 --- a/include/linux/ata_platform.h +++ b/include/linux/ata_platform.h @@ -19,7 +19,7 @@ extern int __pata_platform_probe(struct device *dev, struct resource *irq_res, unsigned int ioport_shift, int __pio_mask, - struct scsi_host_template *sht, + const struct scsi_host_template *sht, bool use16bit); /* diff --git a/include/linux/libata.h b/include/linux/libata.h index a759dfbdcc91..311cd93377c7 100644 --- a/include/linux/libata.h +++ b/include/linux/libata.h @@ -1065,10 +1065,10 @@ extern void ata_host_get(struct ata_host *host); extern void ata_host_put(struct ata_host *host); extern int ata_host_start(struct ata_host *host); extern int ata_host_register(struct ata_host *host, - struct scsi_host_template *sht); + const struct scsi_host_template *sht); extern int ata_host_activate(struct ata_host *host, int irq, irq_handler_t irq_handler, unsigned long irq_flags, - struct scsi_host_template *sht); + const struct scsi_host_template *sht); extern void ata_host_detach(struct ata_host *host); extern void ata_host_init(struct ata_host *, struct device *, struct ata_port_operations *); extern int ata_scsi_detect(struct scsi_host_template *sht); @@ -1980,10 +1980,10 @@ extern int ata_pci_sff_prepare_host(struct pci_dev *pdev, struct ata_host **r_host); extern int ata_pci_sff_activate_host(struct ata_host *host, irq_handler_t irq_handler, - struct scsi_host_template *sht); + const struct scsi_host_template *sht); extern int ata_pci_sff_init_one(struct pci_dev *pdev, const struct ata_port_info * const * ppi, - struct scsi_host_template *sht, void *host_priv, int hflags); + const struct scsi_host_template *sht, void *host_priv, int hflags); #endif /* CONFIG_PCI */ #ifdef CONFIG_ATA_BMDMA @@ -2019,7 +2019,7 @@ extern int ata_pci_bmdma_prepare_host(struct pci_dev *pdev, struct ata_host **r_host); extern int ata_pci_bmdma_init_one(struct pci_dev *pdev, const struct ata_port_info * const * ppi, - struct scsi_host_template *sht, + const struct scsi_host_template *sht, void *host_priv, int hflags); #endif /* CONFIG_PCI */ #endif /* CONFIG_ATA_BMDMA */ From patchwork Wed Mar 22 19:54:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184551 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id ADD68C6FD1C for ; Wed, 22 Mar 2023 19:56:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230047AbjCVT4i (ORCPT ); Wed, 22 Mar 2023 15:56:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229995AbjCVT4g (ORCPT ); Wed, 22 Mar 2023 15:56:36 -0400 Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F6A55C9C0 for ; Wed, 22 Mar 2023 12:56:25 -0700 (PDT) Received: by mail-pl1-f171.google.com with SMTP id o2so12883991plg.4 for ; Wed, 22 Mar 2023 12:56:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679514985; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QxASyLi8nqGzT795DVp8Cos4Ht8OMveiQULpG2J4on4=; b=7sUAU+39w+y1Fes1wgbE4w8T4QRvJdKoyaSmvVexmDVgElS6WvXCOeXXxL7xGj1JR5 p+m0oNtcbgJ9Yj33rAKoBuOnqAP8Wj+enauNPEFMs+FTrjWRW+bACkLLAF6uGsVzru2Z IgmP3cxM+tsO/FG0YBvBe9ZW0VjEPXSdTW5kABcOmn6xAo/fjQ56VGtJQzAvkZF8DOu7 4GjW0ay1rKktqmM0uRjNJVYZHezl3fqUwNvmQ9npq69Wy0Xh2oIfYhKcDv8ZiDg3smmj S5fwF8E4XcTPAiVFMxzSgsXrVax5ELurJCqRyZRBEfk90esbNFhUnkm+CWn5nl5RhMCq M9hg== X-Gm-Message-State: AO0yUKX7nkyYE74IxTinfvODGtjGMg8q4R1Cz7XOfi7Qdisliu4sFxFJ 2IzW/2O7MCZSzE3JcVNgg6DSXaFUJMo= X-Google-Smtp-Source: AK7set87ckmioDSz/Ris/Aa4e2gAgyWXqXptIF7rkejsZ+L9QW3u88ZChE8b3b3WsLkdmYg78Lyi9A== X-Received: by 2002:a17:90b:3511:b0:23b:4388:7d8a with SMTP id ls17-20020a17090b351100b0023b43887d8amr4637936pjb.21.1679514984739; Wed, 22 Mar 2023 12:56:24 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.56.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:56:23 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , Stefan Richter Subject: [PATCH v3 05/80] firewire: sbp2: Declare the SCSI host template const Date: Wed, 22 Mar 2023 12:54:00 -0700 Message-Id: <20230322195515.1267197-6-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the sbp2 host template it not modified. Cc: Stefan Richter Signed-off-by: Bart Van Assche --- drivers/firewire/sbp2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/firewire/sbp2.c b/drivers/firewire/sbp2.c index 60051c0cabea..26db5b8dfc1e 100644 --- a/drivers/firewire/sbp2.c +++ b/drivers/firewire/sbp2.c @@ -1117,7 +1117,7 @@ static void sbp2_init_workarounds(struct sbp2_target *tgt, u32 model, tgt->workarounds = w; } -static struct scsi_host_template scsi_driver_template; +static const struct scsi_host_template scsi_driver_template; static void sbp2_remove(struct fw_unit *unit); static int sbp2_probe(struct fw_unit *unit, const struct ieee1394_device_id *id) @@ -1586,7 +1586,7 @@ static struct attribute *sbp2_scsi_sysfs_attrs[] = { ATTRIBUTE_GROUPS(sbp2_scsi_sysfs); -static struct scsi_host_template scsi_driver_template = { +static const struct scsi_host_template scsi_driver_template = { .module = THIS_MODULE, .name = "SBP-2 IEEE-1394", .proc_name = "sbp2", From patchwork Wed Mar 22 19:54:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184552 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 81C81C6FD1F for ; Wed, 22 Mar 2023 19:56:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230078AbjCVT4o (ORCPT ); Wed, 22 Mar 2023 15:56:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230000AbjCVT4h (ORCPT ); Wed, 22 Mar 2023 15:56:37 -0400 Received: from mail-pj1-f53.google.com (mail-pj1-f53.google.com [209.85.216.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF60B5ADD5 for ; Wed, 22 Mar 2023 12:56:26 -0700 (PDT) Received: by mail-pj1-f53.google.com with SMTP id p13-20020a17090a284d00b0023d2e945aebso1993877pjf.0 for ; Wed, 22 Mar 2023 12:56:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679514986; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=WxAjcxps+NaGSsvzYRzXC0eCmye/BzJ2UmkE/1cUug0=; b=g49SPbGEgm5bB5OUIcE5xcbEwyI07ZsYJ10UKFx/boVF9BqBstIBXfy5MNOhFtBH5B aOhwnpyKo6Y+/su3LplINZ1QljHIzqdb5SukdhoI3EqQh+7mWImsE3iItI1K9KUWxibF XN/QoJ2d5c7P6wIRuzWSRDj45JUMDuuV+pNtdifE3CAtZSTtM/GnRKeMlbCYUTr8mTW0 ste8gFfO2DzjmWhDTyfLfEa7Ik4MnER5BIesheLNhcCjVKkwZ5ScBMrDgbfzkCQxVgYX eZ8/w7ynWJBDnoyj8KVuRjiJ2vjN5NRS8fxWaG5jPYufo5289LDKEQp+pQYjotfW/eCq rpBw== X-Gm-Message-State: AO0yUKVDBM/WaAGP4vsAwBPHW19L3CXV9en2Lev8mPh9vRKNq9HrbN99 7t8VH+5jDSvWNh0cLxtNEtdfrMxzYGc= X-Google-Smtp-Source: AK7set9Il9XujsDeR3aGoSNqQlk1SbqJYRT6XqbD/sbE+R+f8PExD3AGBuBfMBIaHGhhDP749PouVw== X-Received: by 2002:a17:90b:1e0a:b0:23d:3698:8ee8 with SMTP id pg10-20020a17090b1e0a00b0023d36988ee8mr4773100pjb.31.1679514986143; Wed, 22 Mar 2023 12:56:26 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.56.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:56:25 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , Leon Romanovsky , Jason Gunthorpe , Leon Romanovsky Subject: [PATCH v3 06/80] RDMA/srp: Declare the SCSI host template const Date: Wed, 22 Mar 2023 12:54:01 -0700 Message-Id: <20230322195515.1267197-7-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SRP host template is not modified. Acked-by: Leon Romanovsky Signed-off-by: Bart Van Assche --- drivers/infiniband/ulp/srp/ib_srp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/ulp/srp/ib_srp.c b/drivers/infiniband/ulp/srp/ib_srp.c index df21b30b7735..3446fbf5a560 100644 --- a/drivers/infiniband/ulp/srp/ib_srp.c +++ b/drivers/infiniband/ulp/srp/ib_srp.c @@ -3077,7 +3077,7 @@ static struct attribute *srp_host_attrs[] = { ATTRIBUTE_GROUPS(srp_host); -static struct scsi_host_template srp_template = { +static const struct scsi_host_template srp_template = { .module = THIS_MODULE, .name = "InfiniBand SRP initiator", .proc_name = DRV_NAME, From patchwork Wed Mar 22 19:54:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184553 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 393A9C6FD1C for ; Wed, 22 Mar 2023 19:56:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230040AbjCVT4s (ORCPT ); Wed, 22 Mar 2023 15:56:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230045AbjCVT4h (ORCPT ); Wed, 22 Mar 2023 15:56:37 -0400 Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1DD205BDA9 for ; Wed, 22 Mar 2023 12:56:28 -0700 (PDT) Received: by mail-pl1-f171.google.com with SMTP id bc12so19685695plb.0 for ; Wed, 22 Mar 2023 12:56:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679514987; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qFxngvs+9YQWf/cm0pKR7KdAZBfNtlH0C+J3zrjYTbg=; b=SXI404o2mZgbtalFlLv9qKZyC+ruhuKt3AePmOSK4dIge65DxFwh0yzbt+EZ1iZ8da ihNVp/5ozhNkpB4T/kNh5GV0BT9aO70E2EH5bHXifbQxTRD2nERejVXNOOkw7Xb1kRhb pIAgeyWOSIjY4/y94lLJpopJNYk340dXoYw5Xc5elD63pQIqzE9hGjj2OuB1w6mIXTC0 QIdRwR5EmhMW7zK32605+U8Ppp8V+MGdKM3y/JxVZwyENB5Pw6BGffkjbABRSKhaqRhX B0JZs0+DUjYXf9V6SLsC2BnJ3B/gUBqGDPznNAp2u0EYiCoNdkAA9YbAfRwAEPFIuP7R awJQ== X-Gm-Message-State: AO0yUKWgDePfThw4bjuofDu2sqrDhIcL5HnplGFeQvyCep+HPMKtTSU3 Ze5G6PnRCukQYs2PItVe6OY= X-Google-Smtp-Source: AK7set/cjyI4n+K8eOrCXeBR7Z9Ch0RZa52H6mfj6/+1F8hjbRd17cKnv3wtWtxUWyfpj5ve8V1n0g== X-Received: by 2002:a17:90b:1d81:b0:23f:37b6:48f4 with SMTP id pf1-20020a17090b1d8100b0023f37b648f4mr4592575pjb.43.1679514987560; Wed, 22 Mar 2023 12:56:27 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.56.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:56:27 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , Sathya Prakash , Sreekanth Reddy , Suganath Prabu Subramani Subject: [PATCH v3 07/80] scsi: message: fusion: Declare SCSI host template members const Date: Wed, 22 Mar 2023 12:54:02 -0700 Message-Id: <20230322195515.1267197-8-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host templates are not modified. Signed-off-by: Bart Van Assche --- drivers/message/fusion/mptfc.c | 2 +- drivers/message/fusion/mptsas.c | 2 +- drivers/message/fusion/mptspi.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/message/fusion/mptfc.c b/drivers/message/fusion/mptfc.c index fac747109209..22e7779a332b 100644 --- a/drivers/message/fusion/mptfc.c +++ b/drivers/message/fusion/mptfc.c @@ -105,7 +105,7 @@ static int mptfc_abort(struct scsi_cmnd *SCpnt); static int mptfc_dev_reset(struct scsi_cmnd *SCpnt); static int mptfc_bus_reset(struct scsi_cmnd *SCpnt); -static struct scsi_host_template mptfc_driver_template = { +static const struct scsi_host_template mptfc_driver_template = { .module = THIS_MODULE, .proc_name = "mptfc", .show_info = mptscsih_show_info, diff --git a/drivers/message/fusion/mptsas.c b/drivers/message/fusion/mptsas.c index 88fe4a860ae5..86f16f3ea478 100644 --- a/drivers/message/fusion/mptsas.c +++ b/drivers/message/fusion/mptsas.c @@ -1997,7 +1997,7 @@ static enum scsi_timeout_action mptsas_eh_timed_out(struct scsi_cmnd *sc) } -static struct scsi_host_template mptsas_driver_template = { +static const struct scsi_host_template mptsas_driver_template = { .module = THIS_MODULE, .proc_name = "mptsas", .show_info = mptscsih_show_info, diff --git a/drivers/message/fusion/mptspi.c b/drivers/message/fusion/mptspi.c index 62089a8caa2f..6c5920db1e9d 100644 --- a/drivers/message/fusion/mptspi.c +++ b/drivers/message/fusion/mptspi.c @@ -820,7 +820,7 @@ static void mptspi_slave_destroy(struct scsi_device *sdev) mptscsih_slave_destroy(sdev); } -static struct scsi_host_template mptspi_driver_template = { +static const struct scsi_host_template mptspi_driver_template = { .module = THIS_MODULE, .proc_name = "mptspi", .show_info = mptscsih_show_info, From patchwork Wed Mar 22 19:54:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184554 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BA093C6FD1F for ; Wed, 22 Mar 2023 19:56:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230136AbjCVT4t (ORCPT ); Wed, 22 Mar 2023 15:56:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230051AbjCVT4k (ORCPT ); Wed, 22 Mar 2023 15:56:40 -0400 Received: from mail-pj1-f53.google.com (mail-pj1-f53.google.com [209.85.216.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 811F659E7B for ; Wed, 22 Mar 2023 12:56:29 -0700 (PDT) Received: by mail-pj1-f53.google.com with SMTP id f6-20020a17090ac28600b0023b9bf9eb63so20224035pjt.5 for ; Wed, 22 Mar 2023 12:56:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679514989; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9oXRTU4ppzyaVUobHzxub2u25mIEKjp/3zCfs4JzFS8=; b=2nT9d1kQtyyWzIZF6mYmpBKWFJSGdvtyCcpDYeORaDG1mMSLCeash1xo1JAwMjg3wK kThrjO3fm9Cfjb1N5C+ScdAX/utF0skdpa/xGs4woEJomaSy7afgtOnBoAKqwp7NR+A3 iD6pUl+ffc7jfi+J10tx3DyqEtw9hQDXEhQFlrY5hss+d1WcZ4hbEa6WdMBDiQliDxZZ lM7Llndgn1vs/APTdnBWTfWLJnshq8nXUhxV9jMBgOr+68mmOhMSAX6iGP4+Jx8bDTQh CMxvjisqfh5uM0IAu318KjrsJbiUAdNpS9IjAkXt/Fa12hB6nidYJ4iLQWf4QubAjW2Z t9Fg== X-Gm-Message-State: AO0yUKWq2fap4KipegqAbJx1S6pNr47RnQ1dgao0RFE8CqUTyC3HrGLS 5oCU5O6MhMLCUPiph8I6JceBl7SeBTA= X-Google-Smtp-Source: AK7set9qTZv5aVbCEFLqzmSMBRJ2JCY6/h7/hnrs9s4PMQRmcMqtCfL7i/cwza7Z6xkovYkMdyco/g== X-Received: by 2002:a17:90b:350e:b0:23f:2c65:fab7 with SMTP id ls14-20020a17090b350e00b0023f2c65fab7mr4714919pjb.42.1679514988965; Wed, 22 Mar 2023 12:56:28 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.56.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:56:28 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , Benjamin Block , Steffen Maier , Heiko Carstens , Vasily Gorbik , Alexander Gordeev Subject: [PATCH v3 08/80] scsi: zfcp: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:54:03 -0700 Message-Id: <20230322195515.1267197-9-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Acked-by: Benjamin Block Signed-off-by: Bart Van Assche --- drivers/s390/scsi/zfcp_scsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/s390/scsi/zfcp_scsi.c b/drivers/s390/scsi/zfcp_scsi.c index 3dbf4b21d127..b2a8cd792266 100644 --- a/drivers/s390/scsi/zfcp_scsi.c +++ b/drivers/s390/scsi/zfcp_scsi.c @@ -418,7 +418,7 @@ static int zfcp_scsi_sysfs_host_reset(struct Scsi_Host *shost, int reset_type) struct scsi_transport_template *zfcp_scsi_transport_template; -static struct scsi_host_template zfcp_scsi_host_template = { +static const struct scsi_host_template zfcp_scsi_host_template = { .module = THIS_MODULE, .name = "zfcp", .queuecommand = zfcp_scsi_queuecommand, From patchwork Wed Mar 22 19:54:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184556 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A2739C7619A for ; Wed, 22 Mar 2023 19:56:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230154AbjCVT4u (ORCPT ); Wed, 22 Mar 2023 15:56:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229995AbjCVT4k (ORCPT ); Wed, 22 Mar 2023 15:56:40 -0400 Received: from mail-pj1-f53.google.com (mail-pj1-f53.google.com [209.85.216.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 089A55BCA4 for ; Wed, 22 Mar 2023 12:56:31 -0700 (PDT) Received: by mail-pj1-f53.google.com with SMTP id gp15-20020a17090adf0f00b0023d1bbd9f9eso24686152pjb.0 for ; Wed, 22 Mar 2023 12:56:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679514990; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fMZZSzHNKzDNL64pOw/gqMY4JB5yYVuh2s/FZomE/a4=; b=wpb2rLWOXDmtAkgcpamPMhgk+CRsYn4fWuvBYccDHM9Ic8EU0bRW2kOqLVOKJZgZCS fzHzzwB23j++lSAue1ezErKlq8fmwkUKQzY2blZGeO/UZKUjK2JgeLBZGKa7DWVrYpga WqIP61kNrmw8L7cDdVoRga16M8m82c+I0qNK+gPrXQvFRJIHmfQqeACenbn+hKHAs2kY ouOCB9CuKEWhE0AivZ1BbK/QMcHUiS7+6w5lwIgefnWTDpXguxbsMob8bGqnxR+PH5db ZOBCs65iQA10ERem5CvdjLxdNZiFsa4Er0PWqaG+LXJoVOdbLyaoJrvDc10GklDb2naR TU9g== X-Gm-Message-State: AO0yUKXNpe7d4hZHQFTpvhUyhywI9VT33+g6W3n3/Chpg97btV9fwIlC tysdiQeMmZ2Aoz9Pss7q01g= X-Google-Smtp-Source: AK7set9Hpr0Jm2dXhg6mJO+SHaZReYA3JHmZIUvo3nc2gTKE/U1JI/EXGiF6KxUo7rLLM6VCyxk5CA== X-Received: by 2002:a17:90a:1918:b0:23a:8d71:99d with SMTP id 24-20020a17090a191800b0023a8d71099dmr4800136pjg.22.1679514990479; Wed, 22 Mar 2023 12:56:30 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.56.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:56:29 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , Adam Radford , "James E.J. Bottomley" Subject: [PATCH v3 09/80] scsi: 3w-9xxx: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:54:04 -0700 Message-Id: <20230322195515.1267197-10-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche --- drivers/scsi/3w-9xxx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/scsi/3w-9xxx.c b/drivers/scsi/3w-9xxx.c index 6cb9cca9565b..38d20a69ee12 100644 --- a/drivers/scsi/3w-9xxx.c +++ b/drivers/scsi/3w-9xxx.c @@ -1976,8 +1976,7 @@ static int twa_slave_configure(struct scsi_device *sdev) return 0; } /* End twa_slave_configure() */ -/* scsi_host_template initializer */ -static struct scsi_host_template driver_template = { +static const struct scsi_host_template driver_template = { .module = THIS_MODULE, .name = "3ware 9000 Storage Controller", .queuecommand = twa_scsi_queue, From patchwork Wed Mar 22 19:54:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184558 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CB4D8C6FD1C for ; Wed, 22 Mar 2023 19:56:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230169AbjCVT4y (ORCPT ); Wed, 22 Mar 2023 15:56:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230064AbjCVT4n (ORCPT ); Wed, 22 Mar 2023 15:56:43 -0400 Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 763CB5ADF4 for ; Wed, 22 Mar 2023 12:56:32 -0700 (PDT) Received: by mail-pl1-f173.google.com with SMTP id o2so12884226plg.4 for ; Wed, 22 Mar 2023 12:56:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679514992; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wlyhrjS/HEDGCdAm7rlCI5/1sqj4pYqwf5Yq1hTnrno=; b=4WQl2rd9fqYY6rQiAsPEyK3YSTagiimP/xOa0Kmb3RErvnfFsK7c2403dOqfs+IMxZ aXcYnTZ/e3flALU34SQ3jdpjdi2vMCO7mC+vcucpIbcvLBUTjSofRlF2gZCCLqgxNmyU r0A+Sznasf9lJzcY7O6PP5f/RwEQ3CRF0TbVplovrgezZYx+qHgtRRiiu+ZFU3ue23dT 4nwF3xH9sUbCWHbDcOHJCoon/JGuy0KKmqPDFw+R6Qf0PR0Rot+MZO6l214dffzy8giI gtXwFjXrMlgsegjgQkFUVWjXTyy6zLW6+/Qjamr8hJ7FghCQzDGyHkPUnQtQ2wuDaO0q uSGQ== X-Gm-Message-State: AO0yUKX8VhNY8tPhp48Zr/fIZmJDxToGtLkhta+Id/NvKHZrwe5xncdc iWVMcDCJcHl7M06bjlggvkVzPIEAgHI= X-Google-Smtp-Source: AK7set8jShp4aZ69rpZlLyVg4jeW4inWmOlLsL8c/lzGbN/YDCYUnCXyA1s7jb8w7/tm2TsHkFMJhQ== X-Received: by 2002:a17:90b:4c04:b0:23f:5ab0:68a2 with SMTP id na4-20020a17090b4c0400b0023f5ab068a2mr4764936pjb.40.1679514991884; Wed, 22 Mar 2023 12:56:31 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.56.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:56:31 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , Adam Radford , "James E.J. Bottomley" Subject: [PATCH v3 10/80] scsi: 3w-sas: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:54:05 -0700 Message-Id: <20230322195515.1267197-11-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche --- drivers/scsi/3w-sas.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/scsi/3w-sas.c b/drivers/scsi/3w-sas.c index f41c93454f0c..55989eaa2d9f 100644 --- a/drivers/scsi/3w-sas.c +++ b/drivers/scsi/3w-sas.c @@ -1530,8 +1530,7 @@ static int twl_slave_configure(struct scsi_device *sdev) return 0; } /* End twl_slave_configure() */ -/* scsi_host_template initializer */ -static struct scsi_host_template driver_template = { +static const struct scsi_host_template driver_template = { .module = THIS_MODULE, .name = "3w-sas", .queuecommand = twl_scsi_queue, From patchwork Wed Mar 22 19:54:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184557 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 208C7C6FD1F for ; Wed, 22 Mar 2023 19:56:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230165AbjCVT4w (ORCPT ); Wed, 22 Mar 2023 15:56:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230056AbjCVT4n (ORCPT ); Wed, 22 Mar 2023 15:56:43 -0400 Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com [209.85.216.48]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB60A5BC9D for ; Wed, 22 Mar 2023 12:56:33 -0700 (PDT) Received: by mail-pj1-f48.google.com with SMTP id qe8-20020a17090b4f8800b0023f07253a2cso20231531pjb.3 for ; Wed, 22 Mar 2023 12:56:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679514993; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=NNIBPT74zB8cP9y9PhKNlxYuRy1lcz2hltLytVbDwLc=; b=fNHxKDsVF69JOyCeEZEbCM4O5185bmUZorvD/JjO38Z8Qk6PQmUcI0gE+WWNgYFGXW 3wKM1pw0sdGWXbgQzE5Nk9sEP+J6VWzKqSUwljw9PtUWHYQQZgSQ3coBJ10+YbLKgkXy AulDXv7Y3vJrFY3l8bxYtKQOPfZr1U+D0k5iX9g8+KI90vCvUhC3Laci9g1CTwmEkfV+ IWDtKvygtNFtGCBNGIC1cqLuFJKmEfl0JK6mliV1HzTTs9tenW9LMRS/3chNGVvFkS9w QB2FfuxCcaRNXDbCnV/BH+2SQp+H5vFwmjcEtO8bKssR2CSKlEHKEuOfC1pJR8i56nvk LvLQ== X-Gm-Message-State: AAQBX9egmH1lFjJKzEb3AVYjCIutyEohy+gya9MakUDxxrgU3vx0bXXe WQTzLaj/GV0URxfyZ9YYSekygbFl0fU= X-Google-Smtp-Source: AKy350ZX1RbZe8w7dK9jfyslHl5Q15euHPi+0UcizHOTPgkuG4MapswclEyalbPwT5bYpPz5x9Yy1g== X-Received: by 2002:a17:90a:f093:b0:23f:2486:5b53 with SMTP id cn19-20020a17090af09300b0023f24865b53mr3187923pjb.17.1679514993151; Wed, 22 Mar 2023 12:56:33 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.56.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:56:32 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , Adam Radford , "James E.J. Bottomley" Subject: [PATCH v3 11/80] scsi: 3w-xxxx: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:54:06 -0700 Message-Id: <20230322195515.1267197-12-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche --- drivers/scsi/3w-xxxx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/3w-xxxx.c b/drivers/scsi/3w-xxxx.c index ffdecb12d654..36c34ced0cc1 100644 --- a/drivers/scsi/3w-xxxx.c +++ b/drivers/scsi/3w-xxxx.c @@ -2229,7 +2229,7 @@ static int tw_slave_configure(struct scsi_device *sdev) return 0; } /* End tw_slave_configure() */ -static struct scsi_host_template driver_template = { +static const struct scsi_host_template driver_template = { .module = THIS_MODULE, .name = "3ware Storage Controller", .queuecommand = tw_scsi_queue, From patchwork Wed Mar 22 19:54:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184559 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4F506C6FD1F for ; Wed, 22 Mar 2023 19:57:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230186AbjCVT47 (ORCPT ); Wed, 22 Mar 2023 15:56:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230074AbjCVT4n (ORCPT ); Wed, 22 Mar 2023 15:56:43 -0400 Received: from mail-pj1-f52.google.com (mail-pj1-f52.google.com [209.85.216.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D608D5BD8A for ; Wed, 22 Mar 2023 12:56:34 -0700 (PDT) Received: by mail-pj1-f52.google.com with SMTP id j3-20020a17090adc8300b0023d09aea4a6so24641567pjv.5 for ; Wed, 22 Mar 2023 12:56:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679514994; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Wvru8kVY2I3MSun55wPTjy7EC406KfhAV63CSzUeJMc=; b=e32GONq6vuNiMJsfSFXmkbPkLk/m9B8KD76Nd6ViGVODLR779uqu8JiF4sCZmuHv2e /jyPkJWTtVyn6udko6YOIleM/63vIIqfvLLBe84lKR7PChtE5mKEedZRiyFgG2qkw2Sp t/7QtO3TQW8ECzn3EHDcZZASDsxghRqNjl63Gg/hvA0wKbqtoFvZX8ktD1rsUR0sWaVG Mb6472WdZ413OdGDGKEFiBa28wBdj0gkhDAm1AabXRNFL8iiJjHNQ3NzYXOCNJLtvwc7 kC2W8NDkulh64e2ZU1TMF11+dF5zT0QdD37QzVdGuLW//FCARFiXDWpBt9iA7dVywlFT o9Qw== X-Gm-Message-State: AO0yUKUc3HJGJh/HdgrpoTTTVjT172qmrykb8tL2ACI31EK6RPKndbmR 3wM+J4KtE+Da2fHR/RiCGO0= X-Google-Smtp-Source: AK7set8HIpdM4JgLBZOjoV3ptUVa++sxeD7qvtY5ZIsAk7xwgz69W0KSsXMfdcjWU2JWAe/vSiloNQ== X-Received: by 2002:a17:90b:3eca:b0:23d:e0c1:8b8e with SMTP id rm10-20020a17090b3eca00b0023de0c18b8emr4855475pjb.17.1679514994338; Wed, 22 Mar 2023 12:56:34 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.56.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:56:33 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , Khalid Aziz , "James E.J. Bottomley" Subject: [PATCH v3 12/80] scsi: BusLogic: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:54:07 -0700 Message-Id: <20230322195515.1267197-13-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Acked-by: Khalid Aziz Signed-off-by: Bart Van Assche --- 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_write_info, From patchwork Wed Mar 22 19:54:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184560 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E1704C76196 for ; Wed, 22 Mar 2023 19:57:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230194AbjCVT5A (ORCPT ); Wed, 22 Mar 2023 15:57:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230075AbjCVT4n (ORCPT ); Wed, 22 Mar 2023 15:56:43 -0400 Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F36B15B5CF for ; Wed, 22 Mar 2023 12:56:35 -0700 (PDT) Received: by mail-pl1-f169.google.com with SMTP id o2so12884365plg.4 for ; Wed, 22 Mar 2023 12:56:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679514995; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=H9QNk6q17I8CdJSB5JsrnuqP/ZBn9pNyTOjnOStZX4E=; b=OkSZBPv3L5XE+QtJE7aVzsGlFa0KM5SDl6KJAKfhLhxfGy4gA7ufaGXeuWLPzX40vz 9jMiS1ZaH+SntJqdc+6bG0b/QS74pCvtdc6ftA0Pum6TQMaRBgwasoIkA9QJFwy4OnYg RE3zl3wVoRIhkWeg+4viR4Pga/oTnQtx3ioFOc2q6HxOEEH8M7Iev239jtP+gkDaBFro rYO7wpd8wGlU0kTKmydXOfvhN4ZGHlN4KE0IRHyOpFGHpSpfYgpeSQKt1KG0DFA1gKN9 E7pa2UserpeSPR9OL1fsoMI44E+jR1BaKXaEBbFw98W4GwM2jIOPhcUBXkIzonw8ESc1 AGwA== X-Gm-Message-State: AO0yUKWWJAj7XJLc+ZLKs/jGiWEhcCG+JyESRcDHV7B+xydApHWF1480 3ZV3nkfYmTDHd/beyTwAIRg= X-Google-Smtp-Source: AK7set/SxTj9zihr+Mu1q7hG62qnY/tprk3ivF2U3ZV/Z0W9eb2d07Imkr6QhKcU+NP6nbimDN+YvA== X-Received: by 2002:a17:90b:1d8c:b0:237:b4c0:e15b with SMTP id pf12-20020a17090b1d8c00b00237b4c0e15bmr4938606pjb.44.1679514995473; Wed, 22 Mar 2023 12:56:35 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.56.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:56:35 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , "James E.J. Bottomley" Subject: [PATCH v3 13/80] scsi: a100u2w: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:54:08 -0700 Message-Id: <20230322195515.1267197-14-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche --- drivers/scsi/a100u2w.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/a100u2w.c b/drivers/scsi/a100u2w.c index d02eb5b213d0..b95147fb18b0 100644 --- a/drivers/scsi/a100u2w.c +++ b/drivers/scsi/a100u2w.c @@ -1065,7 +1065,7 @@ static irqreturn_t inia100_intr(int irqno, void *devid) return res; } -static struct scsi_host_template inia100_template = { +static const struct scsi_host_template inia100_template = { .proc_name = "inia100", .name = inia100_REVID, .queuecommand = inia100_queue, From patchwork Wed Mar 22 19:54:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184562 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 458AAC76196 for ; Wed, 22 Mar 2023 19:57:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230267AbjCVT5I (ORCPT ); Wed, 22 Mar 2023 15:57:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230047AbjCVT4r (ORCPT ); Wed, 22 Mar 2023 15:56:47 -0400 Received: from mail-pj1-f44.google.com (mail-pj1-f44.google.com [209.85.216.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5460F61AB8 for ; Wed, 22 Mar 2023 12:56:37 -0700 (PDT) Received: by mail-pj1-f44.google.com with SMTP id e15-20020a17090ac20f00b0023d1b009f52so24654036pjt.2 for ; Wed, 22 Mar 2023 12:56:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679514997; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xOqT7dLP4YcCtL1jZVtGdq9lau6Z+QsWChHpf/+Jq3I=; b=OIDQfUyaQ2eejhuZtGIVEBYpWEJg4S/LR22QAY+JCkRFZXZ4oU7BYFVNhydhB1B/sU OwpGQ2JD/WsGKi14y1pwds8Sk1ctUo6OHzfkedTYb15fSvmWLrXYgEaZPx2BODBwspuA iKby2FLC82zSpc/LBK+Kyk6z2JW/TKPC6xjFBa9PFpT2fkuBZVRXBGhdX8SpVOWEdD+B 2mhjR0/V3ajeD/vApEhd0cA+77OeOg4k798/uUYJ9B01qjq28/I2pK4GN1GG1CIssK0Y PHFWtt53Uk78ZE1aY9twcVSOwWRTshQ3MXe+xq0Pavq8hBxQLxwONWT72X1O5EZyU8HA MmEQ== X-Gm-Message-State: AO0yUKWy9cj9wCWvc+82HQM3BMjLmzYk5H2+xEKKF8/nAOqyWbksfnwt JrL+GC+0hfjN76OZF5ce568= X-Google-Smtp-Source: AK7set9jzNuu3QaDD0+DoKXEIRcf9y2bSKHFqj2hcgUBO5XXvGbP2unr5vy+Rqf57OnbmBadLyxRQg== X-Received: by 2002:a17:90b:1d10:b0:23f:2661:f94c with SMTP id on16-20020a17090b1d1000b0023f2661f94cmr4902838pjb.47.1679514996776; Wed, 22 Mar 2023 12:56:36 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.56.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:56:36 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , "James E.J. Bottomley" Subject: [PATCH v3 14/80] scsi: a2091: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:54:09 -0700 Message-Id: <20230322195515.1267197-15-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche --- drivers/scsi/a2091.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/a2091.c b/drivers/scsi/a2091.c index 74312400468b..204448bfd04b 100644 --- a/drivers/scsi/a2091.c +++ b/drivers/scsi/a2091.c @@ -180,7 +180,7 @@ static void dma_stop(struct Scsi_Host *instance, struct scsi_cmnd *SCpnt, } } -static struct scsi_host_template a2091_scsi_template = { +static const struct scsi_host_template a2091_scsi_template = { .module = THIS_MODULE, .name = "Commodore A2091/A590 SCSI", .show_info = wd33c93_show_info, From patchwork Wed Mar 22 19:54:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184561 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C0DC2C6FD1F for ; Wed, 22 Mar 2023 19:57:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230250AbjCVT5H (ORCPT ); Wed, 22 Mar 2023 15:57:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230111AbjCVT4r (ORCPT ); Wed, 22 Mar 2023 15:56:47 -0400 Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCF5964B31 for ; Wed, 22 Mar 2023 12:56:39 -0700 (PDT) Received: by mail-pl1-f175.google.com with SMTP id z19so9875293plo.2 for ; Wed, 22 Mar 2023 12:56:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679514999; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9O+CFHroXeGMQJXjLpdEI2pqL5MGU1cKW/jyaRLyaNA=; b=hRtib4bD4kxfz8nrf8D6c4U1BNBi1noIt4hj29RyQ58ZFPDn8iVIkyyxp4ZgvcYNiw /cNK8Khubw75Q3Aft75Od6r3GUs9zOVha3lxyq2GOxweoLm/oBoU3qe/gztei1S0ARWk d1eZtwSSKkJ9G/vPXp6vbyibYmhZU8Pp4pZuGPL3tQNHu6/uYQjBs4CSAGyv4I4yT2Se JLUyohwfGlTneEwWZLHIjwmafCZQBQuMlwsVy41GYjbyUkLxMZZzZ3wqHyIoEK8BwZnc gq2XVpq8Hx0Vi2Fu/fpv2ilU/DdT7ySnvzDqU+9+HRnLazSSIT3/p+z9aOoywkRoA63h WOAA== X-Gm-Message-State: AO0yUKVeDa8foXiLEF1sAfNsD0Yf3vGYLuE1yTq2jqTeWXKNVFNpGxn9 fljJAZ2f/BUTSxv03y3JmyBIF1jKM5w= X-Google-Smtp-Source: AK7set86EPmNgSi1ceSGRTzKoEcPv+9G9d4D7eIFgQPzb2X7euHdb/KH20bQR+aWFc3JPF+pNEgUBw== X-Received: by 2002:a17:90b:4c49:b0:23d:a2a:3ae4 with SMTP id np9-20020a17090b4c4900b0023d0a2a3ae4mr5231608pjb.44.1679514999341; Wed, 22 Mar 2023 12:56:39 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.56.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:56:37 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , "James E.J. Bottomley" Subject: [PATCH v3 15/80] scsi: a3000: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:54:10 -0700 Message-Id: <20230322195515.1267197-16-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche --- drivers/scsi/a3000.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/a3000.c b/drivers/scsi/a3000.c index 2c5cb1a02e86..c3028726bbe4 100644 --- a/drivers/scsi/a3000.c +++ b/drivers/scsi/a3000.c @@ -197,7 +197,7 @@ static void dma_stop(struct Scsi_Host *instance, struct scsi_cmnd *SCpnt, } } -static struct scsi_host_template amiga_a3000_scsi_template = { +static const struct scsi_host_template amiga_a3000_scsi_template = { .module = THIS_MODULE, .name = "Amiga 3000 built-in SCSI", .show_info = wd33c93_show_info, From patchwork Wed Mar 22 19:54:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184563 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AF3DAC6FD1F for ; Wed, 22 Mar 2023 19:57:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230294AbjCVT5K (ORCPT ); Wed, 22 Mar 2023 15:57:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230128AbjCVT4t (ORCPT ); Wed, 22 Mar 2023 15:56:49 -0400 Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3392764B2E for ; Wed, 22 Mar 2023 12:56:41 -0700 (PDT) Received: by mail-pl1-f174.google.com with SMTP id u5so20277702plq.7 for ; Wed, 22 Mar 2023 12:56:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515000; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BuZNm7pWcFvgUfK4cHpVc5oD6Ukdo+4KIxZBo5YAOF4=; b=747AO4m1cBCcs2gtchQJANvBhQeN+OnRvyPKgYqDHlNJ3gyAKquX+qy0+N4c4G6kl9 bWOBalJASiSJABrEXt03IB4Igmj3s94jEEcO42hLMn1leek+yMt2Hl+db7S8eEaq8Cml DwR9SG47QiTuPjbw5ZRDFdQoqUyaWIiVy0ENN4ofberBbACEczjZ5L0aNqxyiH++GLYS vqnICXwwymieFXmsa/vifHB5rQbay0kaRlMhQckGr/0VhlVW8s3zjdiH8NzNpUGFikqt 45IYbg9Z7aX1nXkh8O1rIZ6JDp5lIEODH+ky0D4XrtDcPMGW7yFB2f7LzaO0W2ScqejZ FUFQ== X-Gm-Message-State: AO0yUKV8aYDXz6pKLXh6FAtvq3YEev+vCha7vll4kAbQaMKrxxRYpVwF l+TUeunrxwbr6e8YhSH2hduaWFjB5sY= X-Google-Smtp-Source: AK7set/t+RgLyBv4ZNktRWHKx68fqY6Ssli3pQCyfmGXgMwRLfNmv+vJLfGtrzZc0+pWzR8vfuW2rw== X-Received: by 2002:a17:90b:3ece:b0:229:f4f3:e904 with SMTP id rm14-20020a17090b3ece00b00229f4f3e904mr5589233pjb.11.1679515000591; Wed, 22 Mar 2023 12:56:40 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.56.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:56:40 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , Adaptec OEM Raid Solutions , "James E.J. Bottomley" Subject: [PATCH v3 16/80] scsi: aacraid: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:54:11 -0700 Message-Id: <20230322195515.1267197-17-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche --- drivers/scsi/aacraid/linit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/aacraid/linit.c b/drivers/scsi/aacraid/linit.c index 43160bf4d6a8..68f4dbcfff49 100644 --- a/drivers/scsi/aacraid/linit.c +++ b/drivers/scsi/aacraid/linit.c @@ -1475,7 +1475,7 @@ static const struct file_operations aac_cfg_fops = { .llseek = noop_llseek, }; -static struct scsi_host_template aac_driver_template = { +static const struct scsi_host_template aac_driver_template = { .module = THIS_MODULE, .name = "AAC", .proc_name = AAC_DRIVERNAME, From patchwork Wed Mar 22 19:54:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184564 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AAFB8C76196 for ; Wed, 22 Mar 2023 19:57:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230081AbjCVT5M (ORCPT ); Wed, 22 Mar 2023 15:57:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230184AbjCVT47 (ORCPT ); Wed, 22 Mar 2023 15:56:59 -0400 Received: from mail-pj1-f46.google.com (mail-pj1-f46.google.com [209.85.216.46]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B50064B39 for ; Wed, 22 Mar 2023 12:56:42 -0700 (PDT) Received: by mail-pj1-f46.google.com with SMTP id fy10-20020a17090b020a00b0023b4bcf0727so20261292pjb.0 for ; Wed, 22 Mar 2023 12:56:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515002; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0DwKfQtFgIgqVRLk7CJqp+SWpc3PgTs6DS8lVIZ4b8Q=; b=JjjVEeg6qqptlutwM00RQs4MQ4N3Y1nntoYujRoLrIKp4x8kaytDChw8B0oi1FSF6t tV9uiIkFJ2WmNXlegPRnXzA/ej0WKAnEx7vNQtbAhfdyyqAUSx/5O1Jif5qbuOnn7hwH MV5wtYzLvAxl9JyTVFvTJ/gL5PbGJPZvzQAnusQcsnGU71coIx/JTnuzx1/RRVlI5ohc B6YJ2PSIgjUaY3VLR0RAtbBaxuckhV2fPHj7GP4gg01FB0lWW5l2z06m48aDy4djr7kz 6GeqzhQIV28TaYSUsBbhy6+dYBymVhetpq43jAWejz1wuhKa0yck+25nCMO2uTU7tT8X Kjxw== X-Gm-Message-State: AO0yUKVYgXiDC9frz5C2Qn3AUl6mGZRtaxJ13308WsfvPPtpA0eOCt6u RaHg1RVZ6f1SyLWZeHbwq59kXilBdIE= X-Google-Smtp-Source: AK7set+rgPJYEVk8CNWvKywYkSlFy1a4/nvyzHwFGSTa2FFLxQsHAXDjXs5zLpZGQOQ0hWPlBtvhtQ== X-Received: by 2002:a17:90a:191e:b0:233:76bd:9faa with SMTP id 30-20020a17090a191e00b0023376bd9faamr5022064pjg.47.1679515001763; Wed, 22 Mar 2023 12:56:41 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.56.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:56:41 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , Matthew Wilcox , Hannes Reinecke , "James E.J. Bottomley" Subject: [PATCH v3 17/80] scsi: advansys: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:54:12 -0700 Message-Id: <20230322195515.1267197-18-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche --- drivers/scsi/advansys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/advansys.c b/drivers/scsi/advansys.c index f301aec044bb..ab066bb27a57 100644 --- a/drivers/scsi/advansys.c +++ b/drivers/scsi/advansys.c @@ -10602,7 +10602,7 @@ static int AdvInitGetConfig(struct pci_dev *pdev, struct Scsi_Host *shost) } #endif -static struct scsi_host_template advansys_template = { +static const struct scsi_host_template advansys_template = { .proc_name = DRV_NAME, #ifdef CONFIG_PROC_FS .show_info = advansys_show_info, From patchwork Wed Mar 22 19:54:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184565 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 48E7AC6FD1F for ; Wed, 22 Mar 2023 19:57:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230376AbjCVT5T (ORCPT ); Wed, 22 Mar 2023 15:57:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230083AbjCVT5H (ORCPT ); Wed, 22 Mar 2023 15:57:07 -0400 Received: from mail-pj1-f45.google.com (mail-pj1-f45.google.com [209.85.216.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4DFB5B5CC for ; Wed, 22 Mar 2023 12:56:43 -0700 (PDT) Received: by mail-pj1-f45.google.com with SMTP id d13so19538318pjh.0 for ; Wed, 22 Mar 2023 12:56:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515003; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/+RYutzjDsUywQB4KXngUgj4Hi0F5p617CUW9BmtH8E=; b=fD1W2udmAAtsGtBPwagYIxFw28Qoh6N4EsBRwIzRQUDLcR7/60giG6vzuESJk+/U2M uhtMoiMhrJCfX1yAuynKv8LQoCX4LWE2WWkAKfUqu8rlL5wwhLW43kMrdoRnGiFPqFe1 WkoGX6xYb2kibl0yOk+MhlWCxIjZPR5XGbsQ5uMBcL13ZF8prQgWfolslcVfiRzx/+gw e8reblGojuXtv2sRAu/g17e67KEvwKx/PD9ebgt17QQVfFWbZxJfzdhiaiQ4tOEZHRO8 F1cXFglYfrx8BvKnOpLg+O8tTw5RsKC4gFq9ysZPREgyU71LEkRb1n8bg2NNoHkZkFHo 3xuA== X-Gm-Message-State: AO0yUKWW/oH4JRipXrEkyH0vYXmIdHwO6tBiWlPZuVVTv6wPhnaL/nZj sDyl8VVf7xvcRvGOQ0t0zbw= X-Google-Smtp-Source: AK7set+U++6oWAQ+D5hbM/DvOwqfiJB1mc00+fwzBt+yDR8SnI+bgWmR1cnd1AzYB4O2GihxHWRMuQ== X-Received: by 2002:a17:90b:33c7:b0:23c:feb9:2cea with SMTP id lk7-20020a17090b33c700b0023cfeb92ceamr4560692pjb.42.1679515003095; Wed, 22 Mar 2023 12:56:43 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.56.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:56:42 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , "Juergen E. Fischer" , "James E.J. Bottomley" Subject: [PATCH v3 18/80] scsi: aha152x: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:54:13 -0700 Message-Id: <20230322195515.1267197-19-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche --- drivers/scsi/aha152x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/aha152x.c b/drivers/scsi/aha152x.c index caeebfb67149..055adb349b0e 100644 --- a/drivers/scsi/aha152x.c +++ b/drivers/scsi/aha152x.c @@ -400,7 +400,7 @@ MODULE_DEVICE_TABLE(isapnp, id_table); #endif /* !AHA152X_PCMCIA */ -static struct scsi_host_template aha152x_driver_template; +static const struct scsi_host_template aha152x_driver_template; /* * internal states of the host @@ -2946,7 +2946,7 @@ static int aha152x_adjust_queue(struct scsi_device *device) return 0; } -static struct scsi_host_template aha152x_driver_template = { +static const struct scsi_host_template aha152x_driver_template = { .module = THIS_MODULE, .name = AHA152X_REVID, .proc_name = "aha152x", From patchwork Wed Mar 22 19:54:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184566 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 81C81C6FD1C for ; Wed, 22 Mar 2023 19:57:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230381AbjCVT5V (ORCPT ); Wed, 22 Mar 2023 15:57:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230257AbjCVT5H (ORCPT ); Wed, 22 Mar 2023 15:57:07 -0400 Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A92D59E7B for ; Wed, 22 Mar 2023 12:56:45 -0700 (PDT) Received: by mail-pl1-f181.google.com with SMTP id w4so12214651plg.9 for ; Wed, 22 Mar 2023 12:56:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515004; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=NCdcj3LpvEBy9di6orhMZ8/sN2tsh1WV92aSckv+nIs=; b=QnmqXmMfB42cUpr1ARQtwo9Gv7qo/YwECgbr7gBGGc73vwPXzohQ7YSGo21mKz8tD/ HtJrTlDlwEb0xi/ml35NQ8GXUIdW76pjQ4FymIB4WH9s2i3nPNLj7PQWquKCwp+G9rgx Vkep+z1q+J+AW5b1rfX4K+mbdAU2qvs8tCvgq72vLYNNqqGMtzfT0abYNc4GF+lZWKaW BqFIT7+yUKHysrqMp89Dw9WrJZ+aZREhl6PUIjQ5FaB7YJdQ+q2/3q9FdSDD3lLD8m2X HIf2zetTktcyY4RNyOKc0/RmPomcwcVJIwjSUXy5HC/HM6Lk2G0kBSpbLYpn6yuQ6+mg EA3w== X-Gm-Message-State: AO0yUKVrHJ64uo6dOgVkoC7gv+WyxR1VaMSZYBEB6RtjanycEfUsIZjQ fdq9UMn8Q6MPNwZbclgpRBnNYA9R/c8= X-Google-Smtp-Source: AK7set8ZiJq+9pWEaU7WNwnn0NUmgfVa1SZ4sHCwQ7z6gNIAn9fJwp5SXnHEYKHQ0aCeH+U1zmFpeg== X-Received: by 2002:a17:90b:1b41:b0:23f:7666:c8a5 with SMTP id nv1-20020a17090b1b4100b0023f7666c8a5mr4911918pjb.29.1679515004363; Wed, 22 Mar 2023 12:56:44 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.56.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:56:44 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , "James E.J. Bottomley" Subject: [PATCH v3 19/80] scsi: aha1542: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:54:14 -0700 Message-Id: <20230322195515.1267197-20-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche --- drivers/scsi/aha1542.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/aha1542.c b/drivers/scsi/aha1542.c index 552ca95157da..9503996c6325 100644 --- a/drivers/scsi/aha1542.c +++ b/drivers/scsi/aha1542.c @@ -737,7 +737,8 @@ static void aha1542_set_bus_times(struct Scsi_Host *sh, int bus_on, int bus_off, } /* return non-zero on detection */ -static struct Scsi_Host *aha1542_hw_init(struct scsi_host_template *tpnt, struct device *pdev, int indx) +static struct Scsi_Host *aha1542_hw_init(const struct scsi_host_template *tpnt, + struct device *pdev, int indx) { unsigned int base_io = io[indx]; struct Scsi_Host *sh; @@ -1031,7 +1032,7 @@ static int aha1542_exit_cmd_priv(struct Scsi_Host *shost, struct scsi_cmnd *cmd) return 0; } -static struct scsi_host_template driver_template = { +static const struct scsi_host_template driver_template = { .module = THIS_MODULE, .proc_name = "aha1542", .name = "Adaptec 1542", From patchwork Wed Mar 22 19:54:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184567 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 06664C76196 for ; Wed, 22 Mar 2023 19:57:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230482AbjCVT5n (ORCPT ); Wed, 22 Mar 2023 15:57:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230343AbjCVT5S (ORCPT ); Wed, 22 Mar 2023 15:57:18 -0400 Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C48DC6703A for ; Wed, 22 Mar 2023 12:56:53 -0700 (PDT) Received: by mail-pl1-f174.google.com with SMTP id kq3so7893476plb.13 for ; Wed, 22 Mar 2023 12:56:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515013; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=PUVyuRxOnhRj9LsT5qhnnwF2XXY/eNUcYo7//Y4UXag=; b=kT9jJoX6HqPzqs4TuNnIW1QlWCOd1qRW6LxdzM0G1tKsuhuJ91iFDUw78450Ep+jPd mlbZbQAlJIgN8YjxoSkNn+EyJvm00jOsh5iFt66bw1tjMR8bHdWgioHeL3P1TK5BuT7v afPclIMjyLD1msIHlr31yQDHBA4emzk5krsJjxO4Sz+9aAYneppKL0y0eBKIfeFKVpiI XwWGzJF0XnSLpzlVtC/wFKnJuMupsd3DdM2eEMP2ox0vWAX97cMw6avSHP9tLfFJ7TPF IgFXaLBzqfTrutnxF8gIprIWQxLVeX6ZWhyleelIthuLbI3sapSi1Me/U1TuIaMTKRWo OfAw== X-Gm-Message-State: AO0yUKWjulFyMQl24oRFPL4Jjtnfy1uAl7hjm+g4aR1Tb5TJEzSC5Ynl kSag9/gknvC+8LeKAk6NDD1Z5+9tx+U= X-Google-Smtp-Source: AK7set8+JlnWyclBGFvcI+E2HnhjP2L/feifYNmWqmhbvqCopT7x0FIc/aXIHJH2nCxMIyo/302CnQ== X-Received: by 2002:a17:90a:df08:b0:23b:3b3a:54c2 with SMTP id gp8-20020a17090adf0800b0023b3b3a54c2mr4247954pjb.48.1679515013350; Wed, 22 Mar 2023 12:56:53 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.56.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:56:52 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , "James E.J. Bottomley" Subject: [PATCH v3 20/80] scsi: aic94xx: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:54:15 -0700 Message-Id: <20230322195515.1267197-21-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche --- drivers/scsi/aic94xx/aic94xx_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/aic94xx/aic94xx_init.c b/drivers/scsi/aic94xx/aic94xx_init.c index 954d0c5ae2e2..f7f81f6c3fbf 100644 --- a/drivers/scsi/aic94xx/aic94xx_init.c +++ b/drivers/scsi/aic94xx/aic94xx_init.c @@ -35,7 +35,7 @@ static struct scsi_transport_template *aic94xx_transport_template; static int asd_scan_finished(struct Scsi_Host *, unsigned long); static void asd_scan_start(struct Scsi_Host *); -static struct scsi_host_template aic94xx_sht = { +static const struct scsi_host_template aic94xx_sht = { .module = THIS_MODULE, /* .name is initialized */ .name = "aic94xx", From patchwork Wed Mar 22 19:54:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184568 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3E51EC6FD1C for ; Wed, 22 Mar 2023 19:57:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230384AbjCVT5x (ORCPT ); Wed, 22 Mar 2023 15:57:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230382AbjCVT5Y (ORCPT ); Wed, 22 Mar 2023 15:57:24 -0400 Received: from mail-pj1-f51.google.com (mail-pj1-f51.google.com [209.85.216.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B57E969235 for ; Wed, 22 Mar 2023 12:57:02 -0700 (PDT) Received: by mail-pj1-f51.google.com with SMTP id om3-20020a17090b3a8300b0023efab0e3bfso24514261pjb.3 for ; Wed, 22 Mar 2023 12:57:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515022; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mY8n6qv9N8LLv7AQOqbt+4UIwP3Foxsx5uXdnkkfbhc=; b=wQaX3DnXlvTQCHH/+KrO8hspnjNpUrRltKx8OiXXSjlVjQaigm/YSPT4kUeJE8cuf5 1oViMbuKGC5zu+pfoNMrocOasm7iD5aJxuIiYKO4WzBmUEA+qE+Yb99X8Uflcsyn8Rle yzvvORliIjMutk3a+jubE97TTNA+E3RzSvP6Gcp3vb5vJbEeizQOQxKupvlsEByohBXO +IFUXR/zZg0VkNT+GnVfve40uSyPGf6QHiMRspl/UmEnfCGV5zd26bNALjgCBQC3OyZp 7pv6LF3w8j/ikEHRb1/hnonbK7M9SFLJNQbfuM5PZjjdJe2ozFnGDVgWqFz6k/Nq9zhz rb/g== X-Gm-Message-State: AO0yUKWaNR07E3Q4noKT3TmuiFmt1i86vI27zeXjur7lS8ynZyQHtMK3 MvbjxLrijt8ixBn/qhJ3/i0= X-Google-Smtp-Source: AK7set+ZzEN9KtFA9OihnAQAMhYbBLTOKxd3rrhYNm8uZM2ceD9ViW3DWRWjTJ1oqiWIU+SwqpItXg== X-Received: by 2002:a17:90b:384b:b0:23d:5196:eca8 with SMTP id nl11-20020a17090b384b00b0023d5196eca8mr5245952pjb.20.1679515022198; Wed, 22 Mar 2023 12:57:02 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.57.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:57:01 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , "James E.J. Bottomley" , Bjorn Helgaas Subject: [PATCH v3 21/80] scsi: arcmsr: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:54:16 -0700 Message-Id: <20230322195515.1267197-22-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche --- drivers/scsi/arcmsr/arcmsr_hba.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/arcmsr/arcmsr_hba.c b/drivers/scsi/arcmsr/arcmsr_hba.c index 9d04cb6e62fa..b4242b1bd7b7 100644 --- a/drivers/scsi/arcmsr/arcmsr_hba.c +++ b/drivers/scsi/arcmsr/arcmsr_hba.c @@ -151,7 +151,7 @@ static int arcmsr_adjust_disk_queue_depth(struct scsi_device *sdev, int queue_de return scsi_change_queue_depth(sdev, queue_depth); } -static struct scsi_host_template arcmsr_scsi_host_template = { +static const struct scsi_host_template arcmsr_scsi_host_template = { .module = THIS_MODULE, .name = "Areca SAS/SATA RAID driver", .info = arcmsr_info, From patchwork Wed Mar 22 19:54:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184569 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5949AC6FD1F for ; Wed, 22 Mar 2023 19:57:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230285AbjCVT5y (ORCPT ); Wed, 22 Mar 2023 15:57:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230385AbjCVT53 (ORCPT ); Wed, 22 Mar 2023 15:57:29 -0400 Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CB6967712 for ; Wed, 22 Mar 2023 12:57:04 -0700 (PDT) Received: by mail-pl1-f182.google.com with SMTP id kc4so5682072plb.10 for ; Wed, 22 Mar 2023 12:57:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515023; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wYcUKal3ePL60VfjZpcDaHb80w6LZ6piZfKEAvYH9Uc=; b=jQ5Fyu0a7ASJXe/AGoIb2yzpthPqTXQZiAFmSIGUYvkNrYfYXpYvHZz9/hImKgXbx6 +W19KoIoa9IR9cF7RENfmCZx/rMht0LSSBcqtSjRwlp22gyuJGnXgmEXqCgYszZbKh+p uzLM1cXOlSJT4D0zHljFGVYH0t6fJbOd8MJpj4xeeruR8YAKpBtvGnIafivgWODjtpEe FTWzTAJILFAVCJZQbylrTF5PcT61b4ex9aUY8We4NLpf8aWympJSFU0Voc3YKMh9nHdE gNuii+1KQwaKvhSAitXPrNA/gL9WcJlmWbS7w6/3xTdmZ4+HrqF+b/B3Gc1I1T7kMrLQ tENA== X-Gm-Message-State: AAQBX9eaYdp5UV+CqrbrFQ5ObVhbCKPy9P5UfRtC0limh3WhcxNf39QT wPLd1y7uk4qPb8pd6YVqcgL5JD9aWSQ= X-Google-Smtp-Source: AKy350Yq+J7zi3Cz+8Nw4ySBSX9gcTftzYmJfFDKa/kaetoH1dR4o5q5xdFyd/5B5EIKfNpsrcUYKw== X-Received: by 2002:a17:90b:164c:b0:237:50b6:9843 with SMTP id il12-20020a17090b164c00b0023750b69843mr3258202pjb.0.1679515023416; Wed, 22 Mar 2023 12:57:03 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.57.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:57:03 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , Russell King , "James E.J. Bottomley" Subject: [PATCH v3 22/80] scsi: acornscsi: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:54:17 -0700 Message-Id: <20230322195515.1267197-23-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche --- drivers/scsi/arm/acornscsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/arm/acornscsi.c b/drivers/scsi/arm/acornscsi.c index 7602639da9b3..0b046e4b395c 100644 --- a/drivers/scsi/arm/acornscsi.c +++ b/drivers/scsi/arm/acornscsi.c @@ -2780,7 +2780,7 @@ static int acornscsi_show_info(struct seq_file *m, struct Scsi_Host *instance) return 0; } -static struct scsi_host_template acornscsi_template = { +static const struct scsi_host_template acornscsi_template = { .module = THIS_MODULE, .show_info = acornscsi_show_info, .name = "AcornSCSI", From patchwork Wed Mar 22 19:54:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184570 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 24883C76196 for ; Wed, 22 Mar 2023 19:57:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230419AbjCVT5z (ORCPT ); Wed, 22 Mar 2023 15:57:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230281AbjCVT53 (ORCPT ); Wed, 22 Mar 2023 15:57:29 -0400 Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD00E6904E for ; Wed, 22 Mar 2023 12:57:05 -0700 (PDT) Received: by mail-pl1-f171.google.com with SMTP id c18so20276137ple.11 for ; Wed, 22 Mar 2023 12:57:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515025; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wc8ynnG/AUp5Bu6EUuP/BB+ayz5OX1mJgbC2WVbd21o=; b=UjFRIlNPqJjSKEA2MPxhPFtzwVXsodhDr7lhC40SlNvSWBW+Q/SIjTrRqsmi3CYLyG qLC5a2BYJHUKgbwJLtFA91+rp7sDRsF7VjdLUwm2ritq9fLXT85hpB3bmixb2Al83IwH K98DuTmaQfFC0LatgsPqr2VtXOr+gx8JLJkfjR12CkYZ4GF5mIb64H4E97/EHzJT8du6 /69HSJq8IE0DFOyYWPNSJ3t4cCfwbUPvI6rsoO6E3iLf4MoPgWEo1BPCBTFgE9F1Z+Uh jewI3pfVn8dPStBCzohwpCOPy0A4tkMAJ3nF74bNi5ojx5M6AzpXd0Y3zgAwquK7K2Q4 quRw== X-Gm-Message-State: AO0yUKUlJAVT7ZNZJyDZHhjDHdFW9ffgP+/ZE8PFnmcOQh/elEx77mVI cqOxdTKmFKpPFlVI+SgTBpM= X-Google-Smtp-Source: AK7set/IB8szTJi8zyQh2hTEieGFRs3E7xXOQa8IkNudi9o/sC3bztkjihrXyMob9gZTpAjxfBhyxA== X-Received: by 2002:a17:90a:bc85:b0:23b:2f4a:57bb with SMTP id x5-20020a17090abc8500b0023b2f4a57bbmr4811751pjr.10.1679515025188; Wed, 22 Mar 2023 12:57:05 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.57.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:57:04 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , Russell King , "James E.J. Bottomley" Subject: [PATCH v3 23/80] scsi: arxescsi: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:54:18 -0700 Message-Id: <20230322195515.1267197-24-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche --- drivers/scsi/arm/arxescsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/arm/arxescsi.c b/drivers/scsi/arm/arxescsi.c index 2527b542bcdd..925d0bd68aa5 100644 --- a/drivers/scsi/arm/arxescsi.c +++ b/drivers/scsi/arm/arxescsi.c @@ -238,7 +238,7 @@ arxescsi_show_info(struct seq_file *m, struct Scsi_Host *host) return 0; } -static struct scsi_host_template arxescsi_template = { +static const struct scsi_host_template arxescsi_template = { .show_info = arxescsi_show_info, .name = "ARXE SCSI card", .info = arxescsi_info, From patchwork Wed Mar 22 19:54:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184572 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1DB25C7619A for ; Wed, 22 Mar 2023 19:57:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230411AbjCVT55 (ORCPT ); Wed, 22 Mar 2023 15:57:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230389AbjCVT53 (ORCPT ); Wed, 22 Mar 2023 15:57:29 -0400 Received: from mail-pj1-f46.google.com (mail-pj1-f46.google.com [209.85.216.46]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DCBB5C9C0 for ; Wed, 22 Mar 2023 12:57:06 -0700 (PDT) Received: by mail-pj1-f46.google.com with SMTP id fy10-20020a17090b020a00b0023b4bcf0727so20262533pjb.0 for ; Wed, 22 Mar 2023 12:57:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515026; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kH268M7KVsr02fjw5NLBwrnT+cyJ3HjwvjHBuiPtPhM=; b=0rLh5xoRoU4v99HCgKSAvN1kl6fK5Dk+SE37huT0k4eMDEHGLvWqnK3LU9oibSHrU1 QY2JD4o662AqkhiOnYaKCxLoTS/FApyO8vOtOSYaZJbZNR9WMKEfNCfOh8Wl701i7yPu QDc08v+C8+5cRUy2vkE2pFylq2GMgdgKeHYE0aNa3dJ2dXhnubaofZ7uVQgAfA7IZwBF ALZMb0smzvNGXpwc2VlmuD/fndLwJWpCXZqZ1DqvPgPzkAYmWXK15Ss6ku/8gOZCC1C8 YkpTX17VXu4PoIDx4WKW/hnPK6QmR6g+GffgjVSXIDzg05NF8hPKrRUrtfytm24Cb5pz lO0w== X-Gm-Message-State: AO0yUKUZ1BF0QhGPr3lF36xcvSgXYZdW0iOdplZ2TiHbrGFySnfWHpdi vZ/eOva8IxWSMeTAQvtvCEI= X-Google-Smtp-Source: AK7set8d9K3ud3IxXZXJA1CM2rgHa0iF+0PWnKIizvhzzTwPr1Kf3WVORPdJXxIv2MjzlUIS5dD8vA== X-Received: by 2002:a17:90a:309:b0:23e:f855:79ed with SMTP id 9-20020a17090a030900b0023ef85579edmr5106341pje.28.1679515026290; Wed, 22 Mar 2023 12:57:06 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.57.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:57:06 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , "James E.J. Bottomley" Subject: [PATCH v3 24/80] scsi: aha1740: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:54:19 -0700 Message-Id: <20230322195515.1267197-25-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche --- drivers/scsi/aha1740.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/aha1740.c b/drivers/scsi/aha1740.c index 134255751819..3d18945abaf7 100644 --- a/drivers/scsi/aha1740.c +++ b/drivers/scsi/aha1740.c @@ -543,7 +543,7 @@ static int aha1740_eh_abort_handler (struct scsi_cmnd *dummy) return SUCCESS; } -static struct scsi_host_template aha1740_template = { +static const struct scsi_host_template aha1740_template = { .module = THIS_MODULE, .proc_name = "aha1740", .show_info = aha1740_show_info, From patchwork Wed Mar 22 19:54:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184571 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A8710C6FD1F for ; Wed, 22 Mar 2023 19:57:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231137AbjCVT54 (ORCPT ); Wed, 22 Mar 2023 15:57:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230395AbjCVT53 (ORCPT ); Wed, 22 Mar 2023 15:57:29 -0400 Received: from mail-pj1-f53.google.com (mail-pj1-f53.google.com [209.85.216.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0DF8D64B31 for ; Wed, 22 Mar 2023 12:57:08 -0700 (PDT) Received: by mail-pj1-f53.google.com with SMTP id f6-20020a17090ac28600b0023b9bf9eb63so20225958pjt.5 for ; Wed, 22 Mar 2023 12:57:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515028; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=c47+d0pz7DNihHgR0GI5I+QfVkFleIpC/pj+/6FjG7w=; b=VhP0g0Qh3DFd+ZGt+p4njg3/O0XYoo3Bz78L7sc1HRI6dv1Wjan+e0rq/llyv/IlNE 7bqxLAnRGJ90w/FHim1vZrMGgfiTtCXnmkpilrQKDEwqTtQHwS/7pRs5IPIru9Nur99E PmJgy+pgchYgayGiBXjkQB3X8kwonjraa2EODdeE7dzO/aHDlVVSsF65Y2wuAURwFACW Z4nNWUTza79H4EBoGQeQlWEwht+w9IvniLxsme3Il1F3aAwLlBkWnCaihn0773zt56N2 k6JbGfPZEO+0euvR2VcxOBkuOtU/96H+bbBsibbxxiRYEn4UMtw9CeFQ2oxO1bQE8Oyy FjCg== X-Gm-Message-State: AO0yUKUYD1vm/+e7itbKXCdaKpw2sZcFj85l/nN7+OlrtcWLykQl7wbK 2faW8AHXTR4V5wQ31ioqXMFPfcgbMyM= X-Google-Smtp-Source: AK7set/a/e6o08nLvoXNN49hn30odYkO9jRHMdPcYslzQ5XrCswpYj4FpaxXy01rb3nVNE+i3lkF5A== X-Received: by 2002:a17:90b:3e81:b0:237:ae7c:15be with SMTP id rj1-20020a17090b3e8100b00237ae7c15bemr4941321pjb.30.1679515027702; Wed, 22 Mar 2023 12:57:07 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.57.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:57:07 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , Finn Thain , Michael Schmitz , Russell King , "James E.J. Bottomley" Subject: [PATCH v3 25/80] scsi: cumana: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:54:20 -0700 Message-Id: <20230322195515.1267197-26-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche --- drivers/scsi/arm/cumana_1.c | 2 +- drivers/scsi/arm/cumana_2.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/arm/cumana_1.c b/drivers/scsi/arm/cumana_1.c index 5d4f67ba74c0..d1a2a22ffe8c 100644 --- a/drivers/scsi/arm/cumana_1.c +++ b/drivers/scsi/arm/cumana_1.c @@ -211,7 +211,7 @@ static void cumanascsi_write(struct NCR5380_hostdata *hostdata, #include "../NCR5380.c" -static struct scsi_host_template cumanascsi_template = { +static const struct scsi_host_template cumanascsi_template = { .module = THIS_MODULE, .name = "Cumana 16-bit SCSI", .info = cumanascsi_info, diff --git a/drivers/scsi/arm/cumana_2.c b/drivers/scsi/arm/cumana_2.c index d15053f02472..c5d8f4313b31 100644 --- a/drivers/scsi/arm/cumana_2.c +++ b/drivers/scsi/arm/cumana_2.c @@ -356,7 +356,7 @@ static int cumanascsi_2_show_info(struct seq_file *m, struct Scsi_Host *host) return 0; } -static struct scsi_host_template cumanascsi2_template = { +static const struct scsi_host_template cumanascsi2_template = { .module = THIS_MODULE, .show_info = cumanascsi_2_show_info, .write_info = cumanascsi_2_set_proc_info, From patchwork Wed Mar 22 19:54:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184574 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6CB67C76196 for ; Wed, 22 Mar 2023 19:58:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231152AbjCVT6A (ORCPT ); Wed, 22 Mar 2023 15:58:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230428AbjCVT5b (ORCPT ); Wed, 22 Mar 2023 15:57:31 -0400 Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE1AE69CE5 for ; Wed, 22 Mar 2023 12:57:09 -0700 (PDT) Received: by mail-pl1-f171.google.com with SMTP id iw3so20295567plb.6 for ; Wed, 22 Mar 2023 12:57:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515029; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vZ5GgqrDyGWwIxYM6EGxbvTY6mYY1oAJ1o0rPWwJtYA=; b=185IE1WzaNBYUk5qVrzVT25z0w7aLesGWHLtNZL3e2F6zFljDlIpFDgy3N1SX69qmx O/cikE1ItYl+7VeuKwwhpNZ5EhDN4nRFlLyzAwTlUyVWNknIbNsGh+LEUXqTWWNQlZYD j+WoPM4WBPi31gBy4u9h+/C2MU51AaLWkyrdb18wlr4cRTi2eXgZtaqonpPXxYMnFJwg BVBvsZt+892ZIHPYOwWJD2ECogJgYer6ciwBQq2pA/5gyBuhPBNo0h+6i07Ex2mlSBMG sIupXVIaG7OpzKiP6fpKjEUN2BiZYSdGINVOqW1pjDdxZXeWLvPfM14Z4/y8gXZJNlXe E7CQ== X-Gm-Message-State: AO0yUKUEjKlgaJ+X3+Bq5xeEsSzNd7F3QycIROqF/8cXt5qWf/x2X4EL r1gLUrOJefgZAvMfJSkC1vNl47Rhxt4= X-Google-Smtp-Source: AK7set+8JmyhmwXHc6mo4jc9UV6WWSbZQ08uK4n21u050jWCSzpvJOFR4kDhXAbPlhT0RkgQ4GwXPA== X-Received: by 2002:a17:90b:4a12:b0:239:fd9b:85bd with SMTP id kk18-20020a17090b4a1200b00239fd9b85bdmr4683009pjb.27.1679515028893; Wed, 22 Mar 2023 12:57:08 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.57.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:57:08 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , Russell King , "James E.J. Bottomley" Subject: [PATCH v3 26/80] scsi: eesox: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:54:21 -0700 Message-Id: <20230322195515.1267197-27-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche --- drivers/scsi/arm/eesox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/arm/eesox.c b/drivers/scsi/arm/eesox.c index 6f374af9f45f..b3ec7635bc72 100644 --- a/drivers/scsi/arm/eesox.c +++ b/drivers/scsi/arm/eesox.c @@ -473,7 +473,7 @@ static ssize_t eesoxscsi_store_term(struct device *dev, struct device_attribute static DEVICE_ATTR(bus_term, S_IRUGO | S_IWUSR, eesoxscsi_show_term, eesoxscsi_store_term); -static struct scsi_host_template eesox_template = { +static const struct scsi_host_template eesox_template = { .module = THIS_MODULE, .show_info = eesoxscsi_show_info, .write_info = eesoxscsi_set_proc_info, From patchwork Wed Mar 22 19:54:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184573 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2E892C6FD1F for ; Wed, 22 Mar 2023 19:58:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230457AbjCVT57 (ORCPT ); Wed, 22 Mar 2023 15:57:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230431AbjCVT5b (ORCPT ); Wed, 22 Mar 2023 15:57:31 -0400 Received: from mail-pj1-f50.google.com (mail-pj1-f50.google.com [209.85.216.50]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE21269CE8 for ; Wed, 22 Mar 2023 12:57:10 -0700 (PDT) Received: by mail-pj1-f50.google.com with SMTP id h12-20020a17090aea8c00b0023d1311fab3so20254927pjz.1 for ; Wed, 22 Mar 2023 12:57:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515030; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=OIPb3HYAXuW5r7Endmq1PVAaSjgIGGcvZm+x2bOLt/M=; b=IAG0gBYE1dACvnIBJ6vOwGWxM0j1jz32CytFTDsUv3zjg7D1XgvIaMat29uzzPsRKQ qHr0VG4Sx/Rl1wHx/C7p2mtMewtthjXcZSrUujkguhXCckfe1rLmQUPl/jVwXSijkDzm UnKXnb/MJ9SLRtyuyZQmo/FTnJXaRMKLbszU9n0VFFlKj79H/KXXiTJMl1H417I8wcPq DpCkpmpNeCQ1G33XgVaJZSRPF5wcx3ew+lDBJEUhWvvmf+mvUbT+kVLR38eOJy9/k4SB ZMzANWc9wzVARmkDmZ2FOHFm1uyDkd1fIchGJz45NHYKTgaKk+e2cw54i9xaExxzQZql BRNA== X-Gm-Message-State: AAQBX9eW7cUhY+CPm2lhx1FxkjxoQXmaLnhN15nQLhJnYY2hcA1O85vX kTCYqTAYrxCj1+BccSVv6ns= X-Google-Smtp-Source: AKy350ZxRJXYqdjZ1McqZ/noir3TjnMUwYcTfyF+dLEow+XlsIVeO++MQVn448gDj6kHtjz83ds8Ug== X-Received: by 2002:a17:90a:8b92:b0:240:883:8ff8 with SMTP id z18-20020a17090a8b9200b0024008838ff8mr3244144pjn.3.1679515030153; Wed, 22 Mar 2023 12:57:10 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.57.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:57:09 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , Finn Thain , Michael Schmitz , Russell King , "James E.J. Bottomley" Subject: [PATCH v3 27/80] scsi: oak: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:54:22 -0700 Message-Id: <20230322195515.1267197-28-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche --- drivers/scsi/arm/oak.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/arm/oak.c b/drivers/scsi/arm/oak.c index f18a0620c808..d69245007096 100644 --- a/drivers/scsi/arm/oak.c +++ b/drivers/scsi/arm/oak.c @@ -100,7 +100,7 @@ printk("reading %p len %d\n", addr, len); #include "../NCR5380.c" -static struct scsi_host_template oakscsi_template = { +static const struct scsi_host_template oakscsi_template = { .module = THIS_MODULE, .name = "Oak 16-bit SCSI", .info = oakscsi_info, From patchwork Wed Mar 22 19:54:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184575 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4A7E7C6FD1C for ; Wed, 22 Mar 2023 19:58:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229620AbjCVT6B (ORCPT ); Wed, 22 Mar 2023 15:58:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230444AbjCVT5b (ORCPT ); Wed, 22 Mar 2023 15:57:31 -0400 Received: from mail-pj1-f45.google.com (mail-pj1-f45.google.com [209.85.216.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D00F369CD1 for ; Wed, 22 Mar 2023 12:57:11 -0700 (PDT) Received: by mail-pj1-f45.google.com with SMTP id d13so19539327pjh.0 for ; Wed, 22 Mar 2023 12:57:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515031; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dtvaziFz+alOfUQZbNe+VAlPBd5fDCw1fGTb/wB6Zxw=; b=v1wyq9Q783hwJJ88jwwfy6VQqSztBd1W3hx32LxYP600TOUElP844dID9maRfQybHC zgd2Ca6DhKrQTvOJrMKqEv3RFLRLRSYGFpUe0J3cL5ymmW48PhpwzLdup46hmkQ8rT8w DxrpYH1nd0l900UxkIPmf0r+r9toK1fExQj0OfudtnGtIf9yIykdshnqI6VXy9WG2le0 zXwCxNej8CyYV6M9S451AVBZc3TPdmt+KkT7aUzmRybPMDP0Cx0LRT8MBX2cMYkurygf P+iZSQ9kgsTASbjFlTYFsWtkZhlBfSGcYXoKpspbxssNL07noJCZyPrxl6uETSn65pxr 7wyw== X-Gm-Message-State: AO0yUKXvthn69I2sCE+Bdnn/xYR7VTCuiEev3h1fIfsBJXcNTvegfSpg geGMqxxdu6OsWj2NZ7mT+QU= X-Google-Smtp-Source: AK7set+z9MoEqWEy0f+OAbr0Pb4vFNXfVhuPN4/8GESKV5oDrjvH5Q0k9IyVsYfKXHTs4pYkMC233w== X-Received: by 2002:a17:90b:4d07:b0:237:91df:9fcd with SMTP id mw7-20020a17090b4d0700b0023791df9fcdmr4165299pjb.48.1679515031291; Wed, 22 Mar 2023 12:57:11 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.57.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:57:10 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , Russell King , "James E.J. Bottomley" Subject: [PATCH v3 28/80] scsi: powertec: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:54:23 -0700 Message-Id: <20230322195515.1267197-29-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche --- drivers/scsi/arm/powertec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/arm/powertec.c b/drivers/scsi/arm/powertec.c index 7586d2a03812..3b5991427886 100644 --- a/drivers/scsi/arm/powertec.c +++ b/drivers/scsi/arm/powertec.c @@ -279,7 +279,7 @@ powertecscsi_store_term(struct device *dev, struct device_attribute *attr, const static DEVICE_ATTR(bus_term, S_IRUGO | S_IWUSR, powertecscsi_show_term, powertecscsi_store_term); -static struct scsi_host_template powertecscsi_template = { +static const struct scsi_host_template powertecscsi_template = { .module = THIS_MODULE, .show_info = powertecscsi_show_info, .write_info = powertecscsi_set_proc_info, From patchwork Wed Mar 22 19:54:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184576 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 90150C7619A for ; Wed, 22 Mar 2023 19:58:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230318AbjCVT6C (ORCPT ); Wed, 22 Mar 2023 15:58:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230466AbjCVT5b (ORCPT ); Wed, 22 Mar 2023 15:57:31 -0400 Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECC5F6A059 for ; Wed, 22 Mar 2023 12:57:12 -0700 (PDT) Received: by mail-pl1-f173.google.com with SMTP id le6so20265782plb.12 for ; Wed, 22 Mar 2023 12:57:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515032; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Ts+vWJKv0MXDJEA4JIO9+AM9uvvvxXowXRyy3KeGtYI=; b=VstA4XncyU1wn7gvYUBDdixz0s4WMGd30FoP8NqNY4WefqHzTqOTrMM514i1RCg8DN HcYeuuaZ9/Hi1VmQStd/IQJppI5jecwWrOPWZSkX2Qe0IK9vil+9TkYQbHqKBOxd5gIO 4FJjxmAuZ6zfUymWlXtsrQ84D0n+uhmjof7/lfZaPiZ8w/BvxN8Q3dSyzxPS1g0cALFX TEVy4r2QTariJBklphpxU2byCcCdmU5JfBI8/DAFrtoXc4R7FaiOOZlxvJVzLy8X9InM iW25MGK2FXLS7cD2cg3bnt2zkC7kE3SKDLRnbJa1YE9cFNt7z0qHDiU3i3pjtv6vDYST nOJw== X-Gm-Message-State: AAQBX9f3su7+3sCOo4aTBzQ75+5R4WNU/eCu6PhKMLuIuC32uOiloebM 4vpcP+pPmdDNIK07nLKSF6o= X-Google-Smtp-Source: AKy350aOJDTmJgS6CW7MXLOgeWdZ3e5rbKZkDCvslNo9HmLxSpna7PQYcDL6MjYy1H+feNpbw0kKqQ== X-Received: by 2002:a17:90b:298:b0:240:c4c:59ea with SMTP id az24-20020a17090b029800b002400c4c59eamr2329274pjb.11.1679515032439; Wed, 22 Mar 2023 12:57:12 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.57.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:57:12 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , "James E.J. Bottomley" Subject: [PATCH v3 29/80] scsi: atp870u: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:54:24 -0700 Message-Id: <20230322195515.1267197-30-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche --- drivers/scsi/atp870u.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/atp870u.c b/drivers/scsi/atp870u.c index 7143418d690f..2a748af269c2 100644 --- a/drivers/scsi/atp870u.c +++ b/drivers/scsi/atp870u.c @@ -40,7 +40,7 @@ #include "atp870u.h" -static struct scsi_host_template atp870u_template; +static const struct scsi_host_template atp870u_template; static void send_s870(struct atp_unit *dev,unsigned char c); static void atp_is(struct atp_unit *dev, unsigned char c, bool wide_chip, unsigned char lvdmode); @@ -1726,7 +1726,7 @@ static void atp870u_remove (struct pci_dev *pdev) } MODULE_LICENSE("GPL"); -static struct scsi_host_template atp870u_template = { +static const struct scsi_host_template atp870u_template = { .module = THIS_MODULE, .name = "atp870u" /* name */, .proc_name = "atp870u", From patchwork Wed Mar 22 19:54:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184577 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D6405C6FD1C for ; Wed, 22 Mar 2023 19:58:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230428AbjCVT6D (ORCPT ); Wed, 22 Mar 2023 15:58:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230308AbjCVT5c (ORCPT ); Wed, 22 Mar 2023 15:57:32 -0400 Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 569006923B for ; Wed, 22 Mar 2023 12:57:14 -0700 (PDT) Received: by mail-pl1-f182.google.com with SMTP id le6so20265831plb.12 for ; Wed, 22 Mar 2023 12:57:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515034; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BvVVQ+ktXujbe64yu0zbTHHU9T+PctoEBb3huhrnTek=; b=WBSEOyi+OtaC15W58jeJkk5lnO9UUqUbaBf59EcC+GWgY6PBR93clDkdVdCJqdW74u ZLc1+aBcB21KZm81m90bJrw5Ksgm7aWbxLSh0lJzOMy1bWvtHH3JcbkgZflZhNgjaylq 2SL3xCkFdbDj7yY4YvZoczU2W1i4spR9mY+snn/QtvDnQjfHbmbXzrvV0l0Avi7oUQPv ctctPae2htIAAr6CxBiWkEXZqF7QEGQvAbXGotAQhZl0R229rzhtGSNAFRIftXH+Ca6h y9tpT12U1GOS7QqvaJkOtg/ew1/DCJi2Ww+ObbAx4cBcyuoYrt222jAxDI29cCCz+AlM lIAA== X-Gm-Message-State: AO0yUKVyoqGrygBqNqWfZTmwEsugLef9dBecN7XLsA3iYVa2noEbwHEF 20oejFL7AJt/0uKR2v9C5os= X-Google-Smtp-Source: AK7set9b8TfAnp6aiaG57OQEDXLqVjkYO0m/2M5Yd9G/35LeOjmEtF7aNXXjoKbovXx+iEDb3TYNuA== X-Received: by 2002:a17:90b:4f91:b0:234:656d:2366 with SMTP id qe17-20020a17090b4f9100b00234656d2366mr4607365pjb.42.1679515033776; Wed, 22 Mar 2023 12:57:13 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.57.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:57:13 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , Oliver Neukum , Ali Akcaagac , Jamie Lenehan , "James E.J. Bottomley" Subject: [PATCH v3 30/80] scsi: dc395x: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:54:25 -0700 Message-Id: <20230322195515.1267197-31-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche Acked-by: Oliver Neukum --- drivers/scsi/dc395x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/dc395x.c b/drivers/scsi/dc395x.c index 670a836a6ba1..c8e86f8a631e 100644 --- a/drivers/scsi/dc395x.c +++ b/drivers/scsi/dc395x.c @@ -4541,7 +4541,7 @@ static int dc395x_show_info(struct seq_file *m, struct Scsi_Host *host) } -static struct scsi_host_template dc395x_driver_template = { +static const struct scsi_host_template dc395x_driver_template = { .module = THIS_MODULE, .proc_name = DC395X_NAME, .show_info = dc395x_show_info, From patchwork Wed Mar 22 19:54:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184578 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 93FFAC76196 for ; Wed, 22 Mar 2023 19:58:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230444AbjCVT6E (ORCPT ); Wed, 22 Mar 2023 15:58:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230283AbjCVT5h (ORCPT ); Wed, 22 Mar 2023 15:57:37 -0400 Received: from mail-pj1-f45.google.com (mail-pj1-f45.google.com [209.85.216.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1B146A05E for ; Wed, 22 Mar 2023 12:57:15 -0700 (PDT) Received: by mail-pj1-f45.google.com with SMTP id gp15-20020a17090adf0f00b0023d1bbd9f9eso24687825pjb.0 for ; Wed, 22 Mar 2023 12:57:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515035; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=JFvxo/sJNe3B0K/5I7wr+cSfqXHj+OqtPwyJqG3lYLo=; b=MVKss67bFKguOMtIEjlwHHPsatFTzmFEcVF3CZUIQtFZRj8vha6n1xLy+dJLyo/rY8 5Z0rJD/DZ33peGomRUElxnj6OHDNQw2A3L+sumPZZnZFasByRNl7M5eWdqH4Wh6kCI31 xJjeF0+9fW+7hYUuX6Iy2OipgmspQtPsQIx+kUiskl+NpGTUnSnuJLaxNnz5H/l7ECOT knnov24lG6UbU68lo6WOSG4Kj7EYbGWanHZFYnaPfwImPOdpCtNm3yrU1hlHEQgJ99gZ 6Vo5OcDG2DfJn+7O3Y7pS/YlHXJKIgjvMnr2/LitzLY870FL9zyChbqSno48y1lD9lmc /98Q== X-Gm-Message-State: AO0yUKUHvBC+tI43laHFu6uoW4GW9ToRkSjNpoDCvw21agvbii0rMjZx 6UQLyBTob/ghgbPwdryOLI0= X-Google-Smtp-Source: AK7set8HAuVlzUpKmSMGywWdqc2wG+udlceedkWJxajdCtLq5jaXIPwaUGdWx1VMmg+/MX7UoEDaiw== X-Received: by 2002:a17:90b:4b43:b0:23f:680e:78be with SMTP id mi3-20020a17090b4b4300b0023f680e78bemr4262310pjb.48.1679515034955; Wed, 22 Mar 2023 12:57:14 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.57.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:57:14 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , Finn Thain , Michael Schmitz , "James E.J. Bottomley" Subject: [PATCH v3 31/80] scsi: dmx3191d: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:54:26 -0700 Message-Id: <20230322195515.1267197-32-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche --- drivers/scsi/dmx3191d.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/dmx3191d.c b/drivers/scsi/dmx3191d.c index a171ce6b70b2..dfb091d34363 100644 --- a/drivers/scsi/dmx3191d.c +++ b/drivers/scsi/dmx3191d.c @@ -39,7 +39,7 @@ #define DMX3191D_REGION_LEN 8 -static struct scsi_host_template dmx3191d_driver_template = { +static const struct scsi_host_template dmx3191d_driver_template = { .module = THIS_MODULE, .proc_name = DMX3191D_DRIVER_NAME, .name = "Domex DMX3191D", From patchwork Wed Mar 22 19:54:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184579 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4F6ECC7619A for ; Wed, 22 Mar 2023 19:58:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230430AbjCVT6X (ORCPT ); Wed, 22 Mar 2023 15:58:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230353AbjCVT5o (ORCPT ); Wed, 22 Mar 2023 15:57:44 -0400 Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7F296A1E9 for ; Wed, 22 Mar 2023 12:57:24 -0700 (PDT) Received: by mail-pl1-f180.google.com with SMTP id w4so12216080plg.9 for ; Wed, 22 Mar 2023 12:57:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515044; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=k9EbEznef8iJjMvb3ab9roSVdm2qWqXIE3r6q0CuMcY=; b=A1AaJnlcdyTvl7QbZm6iWZY/SHYi8xBU/4Bw+jESlC6oIJ/OTdht8BVAffRz5rwvYk 36tg0AXKpFXovElmfRgPoufYxPhwcR1rX4Qr86uoGpKKn6ZjGYnyaGrn+4tRoP++gTkB GdfEGD1g+vnhSuQRL9j9WnMt3ESlzKPFyr6hkz95A84zI70NJwOyyT40c/OK1FgCGGuV XhFrWZ4ucj6VD6ApVUDJzaa5orjzpRtRGdh+E/yTtAvt6ZtNkq6wkjQxZSb20Rj3XMV9 0WzNDZIF5Hw4AgpAQI/UwjpJBuOh6053PntO286zT0k+Q5T7rj/Zsx4rOp8J+/tf4a4y fcng== X-Gm-Message-State: AAQBX9eLSjlfwyCBAptqR9GGJDqV3CwqKaL3LNMNCq27neMVUs6m1PBQ 6dRR0Pf5oTlvfXF+DTALiJ/jiZNKvWw= X-Google-Smtp-Source: AKy350Z/CfpObEW9i6dwb7qwxcQ3CIe339bpyEr2AzrR19dNPs65xLdUZ2s7HR7zDEVeFpBvnekaGQ== X-Received: by 2002:a17:90a:c241:b0:23d:35ae:5ab9 with SMTP id d1-20020a17090ac24100b0023d35ae5ab9mr3282669pjx.9.1679515044221; Wed, 22 Mar 2023 12:57:24 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.57.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:57:23 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , James Smart , Ram Vegesna , "James E.J. Bottomley" Subject: [PATCH v3 32/80] scsi: elx: efct: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:54:27 -0700 Message-Id: <20230322195515.1267197-33-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche --- drivers/scsi/elx/efct/efct_xport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/elx/efct/efct_xport.c b/drivers/scsi/elx/efct/efct_xport.c index 9495cedcc0b9..cf4dced20b8b 100644 --- a/drivers/scsi/elx/efct/efct_xport.c +++ b/drivers/scsi/elx/efct/efct_xport.c @@ -10,7 +10,7 @@ static struct dentry *efct_debugfs_root; static atomic_t efct_debugfs_count; -static struct scsi_host_template efct_template = { +static const struct scsi_host_template efct_template = { .module = THIS_MODULE, .name = EFCT_DRIVER_NAME, .supported_mode = MODE_TARGET, From patchwork Wed Mar 22 19:54:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184580 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 10C27C6FD1F for ; Wed, 22 Mar 2023 19:58:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231202AbjCVT6a (ORCPT ); Wed, 22 Mar 2023 15:58:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230362AbjCVT5r (ORCPT ); Wed, 22 Mar 2023 15:57:47 -0400 Received: from mail-pj1-f53.google.com (mail-pj1-f53.google.com [209.85.216.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 549386A1DB for ; Wed, 22 Mar 2023 12:57:26 -0700 (PDT) Received: by mail-pj1-f53.google.com with SMTP id mp3-20020a17090b190300b0023fcc8ce113so9684443pjb.4 for ; Wed, 22 Mar 2023 12:57:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515046; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4uxxN7Q5Bd2Nk0RDe6hDV+Z1h0pZWa/g2GzvVwJGpA4=; b=DkCOg/Y6SOuUoT1nvOtoVOZrfU3rUR/VfwoGQ03bFKGIT1KG5IEXL6wGOpYFyox0R1 RJHYgOLzymBnlZMBqLAaHbLltISrR3k3rHmVrodnM0AGjzxsokja9BOqvURwzI4b2oTQ JOlh91Z6I1P2BB8wrX7PR3WC4O+8Wj/mE35c6oimP+pdqRCgtNDfkbRRs8UUze/ICs7j +c6FcHPfl3IjJ2Q5lkue+y1KjnVlPVq02KSyqAZzPDV3LmVr6Zk3a+5QcgsfMCP0kPzd tUwywVTpkfqFQgAQW4GzZqWcClsWMHzqGMbCtVYef/diBDUfQPfApbXqOMU+pwnDzqQy b0bw== X-Gm-Message-State: AO0yUKVdSxpe5IS8SeC59PiTYPh7KqeRHDpk93xmzTI2zrFHjEqyztpH EXZ6SusylPOA03tocT+gtV0= X-Google-Smtp-Source: AK7set+L7P3MvF6GkghEvusunSnHN5nTXiyNJ1S2TBdUpRpu9mItP0l2Ez4FGIDyuMrflHWcmcnxaw== X-Received: by 2002:a17:90b:3846:b0:236:6a28:f781 with SMTP id nl6-20020a17090b384600b002366a28f781mr4971397pjb.22.1679515045775; Wed, 22 Mar 2023 12:57:25 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.57.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:57:25 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , Bradley Grove , "James E.J. Bottomley" Subject: [PATCH v3 33/80] scsi: esas2r: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:54:28 -0700 Message-Id: <20230322195515.1267197-34-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche --- drivers/scsi/esas2r/esas2r_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/esas2r/esas2r_main.c b/drivers/scsi/esas2r/esas2r_main.c index d7a2c49ff5ee..f700a16cd885 100644 --- a/drivers/scsi/esas2r/esas2r_main.c +++ b/drivers/scsi/esas2r/esas2r_main.c @@ -231,7 +231,7 @@ struct bin_attribute bin_attr_default_nvram = { .write = NULL }; -static struct scsi_host_template driver_template = { +static const struct scsi_host_template driver_template = { .module = THIS_MODULE, .show_info = esas2r_show_info, .name = ESAS2R_LONGNAME, From patchwork Wed Mar 22 19:54:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184581 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1145DC6FD1C for ; Wed, 22 Mar 2023 19:58:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230111AbjCVT6b (ORCPT ); Wed, 22 Mar 2023 15:58:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230378AbjCVT5s (ORCPT ); Wed, 22 Mar 2023 15:57:48 -0400 Received: from mail-pj1-f53.google.com (mail-pj1-f53.google.com [209.85.216.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3708D6A1EE for ; Wed, 22 Mar 2023 12:57:28 -0700 (PDT) Received: by mail-pj1-f53.google.com with SMTP id lr16-20020a17090b4b9000b0023f187954acso20239427pjb.2 for ; Wed, 22 Mar 2023 12:57:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515048; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ybopYWartekRtQM6/h5HzITz80DwTmeJFUlvikqzSGc=; b=lqhKBjjtYDLrDTVKjeV9kCl4LgHsFBtTbR0pbOZ6Y85/UApVSNCYM3ZdiqdfOgrtiL Kmk0ho5nvbz3rCy9A6I8J1Sf/MvFdxaI96bGId2rBsObbDzaBrDDuUk2+WVdju+TapDk /+88E9lyJyE4BhV3vmaN+YhivFfxkkB4ADfd2YbfbVgdb7pARSq7nGMj/JoB9/ik1T4D elIwDG+mV+TsusQubyiZdGnGncC9bDJb5iDlFLgW8XBaWSGO6WPjYynAxVAhtLndKosj 6FNptb7dxnoPXU2c1VUf69/F4YWPCYUevn3QOs9Yuq59uAGpMO6HjoFeQMKLmHewNqIK +OxQ== X-Gm-Message-State: AO0yUKX+EgoEsBI8UzBQxDsZzT/Ks2CaWtd8tecYI3lTSJU/C0wvHuzt DaedYvRJmwFE0cDx+HoxKU0= X-Google-Smtp-Source: AK7set+DQxEvJF4H+/wo01QmopQlJgkJhKPAM1hiTIvKhT5KeFT3SrwrA0LblDXbx4SovaqdDAiBuQ== X-Received: by 2002:a17:90b:3e81:b0:237:ae7c:15be with SMTP id rj1-20020a17090b3e8100b00237ae7c15bemr4942086pjb.30.1679515047569; Wed, 22 Mar 2023 12:57:27 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.57.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:57:26 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , Hannes Reinecke , "James E.J. Bottomley" Subject: [PATCH v3 34/80] scsi: esp_scsi: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:54:29 -0700 Message-Id: <20230322195515.1267197-35-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche --- drivers/scsi/am53c974.c | 2 +- drivers/scsi/esp_scsi.c | 2 +- drivers/scsi/esp_scsi.h | 2 +- drivers/scsi/jazz_esp.c | 2 +- drivers/scsi/mac_esp.c | 2 +- drivers/scsi/sun3x_esp.c | 2 +- drivers/scsi/sun_esp.c | 2 +- drivers/scsi/zorro_esp.c | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/scsi/am53c974.c b/drivers/scsi/am53c974.c index b69edb473295..fbb29dbb1e50 100644 --- a/drivers/scsi/am53c974.c +++ b/drivers/scsi/am53c974.c @@ -371,7 +371,7 @@ static void dc390_check_eeprom(struct esp *esp) static int pci_esp_probe_one(struct pci_dev *pdev, const struct pci_device_id *id) { - struct scsi_host_template *hostt = &scsi_esp_template; + const struct scsi_host_template *hostt = &scsi_esp_template; int err = -ENODEV; struct Scsi_Host *shost; struct esp *esp; diff --git a/drivers/scsi/esp_scsi.c b/drivers/scsi/esp_scsi.c index 64ec6bb84550..97816a0e6240 100644 --- a/drivers/scsi/esp_scsi.c +++ b/drivers/scsi/esp_scsi.c @@ -2660,7 +2660,7 @@ static const char *esp_info(struct Scsi_Host *host) return "esp"; } -struct scsi_host_template scsi_esp_template = { +const struct scsi_host_template scsi_esp_template = { .module = THIS_MODULE, .name = "esp", .info = esp_info, diff --git a/drivers/scsi/esp_scsi.h b/drivers/scsi/esp_scsi.h index c73760d3cf83..00cd7c0ccc76 100644 --- a/drivers/scsi/esp_scsi.h +++ b/drivers/scsi/esp_scsi.h @@ -572,7 +572,7 @@ struct esp { * 13) Check scsi_esp_register() return value, release all resources * if an error was returned. */ -extern struct scsi_host_template scsi_esp_template; +extern const struct scsi_host_template scsi_esp_template; extern int scsi_esp_register(struct esp *); extern void scsi_esp_unregister(struct esp *); diff --git a/drivers/scsi/jazz_esp.c b/drivers/scsi/jazz_esp.c index 60a88a95a8e2..0c842fb29aa0 100644 --- a/drivers/scsi/jazz_esp.c +++ b/drivers/scsi/jazz_esp.c @@ -104,7 +104,7 @@ static const struct esp_driver_ops jazz_esp_ops = { static int esp_jazz_probe(struct platform_device *dev) { - struct scsi_host_template *tpnt = &scsi_esp_template; + const struct scsi_host_template *tpnt = &scsi_esp_template; struct Scsi_Host *host; struct esp *esp; struct resource *res; diff --git a/drivers/scsi/mac_esp.c b/drivers/scsi/mac_esp.c index 6d23ab5aee56..3f0061b00494 100644 --- a/drivers/scsi/mac_esp.c +++ b/drivers/scsi/mac_esp.c @@ -289,7 +289,7 @@ static struct esp_driver_ops mac_esp_ops = { static int esp_mac_probe(struct platform_device *dev) { - struct scsi_host_template *tpnt = &scsi_esp_template; + const struct scsi_host_template *tpnt = &scsi_esp_template; struct Scsi_Host *host; struct esp *esp; int err; diff --git a/drivers/scsi/sun3x_esp.c b/drivers/scsi/sun3x_esp.c index d3489ac7ab28..30f67cbf4a7a 100644 --- a/drivers/scsi/sun3x_esp.c +++ b/drivers/scsi/sun3x_esp.c @@ -169,7 +169,7 @@ static const struct esp_driver_ops sun3x_esp_ops = { static int esp_sun3x_probe(struct platform_device *dev) { - struct scsi_host_template *tpnt = &scsi_esp_template; + const struct scsi_host_template *tpnt = &scsi_esp_template; struct Scsi_Host *host; struct esp *esp; struct resource *res; diff --git a/drivers/scsi/sun_esp.c b/drivers/scsi/sun_esp.c index 58bdd71fef06..d06e933191a2 100644 --- a/drivers/scsi/sun_esp.c +++ b/drivers/scsi/sun_esp.c @@ -451,7 +451,7 @@ static const struct esp_driver_ops sbus_esp_ops = { static int esp_sbus_probe_one(struct platform_device *op, struct platform_device *espdma, int hme) { - struct scsi_host_template *tpnt = &scsi_esp_template; + const struct scsi_host_template *tpnt = &scsi_esp_template; struct Scsi_Host *host; struct esp *esp; int err; diff --git a/drivers/scsi/zorro_esp.c b/drivers/scsi/zorro_esp.c index 928c8adf5cb3..56cae22a4242 100644 --- a/drivers/scsi/zorro_esp.c +++ b/drivers/scsi/zorro_esp.c @@ -713,7 +713,7 @@ MODULE_DEVICE_TABLE(zorro, zorro_esp_zorro_tbl); static int zorro_esp_probe(struct zorro_dev *z, const struct zorro_device_id *ent) { - struct scsi_host_template *tpnt = &scsi_esp_template; + const struct scsi_host_template *tpnt = &scsi_esp_template; struct Scsi_Host *host; struct esp *esp; const struct zorro_driver_data *zdd; From patchwork Wed Mar 22 19:54:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184582 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0B058C76196 for ; Wed, 22 Mar 2023 19:58:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230378AbjCVT6c (ORCPT ); Wed, 22 Mar 2023 15:58:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230257AbjCVT5w (ORCPT ); Wed, 22 Mar 2023 15:57:52 -0400 Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A50F62B6B for ; Wed, 22 Mar 2023 12:57:29 -0700 (PDT) Received: by mail-pl1-f182.google.com with SMTP id z19so9877070plo.2 for ; Wed, 22 Mar 2023 12:57:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515049; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ldCwiaYTLduiQcwSYGjGWFRviZrHcq79whkQrMLz5c8=; b=oB8QT0GHOcYj96Sc9AbpQnUOpCCDfRw+eOdK3O4j2vZxaP2aFounZyPVjIa7z2gRBQ FIWrKdnhuRGEvIcVAuKfttdXGlT4vzEzYSL5pZpuinvArQWrR6dj7QDOjN3CwmpRon4s qr48HzK+zQp4zCJN2Z2X7UGZc8lAIW3Y/Glo5tIFRE64bEC1WlkHK/jxh4wk+/OWScyU 2mCtcCMxoqqkHFyovjJvg9dKMuwNz/XZ7Q5GkQKqVamW+VNwRq5IsofWB1Agkmv3m1El Og64C1FE058pw3ATsgfK2qSFJhgbPsqnMmd1DlnmR/ChtC8mMElj3T5SdlCRovAFL878 id1A== X-Gm-Message-State: AO0yUKVg1v6Coua1QwiQ+XKl1KottYI3u9MZrok8eArrUEAvZXk+jXfC pMv7l1cI2n56widNmO8ySN0= X-Google-Smtp-Source: AK7set9s6hgJR+DP35nv/ez22vV2EXAbuMwXY7HKPEuQW4n467vlBBqc7neHoPaIUp6uyFDXiruDlQ== X-Received: by 2002:a17:90b:3a83:b0:23b:569d:fe41 with SMTP id om3-20020a17090b3a8300b0023b569dfe41mr4544373pjb.7.1679515048756; Wed, 22 Mar 2023 12:57:28 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.57.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:57:28 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , Hannes Reinecke , "James E.J. Bottomley" Subject: [PATCH v3 35/80] scsi: fcoe: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:54:30 -0700 Message-Id: <20230322195515.1267197-36-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche --- drivers/scsi/fcoe/fcoe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/fcoe/fcoe.c b/drivers/scsi/fcoe/fcoe.c index 38774a272e62..f1429f270170 100644 --- a/drivers/scsi/fcoe/fcoe.c +++ b/drivers/scsi/fcoe/fcoe.c @@ -260,7 +260,7 @@ static struct fc_function_template fcoe_vport_fc_functions = { .bsg_request = fc_lport_bsg_request, }; -static struct scsi_host_template fcoe_shost_template = { +static const struct scsi_host_template fcoe_shost_template = { .module = THIS_MODULE, .name = "FCoE Driver", .proc_name = FCOE_NAME, From patchwork Wed Mar 22 19:54:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184583 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BCEBBC6FD1F for ; Wed, 22 Mar 2023 19:58:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230120AbjCVT6k (ORCPT ); Wed, 22 Mar 2023 15:58:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230261AbjCVT5w (ORCPT ); Wed, 22 Mar 2023 15:57:52 -0400 Received: from mail-pj1-f47.google.com (mail-pj1-f47.google.com [209.85.216.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D44816487D for ; Wed, 22 Mar 2023 12:57:30 -0700 (PDT) Received: by mail-pj1-f47.google.com with SMTP id e15-20020a17090ac20f00b0023d1b009f52so24656161pjt.2 for ; Wed, 22 Mar 2023 12:57:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515050; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=JCDnsBDyD5KdL/cOWwSjhVPjFE5ySWXB1GfjV8JeIjI=; b=4sb8HeBPsjoVwI4H3P7WU0lkmymINkR4AdWeBOnrOdfhP90awaDGdra5BzZG3YCLiQ x9iWT7gY+ttLyz7y3pDQI+itbdJI75lAzN7GGdwLIzSJsCOaQ2gCKr7Hh2BSTAJfI9gj EnKD/b9eLWFjGOeF0PK+2t+MiB7230NKRyNSYLoef9sENJhI5XovH8COiODLSDftV8fL P8pNKX5jkoh/qkQUXSG8n+MV2Gy2aBVrXVcvww6DxwavX4up2j/nYQq2lJ4bC8wOExzg 4OnFX9XiwCP7SrISnoT6fNI/pUXp+ke+LQm+m0qmy8rHxeXhf3SC/P3UUMViWIhwgqNW lqZw== X-Gm-Message-State: AO0yUKWLdCN2kh6jjgWLk/firZxsVVhpLzHYa+D+jmT7hrwQCqM57Znt 0wd5/eLbnErx1CZ0CkNhRrY= X-Google-Smtp-Source: AK7set/Y/CAc+1W+LO5ST2Jeg6i+qLdYSTUTq33ULepeEdn9oJoPSWFEKHcm0uCnMY7wB/uGjW3tYA== X-Received: by 2002:a17:90b:1bcc:b0:23d:39e0:142 with SMTP id oa12-20020a17090b1bcc00b0023d39e00142mr4780573pjb.42.1679515050064; Wed, 22 Mar 2023 12:57:30 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.57.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:57:29 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , Satish Kharat , Sesidhar Baddela , Karan Tilak Kumar , "James E.J. Bottomley" Subject: [PATCH v3 36/80] scsi: fnic: Declare host template const Date: Wed, 22 Mar 2023 12:54:31 -0700 Message-Id: <20230322195515.1267197-37-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche --- drivers/scsi/fnic/fnic_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/fnic/fnic_main.c b/drivers/scsi/fnic/fnic_main.c index 1077110ab273..984bc5fc55e2 100644 --- a/drivers/scsi/fnic/fnic_main.c +++ b/drivers/scsi/fnic/fnic_main.c @@ -95,7 +95,7 @@ static int fnic_slave_alloc(struct scsi_device *sdev) return 0; } -static struct scsi_host_template fnic_host_template = { +static const struct scsi_host_template fnic_host_template = { .module = THIS_MODULE, .name = DRV_NAME, .queuecommand = fnic_queuecommand, From patchwork Wed Mar 22 19:54:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184584 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 77467C6FD1C for ; Wed, 22 Mar 2023 19:58:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230503AbjCVT6l (ORCPT ); Wed, 22 Mar 2023 15:58:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230270AbjCVT5w (ORCPT ); Wed, 22 Mar 2023 15:57:52 -0400 Received: from mail-pj1-f54.google.com (mail-pj1-f54.google.com [209.85.216.54]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2335F5BCA4 for ; Wed, 22 Mar 2023 12:57:32 -0700 (PDT) Received: by mail-pj1-f54.google.com with SMTP id p3-20020a17090a74c300b0023f69bc7a68so15746856pjl.4 for ; Wed, 22 Mar 2023 12:57:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515051; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nGX3sCfP9S9SbUwoJVF9uNLn7ct4AxiUrRAsNV4NPzM=; b=47rNcLH1ZX52sTNTOlIbisKj9jumQgtDXdvXB4PfYT5cp5xrXgGBmq2HaaSC7Q6d7Q kFDjV5ykw0hy7lIXbrKYAzEKGP7L2sEC9E5XhK8mQvRwTm2AYcTtKghjRMrmbb4J18ym 4s8/iWgE4mBTHBzpsd+T3GrrLJyDXaLAT1iQ3FmZvGSZgo/ns2FHA+T4s4ux+metltYR KCKIxYiHii5VpPayQqk+zlu/Ipgc7opb/aTqfO8G/TGET9Bul6QEFJi8NJYIzXw6UstC wRPs75Binnlq+SVoFOg4EpPuQ6AgUSIPXfy2VrOkV/RdjDW1c86MxtfS8M++bMPjOfQ0 R5mA== X-Gm-Message-State: AO0yUKWuwNm+pGOqP7jtquDOgGTHE4t4mvEYKF0tmIvWpxtJ56aQCElw LtO/Qp6nFawZ96g1LbHxbPM= X-Google-Smtp-Source: AK7set9Zi/HiEGX8CvgX7qJjqfzYobd7ZrkirPLaCDS8/AAwZ2VMZCG9IU3KFbQ9/PWR1QzBAWsvUw== X-Received: by 2002:a17:90b:17c9:b0:23d:31c3:c98d with SMTP id me9-20020a17090b17c900b0023d31c3c98dmr5458070pjb.15.1679515051484; Wed, 22 Mar 2023 12:57:31 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.57.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:57:30 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , Saurav Kashyap , Javed Hasan , GR-QLogic-Storage-Upstream@marvell.com, "James E.J. Bottomley" Subject: [PATCH v3 37/80] scsi: qedf: Declare host template const Date: Wed, 22 Mar 2023 12:54:32 -0700 Message-Id: <20230322195515.1267197-38-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche --- drivers/scsi/qedf/qedf_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/qedf/qedf_main.c b/drivers/scsi/qedf/qedf_main.c index 35e16600fc63..e7f2560b9f7d 100644 --- a/drivers/scsi/qedf/qedf_main.c +++ b/drivers/scsi/qedf/qedf_main.c @@ -979,7 +979,7 @@ static int qedf_slave_configure(struct scsi_device *sdev) return 0; } -static struct scsi_host_template qedf_host_template = { +static const struct scsi_host_template qedf_host_template = { .module = THIS_MODULE, .name = QEDF_MODULE_NAME, .this_id = -1, From patchwork Wed Mar 22 19:54:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184585 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 22341C6FD1F for ; Wed, 22 Mar 2023 19:58:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230387AbjCVT6m (ORCPT ); Wed, 22 Mar 2023 15:58:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230510AbjCVT5x (ORCPT ); Wed, 22 Mar 2023 15:57:53 -0400 Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 718B567003 for ; Wed, 22 Mar 2023 12:57:33 -0700 (PDT) Received: by mail-pl1-f178.google.com with SMTP id u5so20279587plq.7 for ; Wed, 22 Mar 2023 12:57:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515053; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=07ZQaPfc2uMfGLVpQX+PlaqpVOWVCeYsM+H7InAN6kE=; b=ixKKgrHwgZHWuVD6WepiKB5F9E7/aWhaD/BWCmaXA2YuTFF3/wSh/kN6Jghg5XgHVS aejFEc8I5VWlLHZpg/GTzf72jELwF4mxoBD7Sd+kj4pHJHNFsPUClIGoijC5KwrZjw0/ Hz4T0yBBbzfRVSVEafjWvkhNQn3m8fAhwBiPHV3QjoMvJ85py9O8TzpViISM5CLbT9VN zqK9TRgmB9SYZ8imJSlk8vAeoA2zYZr1gZeoKosfAbdi62qTvWFStQYMv2JCj0MHMQ+I b2tkUzFtVEPvvzN6nN82J3/zVT+E4RjSdrm4u5ODHSbyTNIzujsW6KG2/dCTOP+K044L YdBQ== X-Gm-Message-State: AO0yUKUvjz9374qEI8aqf2MFKsuLl5dPflyQYqoiLR36PdQEakqYA21X f4rPXou/zj6PPEISeE3O9fM= X-Google-Smtp-Source: AK7set+D4OL/Zqbym1eSaEAqDEVarGJ8BBrKxcqsh9rkIobj77VdFK8Evu66meJUyy0VyJYKH6ootQ== X-Received: by 2002:a17:90b:1c8c:b0:237:99b8:4eef with SMTP id oo12-20020a17090b1c8c00b0023799b84eefmr5019694pjb.9.1679515052677; Wed, 22 Mar 2023 12:57:32 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.57.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:57:32 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , "James E.J. Bottomley" Subject: [PATCH v3 38/80] scsi: fdomain: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:54:33 -0700 Message-Id: <20230322195515.1267197-39-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche --- drivers/scsi/fdomain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/fdomain.c b/drivers/scsi/fdomain.c index 444eac9b2466..504c4e0c5d17 100644 --- a/drivers/scsi/fdomain.c +++ b/drivers/scsi/fdomain.c @@ -496,7 +496,7 @@ static int fdomain_biosparam(struct scsi_device *sdev, return 0; } -static struct scsi_host_template fdomain_template = { +static const struct scsi_host_template fdomain_template = { .module = THIS_MODULE, .name = "Future Domain TMC-16x0", .proc_name = "fdomain", From patchwork Wed Mar 22 19:54:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184586 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A07C7C77B60 for ; Wed, 22 Mar 2023 19:58:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231221AbjCVT6n (ORCPT ); Wed, 22 Mar 2023 15:58:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230382AbjCVT5x (ORCPT ); Wed, 22 Mar 2023 15:57:53 -0400 Received: from mail-pj1-f46.google.com (mail-pj1-f46.google.com [209.85.216.46]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 776466A9D1 for ; Wed, 22 Mar 2023 12:57:34 -0700 (PDT) Received: by mail-pj1-f46.google.com with SMTP id fy10-20020a17090b020a00b0023b4bcf0727so20263892pjb.0 for ; Wed, 22 Mar 2023 12:57:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515054; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9Eqt+ITNuMCviCw/LJKFT6yVsmzr7b0qC6Hk9y7auM8=; b=xMxl9t827AI9kI3LVv2eb/kUlOe5/at0/7Cua8m3vV2s7ykBypYUMFVydIBEWAmP1v +zsUNvebYAPZtvw12xRoRyjn6x/L2UvKa9y3SP1W063DbGqO6C+Y5Mw91rMC7ewvFJeh +imJtBKS0VQMuj2ebExj7pRVQtbjTOiFMg4R9LRTRIhfvgDaQK4nsawO5ehf4sJKdEOZ CnvgOhepCq7R9MXqAJNXXzsgBQrRSY5ZvANKfi1wZibNxCOTxt9TvkRKAGpD/L/AB83Z /8VOfogtWSbTuNARrMZHJedOX120+DsP2PsBJqLd+avM/aeifYWWaJf8gph895VweI32 nF/A== X-Gm-Message-State: AO0yUKVfs0SZsY0AOgDt2vuaIXHMEBqPq1lPZMm3xPHVQuM68ffMZSZr f2MxbXr8xf5+hAX5+9v+/oU= X-Google-Smtp-Source: AK7set96ib2cF5DIy0vB9Mokr4mdhacHH3zsHFq7eU8Pu460+Kpt6C78caPdiZxVRwMdSSbzNtO3Yw== X-Received: by 2002:a17:90b:4b43:b0:23f:680e:78be with SMTP id mi3-20020a17090b4b4300b0023f680e78bemr4262987pjb.48.1679515054056; Wed, 22 Mar 2023 12:57:34 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.57.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:57:33 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , Finn Thain , Michael Schmitz , "James E.J. Bottomley" Subject: [PATCH v3 39/80] scsi: NCR5380: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:54:34 -0700 Message-Id: <20230322195515.1267197-40-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche --- drivers/scsi/g_NCR5380.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/g_NCR5380.c b/drivers/scsi/g_NCR5380.c index 0c768e7d06b9..f6305e3e60f4 100644 --- a/drivers/scsi/g_NCR5380.c +++ b/drivers/scsi/g_NCR5380.c @@ -219,7 +219,7 @@ static int hp_c2502_irqs[] = { 9, 5, 7, 3, 4, -1 }; -static int generic_NCR5380_init_one(struct scsi_host_template *tpnt, +static int generic_NCR5380_init_one(const struct scsi_host_template *tpnt, struct device *pdev, int base, int irq, int board) { bool is_pmio = base <= 0xffff; @@ -689,7 +689,7 @@ static int generic_NCR5380_dma_residual(struct NCR5380_hostdata *hostdata) #include "NCR5380.c" -static struct scsi_host_template driver_template = { +static const struct scsi_host_template driver_template = { .module = THIS_MODULE, .proc_name = DRV_MODULE_NAME, .name = "Generic NCR5380/NCR53C400 SCSI", From patchwork Wed Mar 22 19:54:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184587 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2CED0C6FD1C for ; Wed, 22 Mar 2023 19:58:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231223AbjCVT6q (ORCPT ); Wed, 22 Mar 2023 15:58:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230519AbjCVT5y (ORCPT ); Wed, 22 Mar 2023 15:57:54 -0400 Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7F0B6A9F4 for ; Wed, 22 Mar 2023 12:57:35 -0700 (PDT) Received: by mail-pj1-f43.google.com with SMTP id a16so15159591pjs.4 for ; Wed, 22 Mar 2023 12:57:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515055; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cQk/3RH/O3rdmcLxCxnQwypnwRP+bkVFL+TTmjyYx3c=; b=jD0Ni5Ppr4nCEO8Wuu5DFXpbMZQFH0Qu+XlWyO9i2eQFQB2m+6srtyM4PKrypCYQZ+ C97OSUMgG4ukbNYVXiuWax53cM0BvcDzY+5LZ2iJDmtuMpX2zORvVuZUBhnW5C0tqJAx UoiZGIl4weR4TAgFMlXSE790q1Kx81jHV6vDKxwokgtfvv82qbwAql8t2EXOtYNx56CW ujlN98dt7MTPN5bxn0Z4F3ovZK3UrY7IZKHfYwG0WW8ErEXxq9dhs87eGKDgdq+eYm6p FWo3npTtYVN00rChVFaoLIWCElUFcA9fnKN8stQt3UBYT8DTtdLhsNS8DzzCqGpX1rt7 vh8g== X-Gm-Message-State: AO0yUKXJqQYI4SFznTz2eqaQ5yLr1+Fggd2pLit2GRV/fM35152pP5VV nHSCCBOf8JOEEmB8pfB8sz0= X-Google-Smtp-Source: AK7set+q2K9QGQ1dtR+bNYxjdQEM9iQtW2ZAMAU/sQ27t+DqffExdJwrMBMLHhYCczw5dpCfQoe4wg== X-Received: by 2002:a17:90b:4d12:b0:23d:1948:667d with SMTP id mw18-20020a17090b4d1200b0023d1948667dmr4509844pjb.35.1679515055251; Wed, 22 Mar 2023 12:57:35 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.57.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:57:34 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , "James E.J. Bottomley" Subject: [PATCH v3 40/80] scsi: gvp11: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:54:35 -0700 Message-Id: <20230322195515.1267197-41-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche --- drivers/scsi/gvp11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/gvp11.c b/drivers/scsi/gvp11.c index 7d56a236a011..d2eddad099a2 100644 --- a/drivers/scsi/gvp11.c +++ b/drivers/scsi/gvp11.c @@ -222,7 +222,7 @@ static void dma_stop(struct Scsi_Host *instance, struct scsi_cmnd *SCpnt, } } -static struct scsi_host_template gvp11_scsi_template = { +static const struct scsi_host_template gvp11_scsi_template = { .module = THIS_MODULE, .name = "GVP Series II SCSI", .show_info = wd33c93_show_info, From patchwork Wed Mar 22 19:54:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184588 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0A3D1C7619A for ; Wed, 22 Mar 2023 19:58:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231230AbjCVT6y (ORCPT ); Wed, 22 Mar 2023 15:58:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231127AbjCVT5z (ORCPT ); Wed, 22 Mar 2023 15:57:55 -0400 Received: from mail-pj1-f50.google.com (mail-pj1-f50.google.com [209.85.216.50]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35C825A6CD for ; Wed, 22 Mar 2023 12:57:37 -0700 (PDT) Received: by mail-pj1-f50.google.com with SMTP id q102so5011172pjq.3 for ; Wed, 22 Mar 2023 12:57:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515056; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5CVFqdNaAqfTWnFzYSiDGrKNkrTKE4fRa4JTLa2V9Z4=; b=vI7F3aXyrEpoitaarcc+8ccvu/h/CQiOP8gFoO6YI8wrl/8QMr2ytnp1/gjcviSavh +BLN1wUAl5GASWFeX51KOMyvURbiuIe32+OCWCNxdTACyhjh5CGmuZjq2C7RSMRgYUWu sjcLrkU4R/roKmc+YLpDAHZ7bopP+dWwfhO71umj0rx2YXBpo1JWhaBysRjhu+AlOTes //vJrJxlMaglab/9ed0nwKpE+Y4+qayOC9Vt6YBvgcky7tLrEe/9nMgtlPiQuufUywGE YUwWpk7ZuchxPX6Aol4TyfNZ1jYwEC11f7VJyknKoinaudeWjfeVTSIHSxPpXH+k0IoU gejQ== X-Gm-Message-State: AO0yUKUVtQOZYQ7W4UH0dbJ+6AXUhSlIKsjUqo2vXnSE2DAeGFP6p+UK 78FQem/FGFSEbeuusX7SMbrkqeBCrHQ= X-Google-Smtp-Source: AK7set9zVnGg4RAyXSeqqwGBA7z7H2NSe1alpH4/xDOyqVVKMb8aLXp0VHP5ba9T1OKDns/hNhIa4g== X-Received: by 2002:a17:90b:4acf:b0:23f:3539:d326 with SMTP id mh15-20020a17090b4acf00b0023f3539d326mr5094233pjb.0.1679515056575; Wed, 22 Mar 2023 12:57:36 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.57.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:57:36 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , Xiang Chen , "James E.J. Bottomley" Subject: [PATCH v3 41/80] scsi: hisi_sas: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:54:36 -0700 Message-Id: <20230322195515.1267197-42-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Acked-by: Xiang Chen Signed-off-by: Bart Van Assche --- drivers/scsi/hisi_sas/hisi_sas.h | 2 +- drivers/scsi/hisi_sas/hisi_sas_v1_hw.c | 2 +- drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 2 +- drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/scsi/hisi_sas/hisi_sas.h b/drivers/scsi/hisi_sas/hisi_sas.h index 3a5fc3658d3a..7e375499e680 100644 --- a/drivers/scsi/hisi_sas/hisi_sas.h +++ b/drivers/scsi/hisi_sas/hisi_sas.h @@ -345,7 +345,7 @@ struct hisi_sas_hw { int delay_ms, int timeout_ms); void (*debugfs_snapshot_regs)(struct hisi_hba *hisi_hba); int complete_hdr_size; - struct scsi_host_template *sht; + const struct scsi_host_template *sht; }; #define HISI_SAS_MAX_DEBUGFS_DUMP (50) diff --git a/drivers/scsi/hisi_sas/hisi_sas_v1_hw.c b/drivers/scsi/hisi_sas/hisi_sas_v1_hw.c index d643c5a49aa9..98c978df84d6 100644 --- a/drivers/scsi/hisi_sas/hisi_sas_v1_hw.c +++ b/drivers/scsi/hisi_sas/hisi_sas_v1_hw.c @@ -1735,7 +1735,7 @@ static struct attribute *host_v1_hw_attrs[] = { ATTRIBUTE_GROUPS(host_v1_hw); -static struct scsi_host_template sht_v1_hw = { +static const struct scsi_host_template sht_v1_hw = { .name = DRV_NAME, .proc_name = DRV_NAME, .module = THIS_MODULE, diff --git a/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c b/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c index cded42f4ca44..95de3e2caaee 100644 --- a/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c +++ b/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c @@ -3551,7 +3551,7 @@ static void map_queues_v2_hw(struct Scsi_Host *shost) } } -static struct scsi_host_template sht_v2_hw = { +static const struct scsi_host_template sht_v2_hw = { .name = DRV_NAME, .proc_name = DRV_NAME, .module = THIS_MODULE, diff --git a/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c b/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c index 8d0e2dd6207a..c55bef584a9b 100644 --- a/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c +++ b/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c @@ -3282,7 +3282,7 @@ static void hisi_sas_map_queues(struct Scsi_Host *shost) } } -static struct scsi_host_template sht_v3_hw = { +static const struct scsi_host_template sht_v3_hw = { .name = DRV_NAME, .proc_name = DRV_NAME, .module = THIS_MODULE, From patchwork Wed Mar 22 19:54:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184589 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 149EAC761AF for ; Wed, 22 Mar 2023 19:58:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231149AbjCVT6z (ORCPT ); Wed, 22 Mar 2023 15:58:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231136AbjCVT54 (ORCPT ); Wed, 22 Mar 2023 15:57:56 -0400 Received: from mail-pj1-f45.google.com (mail-pj1-f45.google.com [209.85.216.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CDAE6A1FC for ; Wed, 22 Mar 2023 12:57:38 -0700 (PDT) Received: by mail-pj1-f45.google.com with SMTP id qe8-20020a17090b4f8800b0023f07253a2cso20234645pjb.3 for ; Wed, 22 Mar 2023 12:57:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515058; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=quSwOi8pdXR96PbdzxIDPFLfv2sjvOrJRh9I3yywWaU=; b=Sk/nsrWcn0lTWzLKwUprn7iGqlxSIunvZcSP4Clua5k8ReNSTnaqNKjZAaeQ+g1ZSr GZ9QxmbwnIQj3HvDI9jlAWjoJ+8dAnIkn3qNKo6hnXvKreFtaHJBg9h5Mv18vwCzpEfb MWGjVkmuAdKG/9m7/QmHWUOhM330hxx1EQOmEe4ZZ7rc7nNLDq9kODNjo2xB7sn+5QtE vqGgl7Tp0DfirzmTMa8BI6OKieBElHv6ucKxhHrZmmMSgNyRn3tV+monTBzWq3XwRxZM qnwSoEeAvI9U+ZAk+yxVmuWwesCiHjoT3aP7cNXmPh2a+9bBrmsRWlKvXOecgCa2yhTi uljA== X-Gm-Message-State: AO0yUKWMGthKu1ZWNGRPdS7MHMgdzFOwRDw4vQcTq9RxikG5a0jZH+Jq g+6O9FxOZm+S55UPWmHLw5w= X-Google-Smtp-Source: AK7set/y5e7pdgSxnKcRNlcIpo2GokUrGWtmpZrey1IOqZdQrSc6m45/TX6kh+50cLvMm+Ehcn/mOQ== X-Received: by 2002:a17:90a:1918:b0:23a:8d71:99d with SMTP id 24-20020a17090a191800b0023a8d71099dmr4802543pjg.22.1679515057732; Wed, 22 Mar 2023 12:57:37 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.57.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:57:37 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , Don Brace , "James E.J. Bottomley" Subject: [PATCH v3 42/80] scsi: hpsa: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:54:37 -0700 Message-Id: <20230322195515.1267197-43-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche --- drivers/scsi/hpsa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index fec7e17747f7..9fab57852609 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c @@ -967,7 +967,7 @@ ATTRIBUTE_GROUPS(hpsa_shost); #define HPSA_NRESERVED_CMDS (HPSA_CMDS_RESERVED_FOR_DRIVER +\ HPSA_MAX_CONCURRENT_PASSTHRUS) -static struct scsi_host_template hpsa_driver_template = { +static const struct scsi_host_template hpsa_driver_template = { .module = THIS_MODULE, .name = HPSA, .proc_name = HPSA, From patchwork Wed Mar 22 19:54:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184590 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A2319C7619A for ; Wed, 22 Mar 2023 19:58:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230437AbjCVT64 (ORCPT ); Wed, 22 Mar 2023 15:58:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231150AbjCVT55 (ORCPT ); Wed, 22 Mar 2023 15:57:57 -0400 Received: from mail-pj1-f45.google.com (mail-pj1-f45.google.com [209.85.216.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 640356A1F8 for ; Wed, 22 Mar 2023 12:57:39 -0700 (PDT) Received: by mail-pj1-f45.google.com with SMTP id gp15-20020a17090adf0f00b0023d1bbd9f9eso24688786pjb.0 for ; Wed, 22 Mar 2023 12:57:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515059; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=239hkCXB94hvY9rEBCDXzyIlK2lqlyBB9GRut91MAN8=; b=XgAnVGy1VVlxaSNvNYB1sZAtqBzZjljSVBLbqJFP1L4MTbcgdkZdbkaxv48zdSCGro cgEkiTc/gva/ljzQfutqYuUHPGQJ+gIl3EZTjm7iqgnxC19WkSAAtBAL7wxwlzexgD91 heWtW84nU0bQI9G48iDILAtrV3AuJbXk7eDFwr0HtfjucdBYd3RE2Pfx4dJLs+j5Oklj QImNRG7IBiA0esSnCimcXztRm3IGrMxkauSa/hJkpmaKtrhb79GL9xnMf4UDvxSJ9yzK pdaqN3XA6o4MnDVNki+apwzLmPHMK3ALRVeBigaOX2eSZV7zv/yKJckWjEMzzZzWwoJ4 2OHA== X-Gm-Message-State: AO0yUKUy2sEpsnUREgsKe34q8/us9HGkRPNLu+HgPUmLdUoddofoceVP ILVkkCnZl922goKMugXU+a4= X-Google-Smtp-Source: AK7set+OBehp+W0YYvkjUaeErgCKCX4rmh1bhnZHbT1ikAqhsDWYgqX0esfKNhd3CLImMLxQJ8Oi1Q== X-Received: by 2002:a17:90b:3eca:b0:23d:e0c1:8b8e with SMTP id rm10-20020a17090b3eca00b0023de0c18b8emr4857788pjb.17.1679515058887; Wed, 22 Mar 2023 12:57:38 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.57.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:57:38 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , HighPoint Linux Team , "James E.J. Bottomley" Subject: [PATCH v3 43/80] scsi: hptiop: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:54:38 -0700 Message-Id: <20230322195515.1267197-44-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche --- drivers/scsi/hptiop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/hptiop.c b/drivers/scsi/hptiop.c index 7e8903718245..06ccb51bf6a9 100644 --- a/drivers/scsi/hptiop.c +++ b/drivers/scsi/hptiop.c @@ -1159,7 +1159,7 @@ static int hptiop_slave_config(struct scsi_device *sdev) return 0; } -static struct scsi_host_template driver_template = { +static const struct scsi_host_template driver_template = { .module = THIS_MODULE, .name = driver_name, .queuecommand = hptiop_queuecommand, From patchwork Wed Mar 22 19:54:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184591 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BEE6DC77B61 for ; Wed, 22 Mar 2023 19:58:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230281AbjCVT66 (ORCPT ); Wed, 22 Mar 2023 15:58:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230456AbjCVT6A (ORCPT ); Wed, 22 Mar 2023 15:58:00 -0400 Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C57D65054 for ; Wed, 22 Mar 2023 12:57:40 -0700 (PDT) Received: by mail-pl1-f182.google.com with SMTP id z19so9877482plo.2 for ; Wed, 22 Mar 2023 12:57:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515060; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+nPdfaCBfymi9FswOaEhynsUU0AC84LnhTLDzofEm7g=; b=O9+vBiyp6cDzqbcpzGae5BbgYrdDs3k7Jd3zzuEtnfftrHPmDjPoxLBFG4fd//D4tt aOqiohThnEnFk39FbGaHr1KOU33hIW9gZHTB1U4W/lUfZSLwVyWcxJNkwpkD/QTTnzp4 FJ0VExhkaCmrVLPDqqs+Zyel+Mv7/RNNJVcPYoR7kxbU0bfLU/m3jVEpoTlprJlalWMf fo5yjoF7DLF5kT0vXZEetTZaOT8W858jBTNkjEZnt/5HMm3nuNqRReyPqSpYe7oDNe0a GHbJYTZWb8cnMdnnYulyrsia6Hx5G18tEOs45fAfuycF17VMB0d9JeKD3T3X8/Rp6/ad 1ecA== X-Gm-Message-State: AO0yUKWR/2Hu7Pz2AcpVjkry/S40RxXoRLrXMyMq4AQba1wm5cKzCT+s P9y73/1tJKS8JT9mCBhg7JEoZxX752vy0g== X-Google-Smtp-Source: AK7set/zv17aL0eCO6NgYzpjzNVEal44X/K5DaBZnxjNj23w3coi6JjgbWe9Kb2qdKM/kcaxT0ct3Q== X-Received: by 2002:a17:90b:3881:b0:237:3dfb:9095 with SMTP id mu1-20020a17090b388100b002373dfb9095mr5166404pjb.6.1679515060228; Wed, 22 Mar 2023 12:57:40 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.57.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:57:39 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , Tyrel Datwyler , Michael Ellerman , "James E.J. Bottomley" Subject: [PATCH v3 44/80] scsi: ibmvfc: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:54:39 -0700 Message-Id: <20230322195515.1267197-45-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Acked-by: Tyrel Datwyler Signed-off-by: Bart Van Assche --- drivers/scsi/ibmvscsi/ibmvfc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/ibmvscsi/ibmvfc.c b/drivers/scsi/ibmvscsi/ibmvfc.c index 1a0c0b7289d2..ce9eb00e2ca0 100644 --- a/drivers/scsi/ibmvscsi/ibmvfc.c +++ b/drivers/scsi/ibmvscsi/ibmvfc.c @@ -3611,7 +3611,7 @@ static struct attribute *ibmvfc_host_attrs[] = { ATTRIBUTE_GROUPS(ibmvfc_host); -static struct scsi_host_template driver_template = { +static const struct scsi_host_template driver_template = { .module = THIS_MODULE, .name = "IBM POWER Virtual FC Adapter", .proc_name = IBMVFC_NAME, From patchwork Wed Mar 22 19:54:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184592 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D590FC6FD1C for ; Wed, 22 Mar 2023 19:59:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230184AbjCVT7H (ORCPT ); Wed, 22 Mar 2023 15:59:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231169AbjCVT6A (ORCPT ); Wed, 22 Mar 2023 15:58:00 -0400 Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED2E265068 for ; Wed, 22 Mar 2023 12:57:41 -0700 (PDT) Received: by mail-pl1-f181.google.com with SMTP id le6so20266871plb.12 for ; Wed, 22 Mar 2023 12:57:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515061; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ksKFgRH4rYvlBG1yS/w98H9HGUxvKE6kRBa+hfKL1B0=; b=M3kg2O7KUbMsVtcewkqmtAUPn33uTF1Q986xpdaoO+LXRc/By4huqRoILIZuq9jIuq 3WydL1lB12c2fK9Cf8BY+wUfuP029oy4Cfwt1fU9j80o2uZfWLE37SZP+7IiGt0pkTOh YQoiFu82RzTfuHHQeTeIt7BU+q0U0stD0KAxMYv5LNVKKNnti5O7D0JaiGXKyPI14KQJ 8qWbFcYmK6YQkT5WGEM9bg901w0Ma53p4mCR9KvqhjdAssGtpfzrb/qL3lmwET6AvhwG yXwdlWcC5n8OpUkCXlMcvotH6HG6aatRxZHSPO4uVhpEU3FKKeDuoafjJnHZDyUowwa1 yeCg== X-Gm-Message-State: AO0yUKVK1jjeib63Ae45fRp9b0iPYWV7NI6edM1npHH/y6fijrP74VU6 LZFOBYM6FOkquveoJ9Op+Ao= X-Google-Smtp-Source: AK7set/bQIwwtBb/ZxisBp2+UVRVUuU8JLlzEzZCE4SLgr93zFDaXwnpbLcdfC85fFBwAJ0ckxRwPg== X-Received: by 2002:a17:90b:4c4d:b0:23e:2b3c:d4a7 with SMTP id np13-20020a17090b4c4d00b0023e2b3cd4a7mr4338703pjb.35.1679515061454; Wed, 22 Mar 2023 12:57:41 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.57.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:57:40 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , "James E.J. Bottomley" Subject: [PATCH v3 45/80] scsi: imm: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:54:40 -0700 Message-Id: <20230322195515.1267197-46-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche --- drivers/scsi/imm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/imm.c b/drivers/scsi/imm.c index 7a499d621c25..07db98161a03 100644 --- a/drivers/scsi/imm.c +++ b/drivers/scsi/imm.c @@ -1096,7 +1096,7 @@ static int imm_adjust_queue(struct scsi_device *device) return 0; } -static struct scsi_host_template imm_template = { +static const struct scsi_host_template imm_template = { .module = THIS_MODULE, .proc_name = "imm", .show_info = imm_show_info, From patchwork Wed Mar 22 19:54:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184593 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DE68EC6FD1F for ; Wed, 22 Mar 2023 19:59:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231169AbjCVT7J (ORCPT ); Wed, 22 Mar 2023 15:59:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231168AbjCVT6A (ORCPT ); Wed, 22 Mar 2023 15:58:00 -0400 Received: from mail-pj1-f45.google.com (mail-pj1-f45.google.com [209.85.216.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 29B646A403 for ; Wed, 22 Mar 2023 12:57:42 -0700 (PDT) Received: by mail-pj1-f45.google.com with SMTP id qe8-20020a17090b4f8800b0023f07253a2cso20234850pjb.3 for ; Wed, 22 Mar 2023 12:57:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515062; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=MFd7OEytCze0u5XL5op+H8sbsT2Mg/pBWrkNJAZR/H8=; b=q5xhWZD1/GN+OnA7SfNcVP3H0lrcQV9rd7itSQ5aEpbL29fZnVHzgIHCiYLG6sWaRx GAINmZuTquYAamF4FYcy7Fw4wdDj0Ytwba7fv+WnIT9gts98z9012pOoY0yytt5mUFhy NClYz0wxxyBDMLJ9sF2WUYk0hLrml4dFT9UwjCrX5vqFid/XNF6s7xjJ9KXFa7j2Tr1F ZiUHp2zWp6KH5dTbdUrqUkKV3YPcgP62vRa+erAHwM0jPJvDJXU7FOj95VcecaiMI7Hv 3ix+kqpqoXPHHMoe2kLy1GD25NKjaa5m+lqCZ8OTcWQueDAlpjfpGJX+nPUnNIvI1hyB RjoQ== X-Gm-Message-State: AO0yUKVCAh+k/zR2fCxr9eerCraSpj/7u8VATV6rzsACDVTHa7+EJnE6 rOTMpf3TC/VoQYZjOkvOLcw= X-Google-Smtp-Source: AK7set8bmVsnKssomkJxvD9ENYAb+xMqMHK88mcXJTsXyyPpvRPgMxV1UrkEwkjTtDhJ6C1KrnHEFw== X-Received: by 2002:a17:90b:3c49:b0:23d:35d9:d03e with SMTP id pm9-20020a17090b3c4900b0023d35d9d03emr4452731pjb.48.1679515062599; Wed, 22 Mar 2023 12:57:42 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.57.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:57:42 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , "James E.J. Bottomley" Subject: [PATCH v3 46/80] scsi: initio: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:54:41 -0700 Message-Id: <20230322195515.1267197-47-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche --- drivers/scsi/initio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/initio.c b/drivers/scsi/initio.c index 375261d67619..2a50fda3a628 100644 --- a/drivers/scsi/initio.c +++ b/drivers/scsi/initio.c @@ -2788,7 +2788,7 @@ static void i91uSCBPost(u8 * host_mem, u8 * cblk_mem) initio_release_scb(host, cblk); /* Release SCB for current channel */ } -static struct scsi_host_template initio_template = { +static const struct scsi_host_template initio_template = { .proc_name = "INI9100U", .name = "Initio INI-9X00U/UW SCSI device driver", .queuecommand = i91u_queuecommand, From patchwork Wed Mar 22 19:54:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184594 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1A55FC76196 for ; Wed, 22 Mar 2023 19:59:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231168AbjCVT7K (ORCPT ); Wed, 22 Mar 2023 15:59:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230311AbjCVT6B (ORCPT ); Wed, 22 Mar 2023 15:58:01 -0400 Received: from mail-pj1-f47.google.com (mail-pj1-f47.google.com [209.85.216.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69F5A65C57 for ; Wed, 22 Mar 2023 12:57:44 -0700 (PDT) Received: by mail-pj1-f47.google.com with SMTP id e15-20020a17090ac20f00b0023d1b009f52so24656679pjt.2 for ; Wed, 22 Mar 2023 12:57:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515064; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=px+VcymeEwEDAGjtrWl3/YMfcdfrocZHJayOmxP7gJo=; b=X0kPIGqnMkJqItTJgAhkWPjONBcf5JfejhyQToC3LT7fU8/hzSon4u/16+Y3JE0qmk OGdfGjXgZ9Qfz+3h5e79eQadRZoJKaLAAp6Bkts3B+T2e5MPObfY8wVpMFuKAvnzh/lB I8zn2DbQkCATTlMGSWyDYuWENaR11p+Xa0Um2ULhbvyDBMP2aeJPcYwxzETqckyi9XVZ FE2J22sNVKh9Y7LP+LOZ7B5u2XUy/PBHWn9Fh9y0rny4oFC8kC/lvK0WywvqrxRKNgQ/ qzEFePbE/10KNfcNEl1x9pMm1SdOdfHl96Y4wPfeQ8E8JoPH8TnBFX3EdVPmE+SMo5ZL DWHA== X-Gm-Message-State: AO0yUKU2QLC2r+J90XtNnWTMdUvcyHxw5jQKu7kFNqADBYLdycQFJlF0 gzpiT/3iYmXin6CAZmFMbRM= X-Google-Smtp-Source: AK7set+Sj/NvGIQFC7aRCVatgWs/F9lisZVxikP7YdyYAT1eu+R19bWgDNNr+2xB33GK2FXoF3H6Vg== X-Received: by 2002:a17:90b:3b45:b0:237:97a3:1479 with SMTP id ot5-20020a17090b3b4500b0023797a31479mr5322176pjb.28.1679515063892; Wed, 22 Mar 2023 12:57:43 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.57.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:57:43 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , Brian King , Brian King , "James E.J. Bottomley" Subject: [PATCH v3 47/80] scsi: ipr: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:54:42 -0700 Message-Id: <20230322195515.1267197-48-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Acked-by: Brian King Signed-off-by: Bart Van Assche --- drivers/scsi/ipr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/ipr.c b/drivers/scsi/ipr.c index c74053f0b72f..4d3c280a7360 100644 --- a/drivers/scsi/ipr.c +++ b/drivers/scsi/ipr.c @@ -6736,7 +6736,7 @@ static const char *ipr_ioa_info(struct Scsi_Host *host) return buffer; } -static struct scsi_host_template driver_template = { +static const struct scsi_host_template driver_template = { .module = THIS_MODULE, .name = "IPR", .info = ipr_ioa_info, From patchwork Wed Mar 22 19:54:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184595 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 76A4CC6FD1F for ; Wed, 22 Mar 2023 19:59:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230207AbjCVT7R (ORCPT ); Wed, 22 Mar 2023 15:59:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231178AbjCVT6S (ORCPT ); Wed, 22 Mar 2023 15:58:18 -0400 Received: from mail-pj1-f54.google.com (mail-pj1-f54.google.com [209.85.216.54]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09D0E6A405 for ; Wed, 22 Mar 2023 12:57:45 -0700 (PDT) Received: by mail-pj1-f54.google.com with SMTP id j13so19506328pjd.1 for ; Wed, 22 Mar 2023 12:57:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515065; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Q5YcXSUW/MYMp0sgEwmo/vVQvOhQmpTmjGGC3D+urCQ=; b=IuK2DHQ02sUGM9dhLDGOUr8NRRWaKs65k4rupQAlh7CT3mrEfOPV/z54dPFDT8L+QN YmacHevEST2SsCqsPVtaiwXGVqcvtAPH3/bpl2CjSPrG8eD7fRV6Qyk7yLaq3MvNcORI 6yGCJOYgoAeDWjeDeoxDJ1PRO02coerCJAE2lkwuYWdLqgvzYqPcidfmeUWBPcSOnPtK XCMRkahvHUSwGIxt0hR1hTO8X43S+aooAo8MWWDwTbystcs8sTyI7p2YjmZpd9Dh+AB7 cfmrPBt/KSWPU42Z4umbwa9ZDpJgjxids53NKg1vH1USkg7rXftsxMxicrKI99FtfbqO 8cEw== X-Gm-Message-State: AO0yUKUishX4HERltrIPdsxZQ/11Kr7jnsuRqjbYitZo+GQO5HBCRLEa XPV4NAj5VMMg4m+78mc9pxc= X-Google-Smtp-Source: AK7set97yaJSUTPULtCv4BM7NmuogAhwlP6VUEdnob+2Im9PXD0af3k1k/rvoEgOYnqvfNeVO4IG8w== X-Received: by 2002:a17:90a:1a51:b0:23b:5155:30a9 with SMTP id 17-20020a17090a1a5100b0023b515530a9mr4777392pjl.40.1679515065052; Wed, 22 Mar 2023 12:57:45 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.57.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:57:44 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , Artur Paszkiewicz , "James E.J. Bottomley" Subject: [PATCH v3 48/80] scsi: isci: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:54:43 -0700 Message-Id: <20230322195515.1267197-49-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the ISCI host template is not modified. Signed-off-by: Bart Van Assche --- drivers/scsi/isci/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/isci/init.c b/drivers/scsi/isci/init.c index e294d5d961eb..ac1e04b86d8f 100644 --- a/drivers/scsi/isci/init.c +++ b/drivers/scsi/isci/init.c @@ -149,7 +149,7 @@ static struct attribute *isci_host_attrs[] = { ATTRIBUTE_GROUPS(isci_host); -static struct scsi_host_template isci_sht = { +static const struct scsi_host_template isci_sht = { .module = THIS_MODULE, .name = DRV_NAME, From patchwork Wed Mar 22 19:54:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184597 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1226FC7619A for ; Wed, 22 Mar 2023 19:59:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231144AbjCVT75 (ORCPT ); Wed, 22 Mar 2023 15:59:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230517AbjCVT72 (ORCPT ); Wed, 22 Mar 2023 15:59:28 -0400 Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 810AD5CC3D for ; Wed, 22 Mar 2023 12:58:05 -0700 (PDT) Received: by mail-pl1-f177.google.com with SMTP id ix20so20300655plb.3 for ; Wed, 22 Mar 2023 12:58:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515082; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wHkDbF0/Z1JjMYvDeydty31pm3qJrqFiajGlMun4cOw=; b=FikP7bkTEUpGdjTOqnKnjvnjFfmctpUYL7njxb6AXhWmpg5XixWOLDCQgJEZ0BJSE1 ELU90DQZafkkPeD+zug6M4x5n0cwNmk9TWUWCkz+HaBVYvtm4BTa4bNoC8c+Cb1nJdWs Uxczrd8uczmfFr7rAq1E9jQDbw77v5ex+jCnr4ncX/GtJy9H2KXjblDib88XC3wfFyU/ UtesjEEJX3FWcBddHyuCiQ7DQWAb5NutUDC94QKnUSJ5iS2cKMLZl2tChir1Pl/+ZjxV ftY+TXQlr+Sjw+O1ZV9QZ0+DyIJz2WNfS7dOKn6yWqeBPX1jbR5OfoqrNEEfFLI4XeEk /5KA== X-Gm-Message-State: AO0yUKXrNdNLYE1eHGekAGo9xWklgHkQ2HutS0phx1cZAFUWwVqBHyys vox297nK+8nqAQCnuXHgYZk= X-Google-Smtp-Source: AK7set/rEBSgbTRdt6SyyAGwwZ+TsbypvvXqrfv428YYi5NmOCd2eja0Vg2t7+tzPtuu39SiT11BYA== X-Received: by 2002:a17:90b:4acf:b0:23f:3539:d326 with SMTP id mh15-20020a17090b4acf00b0023f3539d326mr5095252pjb.0.1679515082385; Wed, 22 Mar 2023 12:58:02 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.58.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:58:02 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , Mike Christie , Sagi Grimberg , Max Gurtovoy , Jason Gunthorpe , Leon Romanovsky , Ketan Mukadam , "James E.J. Bottomley" , Nilesh Javali , Manish Rangankar , GR-QLogic-Storage-Upstream@marvell.com, Varun Prakash , Lee Duncan , Chris Leech , Wu Bo , Jesper Juhl Subject: [PATCH v3 49/80] scsi: iscsi: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:54:44 -0700 Message-Id: <20230322195515.1267197-50-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Reviewed-by: Mike Christie Signed-off-by: Bart Van Assche --- drivers/infiniband/ulp/iser/iscsi_iser.c | 4 ++-- drivers/scsi/be2iscsi/be_main.c | 2 +- drivers/scsi/bnx2i/bnx2i_iscsi.c | 4 ++-- drivers/scsi/cxgbi/cxgb3i/cxgb3i.c | 2 +- drivers/scsi/cxgbi/libcxgbi.c | 2 +- drivers/scsi/cxgbi/libcxgbi.h | 2 +- drivers/scsi/iscsi_tcp.c | 4 ++-- drivers/scsi/libiscsi.c | 2 +- drivers/scsi/qedi/qedi_gbl.h | 2 +- drivers/scsi/qedi/qedi_iscsi.c | 2 +- include/scsi/libiscsi.h | 2 +- 11 files changed, 14 insertions(+), 14 deletions(-) diff --git a/drivers/infiniband/ulp/iser/iscsi_iser.c b/drivers/infiniband/ulp/iser/iscsi_iser.c index 6b7603765383..bb9aaff92ca3 100644 --- a/drivers/infiniband/ulp/iser/iscsi_iser.c +++ b/drivers/infiniband/ulp/iser/iscsi_iser.c @@ -78,7 +78,7 @@ MODULE_DESCRIPTION("iSER (iSCSI Extensions for RDMA) Datamover"); MODULE_LICENSE("Dual BSD/GPL"); MODULE_AUTHOR("Alex Nezhinsky, Dan Bar Dov, Or Gerlitz"); -static struct scsi_host_template iscsi_iser_sht; +static const struct scsi_host_template iscsi_iser_sht; static struct iscsi_transport iscsi_iser_transport; static struct scsi_transport_template *iscsi_iser_scsi_transport; static struct workqueue_struct *release_wq; @@ -956,7 +956,7 @@ static umode_t iser_attr_is_visible(int param_type, int param) return 0; } -static struct scsi_host_template iscsi_iser_sht = { +static const struct scsi_host_template iscsi_iser_sht = { .module = THIS_MODULE, .name = "iSCSI Initiator over iSER", .queuecommand = iscsi_queuecommand, diff --git a/drivers/scsi/be2iscsi/be_main.c b/drivers/scsi/be2iscsi/be_main.c index 08920f5f4217..e48f14ad6dfd 100644 --- a/drivers/scsi/be2iscsi/be_main.c +++ b/drivers/scsi/be2iscsi/be_main.c @@ -398,7 +398,7 @@ static const struct pci_device_id beiscsi_pci_id_table[] = { MODULE_DEVICE_TABLE(pci, beiscsi_pci_id_table); -static struct scsi_host_template beiscsi_sht = { +static const struct scsi_host_template beiscsi_sht = { .module = THIS_MODULE, .name = "Emulex 10Gbe open-iscsi Initiator Driver", .proc_name = DRV_NAME, diff --git a/drivers/scsi/bnx2i/bnx2i_iscsi.c b/drivers/scsi/bnx2i/bnx2i_iscsi.c index a3c800e04a2e..9971f32a663c 100644 --- a/drivers/scsi/bnx2i/bnx2i_iscsi.c +++ b/drivers/scsi/bnx2i/bnx2i_iscsi.c @@ -22,7 +22,7 @@ struct scsi_transport_template *bnx2i_scsi_xport_template; struct iscsi_transport bnx2i_iscsi_transport; -static struct scsi_host_template bnx2i_host_template; +static const struct scsi_host_template bnx2i_host_template; /* * Global endpoint resource info @@ -2250,7 +2250,7 @@ static umode_t bnx2i_attr_is_visible(int param_type, int param) * 'Scsi_Host_Template' structure and 'iscsi_tranport' structure template * used while registering with the scsi host and iSCSI transport module. */ -static struct scsi_host_template bnx2i_host_template = { +static const struct scsi_host_template bnx2i_host_template = { .module = THIS_MODULE, .name = "QLogic Offload iSCSI Initiator", .proc_name = "bnx2i", diff --git a/drivers/scsi/cxgbi/cxgb3i/cxgb3i.c b/drivers/scsi/cxgbi/cxgb3i/cxgb3i.c index ff9d4287937a..ec6530240707 100644 --- a/drivers/scsi/cxgbi/cxgb3i/cxgb3i.c +++ b/drivers/scsi/cxgbi/cxgb3i/cxgb3i.c @@ -80,7 +80,7 @@ static struct cxgb3_client t3_client = { .event_handler = cxgb3i_dev_event_handler, }; -static struct scsi_host_template cxgb3i_host_template = { +static const struct scsi_host_template cxgb3i_host_template = { .module = THIS_MODULE, .name = DRV_MODULE_NAME, .proc_name = DRV_MODULE_NAME, diff --git a/drivers/scsi/cxgbi/libcxgbi.c b/drivers/scsi/cxgbi/libcxgbi.c index af281e271f88..eb47c8c96d0e 100644 --- a/drivers/scsi/cxgbi/libcxgbi.c +++ b/drivers/scsi/cxgbi/libcxgbi.c @@ -337,7 +337,7 @@ void cxgbi_hbas_remove(struct cxgbi_device *cdev) EXPORT_SYMBOL_GPL(cxgbi_hbas_remove); int cxgbi_hbas_add(struct cxgbi_device *cdev, u64 max_lun, - unsigned int max_conns, struct scsi_host_template *sht, + unsigned int max_conns, const struct scsi_host_template *sht, struct scsi_transport_template *stt) { struct cxgbi_hba *chba; diff --git a/drivers/scsi/cxgbi/libcxgbi.h b/drivers/scsi/cxgbi/libcxgbi.h index d8fc7beafa20..d92cf1dccc2f 100644 --- a/drivers/scsi/cxgbi/libcxgbi.h +++ b/drivers/scsi/cxgbi/libcxgbi.h @@ -591,7 +591,7 @@ struct cxgbi_device *cxgbi_device_find_by_netdev(struct net_device *, int *); struct cxgbi_device *cxgbi_device_find_by_netdev_rcu(struct net_device *, int *); int cxgbi_hbas_add(struct cxgbi_device *, u64, unsigned int, - struct scsi_host_template *, + const struct scsi_host_template *, struct scsi_transport_template *); void cxgbi_hbas_remove(struct cxgbi_device *); diff --git a/drivers/scsi/iscsi_tcp.c b/drivers/scsi/iscsi_tcp.c index c76f82fb8b63..6df2f4041f12 100644 --- a/drivers/scsi/iscsi_tcp.c +++ b/drivers/scsi/iscsi_tcp.c @@ -47,7 +47,7 @@ MODULE_DESCRIPTION("iSCSI/TCP data-path"); MODULE_LICENSE("GPL"); static struct scsi_transport_template *iscsi_sw_tcp_scsi_transport; -static struct scsi_host_template iscsi_sw_tcp_sht; +static const struct scsi_host_template iscsi_sw_tcp_sht; static struct iscsi_transport iscsi_sw_tcp_transport; static unsigned int iscsi_max_lun = ~0; @@ -1072,7 +1072,7 @@ static int iscsi_sw_tcp_slave_configure(struct scsi_device *sdev) return 0; } -static struct scsi_host_template iscsi_sw_tcp_sht = { +static const struct scsi_host_template iscsi_sw_tcp_sht = { .module = THIS_MODULE, .name = "iSCSI Initiator over TCP/IP", .queuecommand = iscsi_queuecommand, diff --git a/drivers/scsi/libiscsi.c b/drivers/scsi/libiscsi.c index 127f3d7f19dc..0fda8905eabd 100644 --- a/drivers/scsi/libiscsi.c +++ b/drivers/scsi/libiscsi.c @@ -2895,7 +2895,7 @@ EXPORT_SYMBOL_GPL(iscsi_host_add); * This should be called by partial offload and software iscsi drivers. * To access the driver specific memory use the iscsi_host_priv() macro. */ -struct Scsi_Host *iscsi_host_alloc(struct scsi_host_template *sht, +struct Scsi_Host *iscsi_host_alloc(const struct scsi_host_template *sht, int dd_data_size, bool xmit_can_sleep) { struct Scsi_Host *shost; diff --git a/drivers/scsi/qedi/qedi_gbl.h b/drivers/scsi/qedi/qedi_gbl.h index 72942772b198..0e316cc24b19 100644 --- a/drivers/scsi/qedi/qedi_gbl.h +++ b/drivers/scsi/qedi/qedi_gbl.h @@ -17,7 +17,7 @@ extern int qedi_do_not_recover; extern uint qedi_io_tracing; -extern struct scsi_host_template qedi_host_template; +extern const struct scsi_host_template qedi_host_template; extern struct iscsi_transport qedi_iscsi_transport; extern const struct qed_iscsi_ops *qedi_ops; extern const struct qedi_debugfs_ops qedi_debugfs_ops[]; diff --git a/drivers/scsi/qedi/qedi_iscsi.c b/drivers/scsi/qedi/qedi_iscsi.c index 31ec429104e2..6ed8ef97642c 100644 --- a/drivers/scsi/qedi/qedi_iscsi.c +++ b/drivers/scsi/qedi/qedi_iscsi.c @@ -40,7 +40,7 @@ static int qedi_eh_host_reset(struct scsi_cmnd *cmd) return qedi_recover_all_conns(qedi); } -struct scsi_host_template qedi_host_template = { +const struct scsi_host_template qedi_host_template = { .module = THIS_MODULE, .name = "QLogic QEDI 25/40/100Gb iSCSI Initiator Driver", .proc_name = QEDI_MODULE_NAME, diff --git a/include/scsi/libiscsi.h b/include/scsi/libiscsi.h index e39fb0736ade..7282555adfd5 100644 --- a/include/scsi/libiscsi.h +++ b/include/scsi/libiscsi.h @@ -407,7 +407,7 @@ extern int iscsi_host_set_param(struct Scsi_Host *shost, extern int iscsi_host_get_param(struct Scsi_Host *shost, enum iscsi_host_param param, char *buf); extern int iscsi_host_add(struct Scsi_Host *shost, struct device *pdev); -extern struct Scsi_Host *iscsi_host_alloc(struct scsi_host_template *sht, +extern struct Scsi_Host *iscsi_host_alloc(const struct scsi_host_template *sht, int dd_data_size, bool xmit_can_sleep); extern void iscsi_host_remove(struct Scsi_Host *shost, bool is_shutdown); From patchwork Wed Mar 22 19:54:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184596 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D1E8AC6FD1F for ; Wed, 22 Mar 2023 19:59:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231340AbjCVT7w (ORCPT ); Wed, 22 Mar 2023 15:59:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230505AbjCVT71 (ORCPT ); Wed, 22 Mar 2023 15:59:27 -0400 Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 538EE580CD for ; Wed, 22 Mar 2023 12:58:03 -0700 (PDT) Received: by mail-pl1-f178.google.com with SMTP id u5so20280698plq.7 for ; Wed, 22 Mar 2023 12:58:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515083; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4+4v/C2RuRmCm2hrk+4AAfVZyUrantTB0vKA7PER/Cs=; b=zcIQxvBNH0nAe84JgRkpC3003KwM2dTU3uJL/86ljB19aBx56xzpAYIzhfvJsUe9Um f2Mcy+mr0o13Lauv9WC8LX2bowdI6dRAQo7LVczhDWRLWoBfd9f74WkbmDZSo/IsvKOp gA2B23FVEFSQxU8ESEyU7yGBhLzbSyq7HXYcacCbTsO68l0V3MGsTZq3Eowmhm+Ui5CX qshPMk8xXTD4f0dQpaYZV8tM7l3mmrt7rMTSgQeO7DxpAUk7N4wyA3jheN72ii+GVjrK hpJePyst+tOCRCIZ/3vrgymf2Lf9EB2vnr1YY2LVBBPdQc1jBMBMktaNR6edYiBkE0Ih AF8w== X-Gm-Message-State: AO0yUKX7GD4WCDjx4TEXsh2oE38Rkaez9U5oOU23Z8iY14uoDzSaFS6o Gp5qgewYtArgj/Ecqvo4Its= X-Google-Smtp-Source: AK7set8xv/Npc9qFgn/37j+gnApzLbOkrOS4mJuMLMp2RBp3+PXekH4E3mgBHFIrLjKbm7toNKCqBA== X-Received: by 2002:a17:90b:1a8a:b0:23e:aba9:d51d with SMTP id ng10-20020a17090b1a8a00b0023eaba9d51dmr4518698pjb.7.1679515083626; Wed, 22 Mar 2023 12:58:03 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.58.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:58:03 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , "James E.J. Bottomley" Subject: [PATCH v3 50/80] scsi: mac53c94: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:54:45 -0700 Message-Id: <20230322195515.1267197-51-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche --- drivers/scsi/mac53c94.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/mac53c94.c b/drivers/scsi/mac53c94.c index f75928f7773e..6a019132109c 100644 --- a/drivers/scsi/mac53c94.c +++ b/drivers/scsi/mac53c94.c @@ -392,7 +392,7 @@ static void set_dma_cmds(struct fsc_state *state, struct scsi_cmnd *cmd) mac53c94_priv(cmd)->this_residual = total; } -static struct scsi_host_template mac53c94_template = { +static const struct scsi_host_template mac53c94_template = { .proc_name = "53c94", .name = "53C94", .queuecommand = mac53c94_queue, From patchwork Wed Mar 22 19:54:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184598 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DAD98C6FD1F for ; Wed, 22 Mar 2023 19:59:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231240AbjCVT76 (ORCPT ); Wed, 22 Mar 2023 15:59:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230385AbjCVT72 (ORCPT ); Wed, 22 Mar 2023 15:59:28 -0400 Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE23E62B6E for ; Wed, 22 Mar 2023 12:58:06 -0700 (PDT) Received: by mail-pj1-f43.google.com with SMTP id lr16-20020a17090b4b9000b0023f187954acso20241263pjb.2 for ; Wed, 22 Mar 2023 12:58:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515085; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=THmZYnay788Z96nrcUtNDJXy0MOLvmys8mHIpIwdLfY=; b=X1cFadHhBqS1ENwELJ752wLC4qNMVMeYN4ExbQrt91yr+h/+jkVUX4bE4QLRx/aR/w BTHzfuFLSbJPJBGUiavnUDCOLmDWsf1xZ2414N7JOcMOldendjGM8j7/SgALNPmclzbS rbuPXPZVBMQlNGzyb2Tfe3wjH2btd7iYTSziexR9ufuNpmTwxdNxOH90O5RVcHX6Ud31 q5dBmJQ7vSk4H3DUkgEEzJDVq/iMdhafLBXl85e/vBEs/u8i+OFrTytEdqbhg/eVIFIb HIHi6PC23wNWP+y4QVUGwSSL30cM3pI3G+iJiXBOJwcQpckGc4FAURNmXslzOh+C/jHw CoJQ== X-Gm-Message-State: AO0yUKXS7fTWL1G8Ajt9DTFzoY2WmmuNj6NbBIZ/uDwgJg0fm1QjBAFE arkYjrwTscyEnod3fZ81srQ= X-Google-Smtp-Source: AK7set+yW/QfqLvZhn20s3y13pUzmtTbD4rTCfksXyCm6OmUzQUkbMqMge0eOXA0zrZ6YkUjFbckHw== X-Received: by 2002:a17:90b:17d0:b0:23d:1a32:56d5 with SMTP id me16-20020a17090b17d000b0023d1a3256d5mr4931741pjb.27.1679515085116; Wed, 22 Mar 2023 12:58:05 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.58.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:58:04 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , Kashyap Desai , Sumit Saxena , Shivasharan S , "James E.J. Bottomley" Subject: [PATCH v3 51/80] scsi: megaraid: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:54:46 -0700 Message-Id: <20230322195515.1267197-52-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche --- drivers/scsi/megaraid.c | 2 +- drivers/scsi/megaraid/megaraid_mbox.c | 2 +- drivers/scsi/megaraid/megaraid_sas_base.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/megaraid.c b/drivers/scsi/megaraid.c index bf491af9f0d6..3115ab991fc6 100644 --- a/drivers/scsi/megaraid.c +++ b/drivers/scsi/megaraid.c @@ -4100,7 +4100,7 @@ mega_internal_command(adapter_t *adapter, megacmd_t *mc, mega_passthru *pthru) return rval; } -static struct scsi_host_template megaraid_template = { +static const struct scsi_host_template megaraid_template = { .module = THIS_MODULE, .name = "MegaRAID", .proc_name = "megaraid_legacy", diff --git a/drivers/scsi/megaraid/megaraid_mbox.c b/drivers/scsi/megaraid/megaraid_mbox.c index 132de68c14e9..ef2b6380e19a 100644 --- a/drivers/scsi/megaraid/megaraid_mbox.c +++ b/drivers/scsi/megaraid/megaraid_mbox.c @@ -325,7 +325,7 @@ ATTRIBUTE_GROUPS(megaraid_sdev); /* * Scsi host template for megaraid unified driver */ -static struct scsi_host_template megaraid_template_g = { +static const struct scsi_host_template megaraid_template_g = { .module = THIS_MODULE, .name = "LSI Logic MegaRAID driver", .proc_name = "megaraid", diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c b/drivers/scsi/megaraid/megaraid_sas_base.c index 3ceece988338..406a346cbc08 100644 --- a/drivers/scsi/megaraid/megaraid_sas_base.c +++ b/drivers/scsi/megaraid/megaraid_sas_base.c @@ -3505,7 +3505,7 @@ ATTRIBUTE_GROUPS(megaraid_host); /* * Scsi host template for megaraid_sas driver */ -static struct scsi_host_template megasas_template = { +static const struct scsi_host_template megasas_template = { .module = THIS_MODULE, .name = "Avago SAS based MegaRAID driver", From patchwork Wed Mar 22 19:54:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184599 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8883EC77B61 for ; Wed, 22 Mar 2023 19:59:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231382AbjCVT76 (ORCPT ); Wed, 22 Mar 2023 15:59:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231145AbjCVT73 (ORCPT ); Wed, 22 Mar 2023 15:59:29 -0400 Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE1407D8F for ; Wed, 22 Mar 2023 12:58:07 -0700 (PDT) Received: by mail-pl1-f180.google.com with SMTP id u5so20280800plq.7 for ; Wed, 22 Mar 2023 12:58:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515086; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dAdiI8QeHjoUkeBCYpg9C4zi1sFNt3WL7fHduN+tVF4=; b=RW3rJpANmqKAja7RRusPmZIOegtlo55qlRbYxEN/dPiMUZbbIS8yKzpnnYZPRbAPh2 CejbxjnO5YAg62wriTUf7B8dVFENK7Spqy78D+ddjogzpkcrTEZHgPl2aVEbsl5+ijuc 47pRlnwaV1cmfY0c1W9ROTDCy3cppCW5/ZJMrWzE9hwkvMovQ17/LubtQwHPfWbmRthI MADCgmU1R135oYu3Akyl6NzKEUFXsp/+95j6j4I7kj96B7QPe4XrxSk3iBthrxvYGMzr r929Ad80FRznU/c83m5ugU1/T6yVteHyrBKrhvQgQcZRxRLV5VmML6nOvWnn9rG66Jbs GFAA== X-Gm-Message-State: AAQBX9e/ioP65NQ2GDT3ChUqowsDFoq8E6cxYkUt9cy2zp3MSNvkQiv2 AxZFWhO+YITR4yJbrfQ7QgE= X-Google-Smtp-Source: AKy350aR0vyurkBIPL/OLZ0VTs4MglVs4nSYuKWD4nV6IOvkfgB4SD31UCBh8ft+kNbIybziozTh2g== X-Received: by 2002:a17:90b:d98:b0:23d:39e:6054 with SMTP id bg24-20020a17090b0d9800b0023d039e6054mr3237199pjb.5.1679515086316; Wed, 22 Mar 2023 12:58:06 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.58.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:58:05 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , "James E.J. Bottomley" Subject: [PATCH v3 52/80] scsi: mesh: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:54:47 -0700 Message-Id: <20230322195515.1267197-53-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche --- drivers/scsi/mesh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/mesh.c b/drivers/scsi/mesh.c index 84b541a57b7b..e276583c590c 100644 --- a/drivers/scsi/mesh.c +++ b/drivers/scsi/mesh.c @@ -1830,7 +1830,7 @@ static int mesh_shutdown(struct macio_dev *mdev) return 0; } -static struct scsi_host_template mesh_template = { +static const struct scsi_host_template mesh_template = { .proc_name = "mesh", .name = "MESH", .queuecommand = mesh_queue, From patchwork Wed Mar 22 19:54:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184600 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CA22EC6FD1F for ; Wed, 22 Mar 2023 20:00:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231346AbjCVUAT (ORCPT ); Wed, 22 Mar 2023 16:00:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231286AbjCVT7b (ORCPT ); Wed, 22 Mar 2023 15:59:31 -0400 Received: from mail-pj1-f52.google.com (mail-pj1-f52.google.com [209.85.216.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54DD99EF6 for ; Wed, 22 Mar 2023 12:58:09 -0700 (PDT) Received: by mail-pj1-f52.google.com with SMTP id fy10-20020a17090b020a00b0023b4bcf0727so20265509pjb.0 for ; Wed, 22 Mar 2023 12:58:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515087; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4kkeJzpxmqlphiL9GOyWXaal4wNiBQHmsKtZJrkE1yg=; b=raxL1a1ljfi5IBmPSGZzYWNoh9ueIT6pHbQzApKg8BpuiinT8/1IaQ1KY0qOOrBIw9 tS7oX4Q812HkSFTi/L0G63z/slAphOz4RH6bq7W8gyZ8k/nndXVtOG+npEGMCM1dNiVl TtfVh0lvQZ7ejlrMWy8ga8U4tR8KUY9dPBf2UUo4xZABCbGGb3Dih/75p7PgF0OfQ7Q4 9XZkQPvrST5ndJboaNp0VCKqnniAwfCG3KkYYzwjeBFYDARSMsND4pLPR9QrCp5GGwAA wUGffHf2qEEJmKn0tOtyFzpWLP6DuUk6qs3N1a4qMN629jb2GTjzkHcD7pbmyXiLUdxZ YuUw== X-Gm-Message-State: AO0yUKUeTojrE6jWUrd9DOzR+bwwDy3VycLaFqPmuq2dW+2D8wUxgnrS fVQJTvRRLFcIL+NPuqdZJ345jUzgVgcFPw== X-Google-Smtp-Source: AK7set/hgM5GYowzKHTIp7qpqESRcIhffELFf4g5E32fOfW3vUltpJTN5kbokOgY73AyO6+gG7axIQ== X-Received: by 2002:a17:90b:38c2:b0:23f:618a:6bed with SMTP id nn2-20020a17090b38c200b0023f618a6bedmr5335461pjb.47.1679515087623; Wed, 22 Mar 2023 12:58:07 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.58.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:58:07 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , Sathya Prakash Veerichetty , Kashyap Desai , Sumit Saxena , Sreekanth Reddy , "James E.J. Bottomley" Subject: [PATCH v3 53/80] scsi: mpi3mr: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:54:48 -0700 Message-Id: <20230322195515.1267197-54-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche --- drivers/scsi/mpi3mr/mpi3mr_os.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/mpi3mr/mpi3mr_os.c b/drivers/scsi/mpi3mr/mpi3mr_os.c index 39ebaa8a0fc8..5db412ad9fd8 100644 --- a/drivers/scsi/mpi3mr/mpi3mr_os.c +++ b/drivers/scsi/mpi3mr/mpi3mr_os.c @@ -4795,7 +4795,7 @@ static int mpi3mr_qcmd(struct Scsi_Host *shost, return retval; } -static struct scsi_host_template mpi3mr_driver_template = { +static const struct scsi_host_template mpi3mr_driver_template = { .module = THIS_MODULE, .name = "MPI3 Storage Controller", .proc_name = MPI3MR_DRIVER_NAME, From patchwork Wed Mar 22 19:54:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184601 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3F067C76196 for ; Wed, 22 Mar 2023 20:00:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231301AbjCVUAU (ORCPT ); Wed, 22 Mar 2023 16:00:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230128AbjCVT7d (ORCPT ); Wed, 22 Mar 2023 15:59:33 -0400 Received: from mail-pj1-f51.google.com (mail-pj1-f51.google.com [209.85.216.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C616146168 for ; Wed, 22 Mar 2023 12:58:11 -0700 (PDT) Received: by mail-pj1-f51.google.com with SMTP id j13so19507236pjd.1 for ; Wed, 22 Mar 2023 12:58:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515089; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/P/1tcizCKEHhKBtw/asQtJSTCjYYdz51F+CjW/a1Bc=; b=xPdQHuqmUfixAZCa6/ZqxwvtyQiQV/PSC9LIE/TpFVDvu1vZPAxMB/WTK/rB9nSiex oh43wHM9B7/Vc/NcmQMUwg7Xz85wiy3ooWuhGrEMtzBmjCar/DwoNOPrB64S2cGGWkWI X/SXEOWPei0/pBsRM+jBjTcevnfS7JHwS6Rya2IzfQhRLEZs36AoqEEf0FRwYk/QZo0/ GfeswUtr0oHfeqrARD2zpUTwSiuTf6rWX2K1+4AkT+59psqupb1T9ueeO/4byXm1TNmX 1hYnS7WdrXyqEsR1jsAmZI1ZHNvOBMP3dFQ7Elk1L7HySSxpZ7TcPpT8/x7ecdybKGyN C4HQ== X-Gm-Message-State: AO0yUKXeyiNsiNJ0p4SsB2OTA5vYC+wehQfgirbHYSY2OLfVYDp3sldi nJIwH6dvX/R0eiUfbb5Vc9E= X-Google-Smtp-Source: AK7set8Gj677XA7dh15nj6zAGG0KlN/JEPt95jgBCqvy0x/7dtJ/4u6XfVdvKJNj08XnMcgwetBncw== X-Received: by 2002:a17:90b:1e0a:b0:234:159:4003 with SMTP id pg10-20020a17090b1e0a00b0023401594003mr4404456pjb.25.1679515088891; Wed, 22 Mar 2023 12:58:08 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.58.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:58:08 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , Sathya Prakash , Sreekanth Reddy , Suganath Prabu Subramani , "James E.J. Bottomley" Subject: [PATCH v3 54/80] scsi: mpt3sas: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:54:49 -0700 Message-Id: <20230322195515.1267197-55-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche --- drivers/scsi/mpt3sas/mpt3sas_scsih.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/mpt3sas/mpt3sas_scsih.c b/drivers/scsi/mpt3sas/mpt3sas_scsih.c index e2f09833659f..492d1940d596 100644 --- a/drivers/scsi/mpt3sas/mpt3sas_scsih.c +++ b/drivers/scsi/mpt3sas/mpt3sas_scsih.c @@ -11925,7 +11925,7 @@ static void scsih_map_queues(struct Scsi_Host *shost) } /* shost template for SAS 2.0 HBA devices */ -static struct scsi_host_template mpt2sas_driver_template = { +static const struct scsi_host_template mpt2sas_driver_template = { .module = THIS_MODULE, .name = "Fusion MPT SAS Host", .proc_name = MPT2SAS_DRIVER_NAME, @@ -11963,7 +11963,7 @@ static struct raid_function_template mpt2sas_raid_functions = { }; /* shost template for SAS 3.0 HBA devices */ -static struct scsi_host_template mpt3sas_driver_template = { +static const struct scsi_host_template mpt3sas_driver_template = { .module = THIS_MODULE, .name = "Fusion MPT SAS Host", .proc_name = MPT3SAS_DRIVER_NAME, From patchwork Wed Mar 22 19:54:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184602 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CEAA4C6FD1F for ; Wed, 22 Mar 2023 20:00:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231394AbjCVUA1 (ORCPT ); Wed, 22 Mar 2023 16:00:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231319AbjCVT7i (ORCPT ); Wed, 22 Mar 2023 15:59:38 -0400 Received: from mail-pj1-f45.google.com (mail-pj1-f45.google.com [209.85.216.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3BC312F04 for ; Wed, 22 Mar 2023 12:58:12 -0700 (PDT) Received: by mail-pj1-f45.google.com with SMTP id a16so15160858pjs.4 for ; Wed, 22 Mar 2023 12:58:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515090; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=AnK8Yqpa8id/oOS0MLZlCpDLRfS4lc4w7yWCDfvnNtc=; b=l9kqm71KcakfY6963mBmUmGBHujTWCA1y0nC5Nde4pbRh2P9EjT8axe3NuN+95Pf3s tr9DwE0+kqwgbe/aCAi3Mal49GvDaZlXAbpssnCknl8erxG3WpuHQEVPRCz74A/nF6kF eijSUBIHiOskpK7hvkJQyBbTsmzv3qP9+bgiN7Gi5sVaUVB7GBQO70GeU6vJaDqxjzgy VxORpj+Bzr2ude/qowejHm4y92MbTizqTQDHD8UmDmPLt8v3FlPqT3pNNSVzoWb62WNg aQx1ak/4cc9qR/KjL4wldlCGNT1I4qF/2gsYCJHhKuuLcQPQGW6Fx4AViOis/lnK9z4i nyXA== X-Gm-Message-State: AO0yUKVx/z1bSuNSUrwAw+aruXb0zV/3cNv7/nKE6KODW6lVF6yDBhcv WUl8c9JU/keuj6h/SE5/ifk= X-Google-Smtp-Source: AK7set/M9cuVdBAlbt24Nz+2EYxmIygt9efcFwYgXd5iKVcBSZ308FkK/EbWtvNuUGYVUSLmsR42dQ== X-Received: by 2002:a17:90b:4b8e:b0:23c:ffd2:6502 with SMTP id lr14-20020a17090b4b8e00b0023cffd26502mr5415387pjb.12.1679515090257; Wed, 22 Mar 2023 12:58:10 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.58.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:58:09 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , "James E.J. Bottomley" Subject: [PATCH v3 55/80] scsi: mvme147: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:54:50 -0700 Message-Id: <20230322195515.1267197-56-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche --- drivers/scsi/mvme147.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/mvme147.c b/drivers/scsi/mvme147.c index 472fa043094f..98b99c0f5bc7 100644 --- a/drivers/scsi/mvme147.c +++ b/drivers/scsi/mvme147.c @@ -69,7 +69,7 @@ static void dma_stop(struct Scsi_Host *instance, struct scsi_cmnd *SCpnt, m147_pcc->dma_cntrl = 0; } -static struct scsi_host_template mvme147_host_template = { +static const struct scsi_host_template mvme147_host_template = { .module = THIS_MODULE, .proc_name = "MVME147", .name = "MVME147 built-in SCSI", From patchwork Wed Mar 22 19:54:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184605 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8E9F9C76196 for ; Wed, 22 Mar 2023 20:00:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231435AbjCVUAw (ORCPT ); Wed, 22 Mar 2023 16:00:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231365AbjCVT7z (ORCPT ); Wed, 22 Mar 2023 15:59:55 -0400 Received: from mail-pj1-f51.google.com (mail-pj1-f51.google.com [209.85.216.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9AF8E5A922 for ; Wed, 22 Mar 2023 12:58:21 -0700 (PDT) Received: by mail-pj1-f51.google.com with SMTP id j3-20020a17090adc8300b0023d09aea4a6so24645819pjv.5 for ; Wed, 22 Mar 2023 12:58:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515099; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zeBcHhBT8lTvtzrpIMuLtB00FAo06aPx5N7DZXVv5iM=; b=dbSnq+00nN7sSN7BTlN1Dh0PNsCmTSVJETSEnRGpBx5q4dXGtL5v/ebBTEO7jBwRPy 8piLGJb3BXRUgEpT0LOaY/ElPgNvetMb5BsWCYABFUshHN8YIhMoP7p/M7HbVMrHGGoK arDjdhtmeQS2r0d6h7TbesREoUum3Gem+MB/AY6vv0+gdOO8J26+rx8WNoID70vo8L7/ DyZvrRk1hYGVZl2RSJuAvchO74JI9dztMl41sY27iBbyRgAZ5TfHUYUZpvxwKPJQArAW U8bWfUdZeYPj/i6hKk9S/JnKpyKb/c7bZuIQuiUPoLCN/fB7h90UFyypdfkhg1B2LHzv VJUA== X-Gm-Message-State: AO0yUKVwW973kzThUtWftjMYMAVeblv08IuUMnihIlWArI3HYeHOxiGb JCJj28XXd8yCwRWukI/lbys= X-Google-Smtp-Source: AK7set/EdKb8gtD5iXIpz6Dvtxd7je51MELT1GmC86I2zifGH1JTaECKwOrextQJj9pvcZ0uTlNzug== X-Received: by 2002:a17:90b:4d8a:b0:23f:9fac:6b31 with SMTP id oj10-20020a17090b4d8a00b0023f9fac6b31mr4682090pjb.25.1679515099267; Wed, 22 Mar 2023 12:58:19 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.58.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:58:18 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , John Garry , "James E.J. Bottomley" , Alexey Galakhov , Hannes Reinecke Subject: [PATCH v3 56/80] scsi: mvsas: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:54:51 -0700 Message-Id: <20230322195515.1267197-57-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Reviewed-by: John Garry Signed-off-by: Bart Van Assche --- drivers/scsi/mvsas/mv_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/mvsas/mv_init.c b/drivers/scsi/mvsas/mv_init.c index cfe84473a515..49e2a5e7ce54 100644 --- a/drivers/scsi/mvsas/mv_init.c +++ b/drivers/scsi/mvsas/mv_init.c @@ -29,7 +29,7 @@ static const struct attribute_group *mvst_host_groups[]; #define SOC_SAS_NUM 2 -static struct scsi_host_template mvs_sht = { +static const struct scsi_host_template mvs_sht = { .module = THIS_MODULE, .name = DRV_NAME, .queuecommand = sas_queuecommand, From patchwork Wed Mar 22 19:54:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184603 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 67C1FC6FD1C for ; Wed, 22 Mar 2023 20:00:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231428AbjCVUAl (ORCPT ); Wed, 22 Mar 2023 16:00:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231339AbjCVT7v (ORCPT ); Wed, 22 Mar 2023 15:59:51 -0400 Received: from mail-pj1-f53.google.com (mail-pj1-f53.google.com [209.85.216.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E3F15A193 for ; Wed, 22 Mar 2023 12:58:22 -0700 (PDT) Received: by mail-pj1-f53.google.com with SMTP id mp3-20020a17090b190300b0023fcc8ce113so9686725pjb.4 for ; Wed, 22 Mar 2023 12:58:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515100; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Mt+SALTZpgtMKMj3j2WTDo1ienCuaV/TBXYIRZ/PdNk=; b=OlRlUdbvvkMyGgrkccJRMVUcxgZ1E70qEgFCl5eTmmzffQIuJDk2ONf/yL5OL4pJgk zVpJ9sN6qlEqw6gJ97vjuqk5s1pjbqoSAiZH4Te6tYyZOYXbQelf4ftv7Csr1Uchdtjw Xw/rpZ/oGJ95bNdiqxDb1Sg/YR8RKS4FyeLDB/jrDnPG/UHfqg4Yb2yEfjBnMZSCibiG 6IJmCQ7hibhz9h+VuLmNUHSFDpLJLm/XWurMmJAj2I6wLRDLa8T/zRUpnsf9F3qn6p0v n+VZjnA+KEEc9Z+H9KpoDfLh75EI6D7jj4RjRLO/8F0AxG2QaUp+kUuQus8h5yFP39ja AoOw== X-Gm-Message-State: AO0yUKVqBbiJnPqYDBxlsJRVKZwG259X+/p+0pW2iC+jdeA7zocCrDvC yXNZnyk7r5L8j89b94aBw1Y= X-Google-Smtp-Source: AK7set+5By458uBhDaGMdQXC2nABprwsbCjigDKOBI/A+nyD6pqWG1yIZpZkihuN2qNzYsub87OX5Q== X-Received: by 2002:a17:90a:1d1:b0:23b:2963:ec94 with SMTP id 17-20020a17090a01d100b0023b2963ec94mr5036975pjd.29.1679515100474; Wed, 22 Mar 2023 12:58:20 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.58.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:58:20 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , "James E.J. Bottomley" Subject: [PATCH v3 57/80] scsi: mvumi: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:54:52 -0700 Message-Id: <20230322195515.1267197-58-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche --- drivers/scsi/mvumi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/mvumi.c b/drivers/scsi/mvumi.c index 60c65586f30e..73aa7059b556 100644 --- a/drivers/scsi/mvumi.c +++ b/drivers/scsi/mvumi.c @@ -2168,7 +2168,7 @@ mvumi_bios_param(struct scsi_device *sdev, struct block_device *bdev, return 0; } -static struct scsi_host_template mvumi_template = { +static const struct scsi_host_template mvumi_template = { .module = THIS_MODULE, .name = "Marvell Storage Controller", From patchwork Wed Mar 22 19:54:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184604 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 70D5AC6FD1F for ; Wed, 22 Mar 2023 20:00:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231431AbjCVUAq (ORCPT ); Wed, 22 Mar 2023 16:00:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231364AbjCVT7z (ORCPT ); Wed, 22 Mar 2023 15:59:55 -0400 Received: from mail-pj1-f46.google.com (mail-pj1-f46.google.com [209.85.216.46]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB61A5BDA1 for ; Wed, 22 Mar 2023 12:58:22 -0700 (PDT) Received: by mail-pj1-f46.google.com with SMTP id h12-20020a17090aea8c00b0023d1311fab3so20258363pjz.1 for ; Wed, 22 Mar 2023 12:58:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515102; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gtXkLpjqkzEtUpPCfZWQmuI25j02ukzVqxS1meSBiZY=; b=vLz2sRUHCPJRyLpDmk8YwYfKYtTbot8Epc5H93v0cAcP0Jyb/ks8xND5M+kexwSNPr l2l1j9ipw9hJsmNMkcWN514Eq7SKY481SRy8yIk7lfwr7bcKi4S9HV7wIwnzmsXvaIyC 1mqIrWLgdTgD2c+yyalNEf9vqIjr1XffpsObSqclMxrUIytuX7fIzgDmvfOvAW4bK8FC gGc2ltnGoQqHTaK8ex0FK9RRgwmJDIsJYX14ug2YFhVEeNAXjVGc0mbTd9QZpG9TQjiR 8IGyS/JLZve6URK+Bwkmp+VlesvehHVcPXvtdrylC5TYJCa5GfrSn/TEwy7ceXSUbOjv KGWQ== X-Gm-Message-State: AO0yUKXfy1wRlbQdFi3sKToCgQhYZKwfP359a8KApC2pOdOvuohmZ7ZM MK0kb70XO3YbX3jckxNqdRI= X-Google-Smtp-Source: AK7set+Wj4EhiXoaFmM7xzLusQjak5Fkn3XtQqWjOhKRzO8ajUi1U08HzkDXeUJ8OCntijMPVH70WA== X-Received: by 2002:a17:90b:1e0f:b0:23f:a810:c077 with SMTP id pg15-20020a17090b1e0f00b0023fa810c077mr4592510pjb.40.1679515101777; Wed, 22 Mar 2023 12:58:21 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.58.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:58:21 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , Hannes Reinecke , "James E.J. Bottomley" Subject: [PATCH v3 58/80] scsi: myrb: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:54:53 -0700 Message-Id: <20230322195515.1267197-59-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche --- drivers/scsi/myrb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/myrb.c b/drivers/scsi/myrb.c index e885c1dbf61f..ca2e932dd9b7 100644 --- a/drivers/scsi/myrb.c +++ b/drivers/scsi/myrb.c @@ -2203,7 +2203,7 @@ static struct attribute *myrb_shost_attrs[] = { ATTRIBUTE_GROUPS(myrb_shost); -static struct scsi_host_template myrb_template = { +static const struct scsi_host_template myrb_template = { .module = THIS_MODULE, .name = "DAC960", .proc_name = "myrb", From patchwork Wed Mar 22 19:54:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184606 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C1DBBC7619A for ; Wed, 22 Mar 2023 20:00:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231444AbjCVUAz (ORCPT ); Wed, 22 Mar 2023 16:00:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230075AbjCVT74 (ORCPT ); Wed, 22 Mar 2023 15:59:56 -0400 Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D66525CED1 for ; Wed, 22 Mar 2023 12:58:23 -0700 (PDT) Received: by mail-pl1-f175.google.com with SMTP id o2so12888279plg.4 for ; Wed, 22 Mar 2023 12:58:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515103; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rGld+nXB8xoLCjPdJf78FkMSomKl6XlXAp76vIAuqrw=; b=k5Ldz/3bIKStxR50ImRpFDiFdGuTtDaoaD0GwWpfBtChF4Ysc4iYD/GPvtK2h/lQbC 210CdGe31alvjp7qaRFsYWdof+RwXgdOYRi8xWnL/ncrK/ab09rtNI5oAJpurW0utMf/ ncQSW6uUJhCe0sVSoK4kUJLdIKKbmtltBgiMcRcPT/8JSES6nNwvwe81u+IT5+yqj3+v bJfF3L4JAPZ+h6f0UpHRuY3IGG4AQmysgcbabq7TvrMgCb6Xak2Zj9CuC9Po15IFctof QqhNEqYtAZaFV9b+avwxit8FxQvC5RdfhX9TVWAOcerwfrV0CCAFsBV8hOlDD0YnJhJ0 Lbqg== X-Gm-Message-State: AO0yUKUdzZxjQjGeABdR3fc0v1yIRJjHU03pzn1viKAg45XzK4rJitG9 zy0PX74N5Okw1zPmF1CJYkk= X-Google-Smtp-Source: AK7set9VkSHezmWhOmxNdN7BtRvVLB48Ll+MtGW3SXDZj784GbOkhLBmG6KeFm6MqfgyB9yDtnqa9Q== X-Received: by 2002:a17:90b:350f:b0:23b:bf03:397e with SMTP id ls15-20020a17090b350f00b0023bbf03397emr5199384pjb.24.1679515103070; Wed, 22 Mar 2023 12:58:23 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.58.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:58:22 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , Hannes Reinecke , "James E.J. Bottomley" Subject: [PATCH v3 59/80] scsi: myrs: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:54:54 -0700 Message-Id: <20230322195515.1267197-60-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche --- drivers/scsi/myrs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/myrs.c b/drivers/scsi/myrs.c index 7eb8c39da366..a1eec65a9713 100644 --- a/drivers/scsi/myrs.c +++ b/drivers/scsi/myrs.c @@ -1915,7 +1915,7 @@ static void myrs_slave_destroy(struct scsi_device *sdev) kfree(sdev->hostdata); } -static struct scsi_host_template myrs_template = { +static const struct scsi_host_template myrs_template = { .module = THIS_MODULE, .name = "DAC960", .proc_name = "myrs", From patchwork Wed Mar 22 19:54:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184607 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 99067C6FD1F for ; Wed, 22 Mar 2023 20:01:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231153AbjCVUBI (ORCPT ); Wed, 22 Mar 2023 16:01:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230472AbjCVUAR (ORCPT ); Wed, 22 Mar 2023 16:00:17 -0400 Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80E395BC85 for ; Wed, 22 Mar 2023 12:58:26 -0700 (PDT) Received: by mail-pl1-f182.google.com with SMTP id le6so20268465plb.12 for ; Wed, 22 Mar 2023 12:58:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515104; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=D8ne1LFtZC0aI46uW+Rpyylv80/ucvjDGf+JX18Z6oo=; b=MSDCR5iPyWAu6oQE9E5MiT7+wpFPBL6SvHDr4IqkFxapefQz+9/EbBhZG5hRzdh1/Q 0y78VG+QKYXU5fXJn8qX4pGiQxDgLaczCk9kgPHpCuOJKZqgCPfZNV4Bq+0PE41VJdIS WZSxmH7a+ARGZvC+jnRg+H4AWswIS8oXRUk1Qw2hekeDNCXmUQwgJ0Iy7859KJF9HIrK KeTAJ+MczomLcH3DROt1TI0W3WqxB4jNVWdHG8xAX+8wIIlq49bSEqTSkzBE2UrdJiJY jG3cgb5/fK3zwGs/4TN4JudKODCPis9SDl/j0wDhR3q8elxyumNdr6CaZT4ZvRzHIT5J u1BQ== X-Gm-Message-State: AO0yUKWqIMVu0+Tlczz+nDjmolIBNJbFd8+/8kWFgz3w0Jy5y29yaZAU 9OmSx82tOQFN3RT5qP6+FO8= X-Google-Smtp-Source: AK7set+E07fGre84XL4RxZEBaqqqA8o1fbKPXZBrjNfnaQY3C423gBsVNwgxOFKKIXLiGxyxfYCI9Q== X-Received: by 2002:a17:90a:3:b0:237:b64c:6bb3 with SMTP id 3-20020a17090a000300b00237b64c6bb3mr5357259pja.11.1679515104352; Wed, 22 Mar 2023 12:58:24 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.58.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:58:23 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , GOTO Masanori , "James E.J. Bottomley" Subject: [PATCH v3 60/80] scsi: nsp32: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:54:55 -0700 Message-Id: <20230322195515.1267197-61-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche --- drivers/scsi/nsp32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/nsp32.c b/drivers/scsi/nsp32.c index 75bb0028ed74..b7987019686e 100644 --- a/drivers/scsi/nsp32.c +++ b/drivers/scsi/nsp32.c @@ -259,7 +259,7 @@ static void nsp32_dmessage(const char *, int, int, char *, ...); /* * max_sectors is currently limited up to 128. */ -static struct scsi_host_template nsp32_template = { +static const struct scsi_host_template nsp32_template = { .proc_name = "nsp32", .name = "Workbit NinjaSCSI-32Bi/UDE", .show_info = nsp32_show_info, From patchwork Wed Mar 22 19:54:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184608 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CA645C6FD1F for ; Wed, 22 Mar 2023 20:01:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229945AbjCVUBa (ORCPT ); Wed, 22 Mar 2023 16:01:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231424AbjCVUAj (ORCPT ); Wed, 22 Mar 2023 16:00:39 -0400 Received: from mail-pj1-f45.google.com (mail-pj1-f45.google.com [209.85.216.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E281F6B5D8 for ; Wed, 22 Mar 2023 12:58:39 -0700 (PDT) Received: by mail-pj1-f45.google.com with SMTP id o6-20020a17090a9f8600b0023f32869993so20728535pjp.1 for ; Wed, 22 Mar 2023 12:58:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515113; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=uNBZEXnuNLSbR6kjSK5gewVoRiq0PJ3JQYeI9QvkyZY=; b=75gEtU8vIm8m3X6ByGDcHyHJx0nPrucJO0U9t2rzTJpCpupKSp9K8I8HkutF265vr6 QJ3i6/dsEALBl0XJsFL77UQ/jQk5r++2ro0ZN6pcmiXw1zMO776CuKem3/blcoArYMDI 9EO0pZ/xu3XdxR4CUYVpBiQi1qjcqo+pS7weGOhAPg0a0ULE8Mubjeae3FdT6h+Fwhb3 DQzI0zc0d2CCToRKFXqHXtzQ9NVxsl/f69VwJE1bgLkXzv7ty//9PFjuqcWh4/I+pv6P Yk5Pn+Y2L9DV3QPsq5nQsMbny+YjyiOskqHDov6Pojq5p/AJLigplg+ie+vepo5zvODk gPdg== X-Gm-Message-State: AO0yUKVYHQ2jiFsz+bWtAaA3RpNYvqjGCWqtqy/dLT/XZ7umgtv4dGUe pRv1+3EqQFIMvjIWg10aDNQ= X-Google-Smtp-Source: AK7set/hDln/rNo5kvNiy7QRcEnqGakF9EroMVlzgFOciDTHexYojJoRx2fnFCIhY9atWiWXgeOgYQ== X-Received: by 2002:a17:90b:1652:b0:23b:32e5:9036 with SMTP id il18-20020a17090b165200b0023b32e59036mr4668928pjb.17.1679515113227; Wed, 22 Mar 2023 12:58:33 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.58.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:58:32 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , "James E.J. Bottomley" , Finn Thain Subject: [PATCH v3 61/80] scsi: pcmcia-sym53c500: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:54:56 -0700 Message-Id: <20230322195515.1267197-62-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche --- drivers/scsi/pcmcia/sym53c500_cs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/pcmcia/sym53c500_cs.c b/drivers/scsi/pcmcia/sym53c500_cs.c index 5d7dfefd6f6c..278c78d066c4 100644 --- a/drivers/scsi/pcmcia/sym53c500_cs.c +++ b/drivers/scsi/pcmcia/sym53c500_cs.c @@ -668,7 +668,7 @@ ATTRIBUTE_GROUPS(SYM53C500_shost); /* * scsi_host_template initializer */ -static struct scsi_host_template sym53c500_driver_template = { +static const struct scsi_host_template sym53c500_driver_template = { .module = THIS_MODULE, .name = "SYM53C500", .info = SYM53C500_info, @@ -702,7 +702,7 @@ SYM53C500_config(struct pcmcia_device *link) int ret; int irq_level, port_base; struct Scsi_Host *host; - struct scsi_host_template *tpnt = &sym53c500_driver_template; + const struct scsi_host_template *tpnt = &sym53c500_driver_template; struct sym53c500_data *data; dev_dbg(&link->dev, "SYM53C500_config\n"); From patchwork Wed Mar 22 19:54:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184609 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7E03BC6FD1C for ; Wed, 22 Mar 2023 20:01:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231360AbjCVUBv (ORCPT ); Wed, 22 Mar 2023 16:01:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231328AbjCVUAk (ORCPT ); Wed, 22 Mar 2023 16:00:40 -0400 Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF8756B5E5 for ; Wed, 22 Mar 2023 12:58:42 -0700 (PDT) Received: by mail-pj1-f43.google.com with SMTP id q102so5013278pjq.3 for ; Wed, 22 Mar 2023 12:58:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515115; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=e/SkWJ5bkmeoEZFVjcXc32u2QqElt2tTbm6F8itpK0I=; b=ZbwyHTnA7M0gbm6UJ/p9tJw1VRXWcAOstNNBwOG2CvE8/Q0gPHQ6OQ0SrOgHfB6lIG CD4v4cz/xT0nRe3jHlyf9UTtlYxCNxId7rrDEFEaW82K61+94SX8kULfkIJ+Q7jzjc2p xF0xD/Zcnp5W/pp8S0H5/FvSYi42rm+b8I4mqyP44L+DdhaWM1GkuzkSrsLCzZqd7ImN 7CXWnhbVZws6nNf3ir+eNwZC8gjbU1e5+a0wsrsYtmR53YJVDSMP+5xHxYEn12XX+YZQ U12KT8f2SgqHZnlsIessyWI2udcMRsKp6YEvGtTS71Axz0+ymaaCPJ9ZxuBgNHFXw6sx /SXg== X-Gm-Message-State: AO0yUKX8Tgf1R+JptOE+sep9nFJbWM4s2EllDlvdOm1V/0Qdqbn+n8wj LbV8ZpwokPH7wVFKIf06hSg= X-Google-Smtp-Source: AK7set9kKHO8d87W20FX5Ir1I71BZHE5neykEho6xUR5nNIMmzUyOVn1XmNs0WRSyYydSBq6HRjtKA== X-Received: by 2002:a17:90b:3807:b0:23a:6be8:9446 with SMTP id mq7-20020a17090b380700b0023a6be89446mr4635029pjb.48.1679515114592; Wed, 22 Mar 2023 12:58:34 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.58.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:58:34 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , Jack Wang , Jack Wang , "James E.J. Bottomley" Subject: [PATCH v3 62/80] scsi: pcmcia-pm8001: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:54:57 -0700 Message-Id: <20230322195515.1267197-63-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Acked-by: Jack Wang Signed-off-by: Bart Van Assche --- drivers/scsi/pm8001/pm8001_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/pm8001/pm8001_init.c b/drivers/scsi/pm8001/pm8001_init.c index 7e589fe3e010..8b9490011e36 100644 --- a/drivers/scsi/pm8001/pm8001_init.c +++ b/drivers/scsi/pm8001/pm8001_init.c @@ -96,7 +96,7 @@ static void pm8001_map_queues(struct Scsi_Host *shost) /* * The main structure which LLDD must register for scsi core. */ -static struct scsi_host_template pm8001_sht = { +static const struct scsi_host_template pm8001_sht = { .module = THIS_MODULE, .name = DRV_NAME, .proc_name = DRV_NAME, From patchwork Wed Mar 22 19:54:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184610 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 976A8C76196 for ; Wed, 22 Mar 2023 20:01:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231277AbjCVUB4 (ORCPT ); Wed, 22 Mar 2023 16:01:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231452AbjCVUA6 (ORCPT ); Wed, 22 Mar 2023 16:00:58 -0400 Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F51B6B949 for ; Wed, 22 Mar 2023 12:58:46 -0700 (PDT) Received: by mail-pl1-f170.google.com with SMTP id c18so20279463ple.11 for ; Wed, 22 Mar 2023 12:58:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515116; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=C5gBIhC8WBeIKUevKHd/72SKoMXkdl9EMvIEJ27ZMNk=; b=hC96xqolTcxo9u0Uw1vnUZbfDh6tnqTQ2hDWRCBs0j9QOI2ykoh0XyFTqKJ8jhUwVd hqBFYKLRzTMM86PZljL4znsbv16fRDopg5lscK7eT+gVtWRBgjvGqGbO/9OuWAYWC3uK 7jLgiPdYxLJPv6q+Xrjp5lJ3aoScOi6fMK47CQpwq+9DQJirTHTXYjR4oFNP1n2Kee6b GKh93oBR+wjdf+4CStMbNq1AN0MKvi2M49zLHlNm+XIlGrBZpA0FJf22sU7xUqQ8c+nj Btt+OD+TfpV9SFtnbEk864DoZ9ZEbMrNKGbdF5D+0O9yA08cIUEQjBAhRmHQWt2gWTJk 5jtA== X-Gm-Message-State: AO0yUKUWp+OeUIjDZN5WKuKZb7dBSxKTCH7T3ntEA6UXMMPsj7k4adhf EMuxMm0d20vjx2PCb/X2Pas= X-Google-Smtp-Source: AK7set+7i3usKiARpHZam8dYR6slLtZ4RWIqdJ6uYHdNXHurapyPMPlbkxX0vcGk4fbHaaBUrIHVSw== X-Received: by 2002:a17:90a:51c5:b0:23a:87cf:de93 with SMTP id u63-20020a17090a51c500b0023a87cfde93mr5165477pjh.15.1679515115747; Wed, 22 Mar 2023 12:58:35 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.58.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:58:35 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , "James E.J. Bottomley" Subject: [PATCH v3 63/80] scsi: pmcraid: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:54:58 -0700 Message-Id: <20230322195515.1267197-64-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche --- drivers/scsi/pmcraid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/pmcraid.c b/drivers/scsi/pmcraid.c index 836ddc476764..23c5230dbed4 100644 --- a/drivers/scsi/pmcraid.c +++ b/drivers/scsi/pmcraid.c @@ -3611,7 +3611,7 @@ static struct attribute *pmcraid_host_attrs[] = { ATTRIBUTE_GROUPS(pmcraid_host); /* host template structure for pmcraid driver */ -static struct scsi_host_template pmcraid_host_template = { +static const struct scsi_host_template pmcraid_host_template = { .module = THIS_MODULE, .name = PMCRAID_DRIVER_NAME, .queuecommand = pmcraid_queuecommand, From patchwork Wed Mar 22 19:54:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184611 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 63393C6FD1C for ; Wed, 22 Mar 2023 20:02:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231511AbjCVUCC (ORCPT ); Wed, 22 Mar 2023 16:02:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231355AbjCVUBP (ORCPT ); Wed, 22 Mar 2023 16:01:15 -0400 Received: from mail-pj1-f44.google.com (mail-pj1-f44.google.com [209.85.216.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 707026B95B for ; Wed, 22 Mar 2023 12:58:50 -0700 (PDT) Received: by mail-pj1-f44.google.com with SMTP id l7so2457253pjg.5 for ; Wed, 22 Mar 2023 12:58:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515117; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/bKU77JUcmdCiHf19hl22iuzy8frSUKxUFEkHosyM1I=; b=iWbEIB9ooZwZgAH+1u+DARHeWBpic4iUS+3lbhji51auVv3c9fkS9VEHcsN2XUQPp/ DfhF2R2J/nNrVV9c0O+1eGpIz1dEmvZPVXqf7IBs+HwRRGCo5qQ0K9OqbF077O04ifM8 YSYRTZgDZTyKshipKv5WrohXJB/PDmyORvCT2HlWnSlFYdOrgz/4p+YsxlNVE7sWC3kQ HbG2YKaEMM55+BzJayfpNPanno7XP3SYAT7TFt0b74SdHw8HrIpwKmkWKgqYez7E3x+P ttzxM9YJLfLRMfXwGcOhZbTPSeSf3oV2BQ0wOSXdh4VHsaIMoOyBI5XOunfwVWwPzp9/ w+CA== X-Gm-Message-State: AO0yUKVUVjPUi1JtfNaMDIffr7OgsOR5Ak/EE/ImbpBloH1+r0Ejr4eB rUJuXiGyhaOwpfUOCtcv/ow= X-Google-Smtp-Source: AK7set80T2HHX2i04aAz4NZeD41ADHaoAMNEe/r8xjYrpb67pdBk/661PVkQC+DK7GurETctTytOqA== X-Received: by 2002:a17:90a:bc85:b0:23f:d7ea:6212 with SMTP id x5-20020a17090abc8500b0023fd7ea6212mr4269644pjr.38.1679515116871; Wed, 22 Mar 2023 12:58:36 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.58.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:58:36 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , "James E.J. Bottomley" Subject: [PATCH v3 64/80] scsi: ppa: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:54:59 -0700 Message-Id: <20230322195515.1267197-65-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche --- drivers/scsi/ppa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/ppa.c b/drivers/scsi/ppa.c index c6c1bc608224..909c49541984 100644 --- a/drivers/scsi/ppa.c +++ b/drivers/scsi/ppa.c @@ -972,7 +972,7 @@ static int ppa_adjust_queue(struct scsi_device *device) return 0; } -static struct scsi_host_template ppa_template = { +static const struct scsi_host_template ppa_template = { .module = THIS_MODULE, .proc_name = "ppa", .show_info = ppa_show_info, From patchwork Wed Mar 22 19:55:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184613 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 12577C761AF for ; Wed, 22 Mar 2023 20:02:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231487AbjCVUCM (ORCPT ); Wed, 22 Mar 2023 16:02:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231403AbjCVUBS (ORCPT ); Wed, 22 Mar 2023 16:01:18 -0400 Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9F826B94A for ; Wed, 22 Mar 2023 12:58:53 -0700 (PDT) Received: by mail-pl1-f176.google.com with SMTP id c18so20279564ple.11 for ; Wed, 22 Mar 2023 12:58:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515118; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fr/miHelv9rcwdGzbyi+5duwKdoJsOx8lc0YFXj33kk=; b=Y8GjT7j4t0aAOQhWuNeI7hBo5dDV4Pf+vzUCYP66tziUc3YBmjwm3w2m2revn2TPBg SVPTRZuYjZa34leSZKSHWmOG+UV3mjzURoygSzNVdQ0ymBElokZGolI6ON/h/fWDpKZk wPr0u0d3i208w6mwRc01s5qIEC145v12DGUmkzXtwH1EZendEe6edTwf0JdolMxwbMfo lrXARkI/Ley+pl//RuLrUdZSrinOZQxoBBC+bF8O0lxCn5B2wDBzo/aIVs1rSSAidbIF 25BBQX6286Tb1lJtnGjFJE/lanZh9NkIeV0VBuXBpzb8qMirVHK5ss2+AYAlHubO5y9v InlA== X-Gm-Message-State: AO0yUKVIitY5EFPN2mOHXoLDx0G6VBCSKq8krJ2rjMtfDK4MgHexlfMv X08GgbZKJNGYjlUWuiAgtK8= X-Google-Smtp-Source: AK7set+7WcN8mxSRnIDUk04zLvfHVEqvvyWIdIxeCHr32NS411omFI/FvR8NyG+7jXR/vEI5eZ/5aQ== X-Received: by 2002:a17:90b:3850:b0:23b:3699:b8a9 with SMTP id nl16-20020a17090b385000b0023b3699b8a9mr4734526pjb.17.1679515118267; Wed, 22 Mar 2023 12:58:38 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.58.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:58:37 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , Geoff Levand , "James E.J. Bottomley" , Michael Ellerman Subject: [PATCH v3 65/80] scsi: ps3rom: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:55:00 -0700 Message-Id: <20230322195515.1267197-66-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Tested-by: Geoff Levand Signed-off-by: Bart Van Assche --- drivers/scsi/ps3rom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/ps3rom.c b/drivers/scsi/ps3rom.c index 2b80cab70333..90495a832f34 100644 --- a/drivers/scsi/ps3rom.c +++ b/drivers/scsi/ps3rom.c @@ -323,7 +323,7 @@ static irqreturn_t ps3rom_interrupt(int irq, void *data) return IRQ_HANDLED; } -static struct scsi_host_template ps3rom_host_template = { +static const struct scsi_host_template ps3rom_host_template = { .name = DEVICE_NAME, .slave_configure = ps3rom_slave_configure, .queuecommand = ps3rom_queuecommand, From patchwork Wed Mar 22 19:55:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184612 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A68EDC6FD1F for ; Wed, 22 Mar 2023 20:02:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231201AbjCVUCO (ORCPT ); Wed, 22 Mar 2023 16:02:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231173AbjCVUB1 (ORCPT ); Wed, 22 Mar 2023 16:01:27 -0400 Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A7F66B31E for ; Wed, 22 Mar 2023 12:58:55 -0700 (PDT) Received: by mail-pl1-f172.google.com with SMTP id ix20so20302035plb.3 for ; Wed, 22 Mar 2023 12:58:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515119; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xct695NTdKunJwZpBlsAMpxZPmRVUZn+AcEa7DsrRUQ=; b=hJFTkgidnLMKFlvRTwHvHDI//PXLJrmSDB773zy8pwocL64neP7QH8Y9jYLDoExIJA QtTnIkCVD/7qnmb34enMJhD5LMcWFfxJuVVVxWyWnmpIBKqbvREIggukGKLizJS9aFvJ 1CdZ/af/ZsFxOoa+Bg4BhC1xtkjvRGVnO+jbROVjg5Xw7irRDMkLDcQCpzvQ8Xu5AtDT /ArUEO3JYHpAwCbPtaFCFBAEBk49SAmplW8r35C0AB1HVNRj3Ai+xPf8dUHALrUpEKGH dnYDVHP10jC0mSP+7K50AnCNkxqzfwuHaofzCUAQch+JShSnSPsrW0iM1oWr4Hff8lNA VJNA== X-Gm-Message-State: AO0yUKU2TAKul/lGickmgrxR8Ezxg06SYEsJQL7cMXC0muvCk1n1YCtk xc7jIEL3KCFX8i0ZYBvJu2U= X-Google-Smtp-Source: AK7set/wiFQZdBUvujG4YTJD64YFezGsAO5Shbwt0m+LlrJwosdmebai6gUArpKIsu8NG5jI+Mu8sg== X-Received: by 2002:a17:90b:4d8f:b0:23d:3a3f:950b with SMTP id oj15-20020a17090b4d8f00b0023d3a3f950bmr5310356pjb.22.1679515119400; Wed, 22 Mar 2023 12:58:39 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.58.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:58:39 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , "James E.J. Bottomley" Subject: [PATCH v3 66/80] scsi: qla1280: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:55:01 -0700 Message-Id: <20230322195515.1267197-67-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche --- drivers/scsi/qla1280.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/qla1280.c b/drivers/scsi/qla1280.c index 1e7f4d138e06..6e5e89aaa283 100644 --- a/drivers/scsi/qla1280.c +++ b/drivers/scsi/qla1280.c @@ -4115,7 +4115,7 @@ qla1280_get_token(char *str) } -static struct scsi_host_template qla1280_driver_template = { +static const struct scsi_host_template qla1280_driver_template = { .module = THIS_MODULE, .proc_name = "qla1280", .name = "Qlogic ISP 1280/12160", From patchwork Wed Mar 22 19:55:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184614 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E8B1BC6FD1C for ; Wed, 22 Mar 2023 20:02:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230494AbjCVUCX (ORCPT ); Wed, 22 Mar 2023 16:02:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231495AbjCVUBu (ORCPT ); Wed, 22 Mar 2023 16:01:50 -0400 Received: from mail-pj1-f54.google.com (mail-pj1-f54.google.com [209.85.216.54]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 777D36BC02 for ; Wed, 22 Mar 2023 12:58:56 -0700 (PDT) Received: by mail-pj1-f54.google.com with SMTP id f6-20020a17090ac28600b0023b9bf9eb63so20230380pjt.5 for ; Wed, 22 Mar 2023 12:58:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515121; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=GFtVFboVcSjfPqmwHcJZEXr1SNf/HwV0uYa9XL6rvBg=; b=8EvdPr4y6vKQakz8GzkaxnSztAtAm//9bIG7tG6jzOYxtQcVVVJgona0KZOANtQHPG ldVbhZ8VztRPBPYq0bxiMmkon9VVg3to0S709wYtiEoxa0L93jCnv/2t8yhQYDjDFwOn STqT+YaGL6muRYzcx33FI5bDFvowi8aQVbCS/mvMjRkaxoYqVqqvW2RaTss9cjwjfXPB Gig90KIfijjKgMcF5vCLnR+jJcYBAn8TM7iANbDfnfw0dri3fFauK09wr8Ed6uhGWzXv 59uznS4fZzccS4p05qmxUOMQMD8uAJ9D90pP8zbMfVbvhiTBYtbVjEF0l5YKJ5NEY5dt m4DQ== X-Gm-Message-State: AO0yUKWmHAfD+13Wh0y2F2uv2BQ5HiZUP+vHpYsC2fg/5rkPINIuswsZ 5nfZlbL9Eh8kwT5swh7p2Yi9o0YHCtah0Q== X-Google-Smtp-Source: AK7set++xJB+N2RtegeFsOVno5qMJifUIgJjNi4HYnNfSsCXmDv5pfQqnvKDHBBk4z6i+/ZfJFg0aA== X-Received: by 2002:a17:90b:164d:b0:23f:9fac:6b35 with SMTP id il13-20020a17090b164d00b0023f9fac6b35mr4720408pjb.39.1679515120746; Wed, 22 Mar 2023 12:58:40 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.58.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:58:40 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , Nilesh Javali , GR-QLogic-Storage-Upstream@marvell.com, "James E.J. Bottomley" Subject: [PATCH v3 67/80] scsi: qla2xxx: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:55:02 -0700 Message-Id: <20230322195515.1267197-68-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche --- drivers/scsi/qla2xxx/qla_gbl.h | 2 +- drivers/scsi/qla2xxx/qla_mid.c | 2 +- drivers/scsi/qla2xxx/qla_os.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_gbl.h b/drivers/scsi/qla2xxx/qla_gbl.h index 9142df876c73..7bc2f634bab9 100644 --- a/drivers/scsi/qla2xxx/qla_gbl.h +++ b/drivers/scsi/qla2xxx/qla_gbl.h @@ -213,7 +213,7 @@ extern void qla2x00_free_exchoffld_buffer(struct qla_hw_data *); extern int qla81xx_restart_mpi_firmware(scsi_qla_host_t *); -extern struct scsi_qla_host *qla2x00_create_host(struct scsi_host_template *, +extern struct scsi_qla_host *qla2x00_create_host(const struct scsi_host_template *, struct qla_hw_data *); extern void qla2x00_free_host(struct scsi_qla_host *); extern void qla2x00_relogin(struct scsi_qla_host *); diff --git a/drivers/scsi/qla2xxx/qla_mid.c b/drivers/scsi/qla2xxx/qla_mid.c index 78661b658dcd..b67416951a5f 100644 --- a/drivers/scsi/qla2xxx/qla_mid.c +++ b/drivers/scsi/qla2xxx/qla_mid.c @@ -496,7 +496,7 @@ qla24xx_create_vhost(struct fc_vport *fc_vport) scsi_qla_host_t *base_vha = shost_priv(fc_vport->shost); struct qla_hw_data *ha = base_vha->hw; scsi_qla_host_t *vha; - struct scsi_host_template *sht = &qla2xxx_driver_template; + const struct scsi_host_template *sht = &qla2xxx_driver_template; struct Scsi_Host *host; vha = qla2x00_create_host(sht, ha); diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c index a6c5e0d8641d..27f3e99b7818 100644 --- a/drivers/scsi/qla2xxx/qla_os.c +++ b/drivers/scsi/qla2xxx/qla_os.c @@ -4999,8 +4999,8 @@ qla2x00_mem_free(struct qla_hw_data *ha) ha->vp_map = NULL; } -struct scsi_qla_host *qla2x00_create_host(struct scsi_host_template *sht, - struct qla_hw_data *ha) +struct scsi_qla_host *qla2x00_create_host(const struct scsi_host_template *sht, + struct qla_hw_data *ha) { struct Scsi_Host *host; struct scsi_qla_host *vha = NULL; From patchwork Wed Mar 22 19:55:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184615 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 302ADC6FD1F for ; Wed, 22 Mar 2023 20:02:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231433AbjCVUCY (ORCPT ); Wed, 22 Mar 2023 16:02:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231322AbjCVUBu (ORCPT ); Wed, 22 Mar 2023 16:01:50 -0400 Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5BC4D6B970 for ; Wed, 22 Mar 2023 12:58:57 -0700 (PDT) Received: by mail-pl1-f177.google.com with SMTP id w4so12218960plg.9 for ; Wed, 22 Mar 2023 12:58:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515122; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Z98/9n8VZg3wxBNz3Lr/vj7ZAQifDxFL83R6BG2/4ng=; b=8PipaPb79ds1c0PQT9QmHXHPvogiNw6LB0AvJnvMPNVz+pot8EKUL5gYn4xtWOxxLx BjURFPFn1j5vWOfO8IvlPuHne1XRMVwGIDKemNbBLFy89DaJr2v9wHO7oQDtnqzpVyt9 dr2Jk6vtLi2ani3iujr4RrFOrwIvoPnzjn7XtRN/4hrMSAjEbli8xpThqOCs0jyKbilY GxTqGbqqdA8Iyfz00BVOXC0ZOkFuvax7nc2pacd2r8eFAz4nDXAPfgCi1hh7Bmu0nq39 5we0i4yUx4jgW4jU2QdnH0ovOwpmDEjNx7oJbZPWSrYy5+nReBMhwvVdgE3hzEwgIbHM MTJw== X-Gm-Message-State: AO0yUKX8smyASUkFICurRnJdCNYdnqfEmKg178dk7Y5WEm++cQaC0TPt aBH173yfTf3qlfW1v+AUPeoe+u7TVl8eqw== X-Google-Smtp-Source: AK7set+iM1kzjoid6RhK0aLfXY75A9d7jhxpMRcpWvXelH13S7hqK2su6u8jU9XkZ+tWEr6ynvt2Zg== X-Received: by 2002:a17:90b:3149:b0:23f:7dfb:7dc1 with SMTP id ip9-20020a17090b314900b0023f7dfb7dc1mr5011569pjb.33.1679515121824; Wed, 22 Mar 2023 12:58:41 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.58.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:58:41 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , "James E.J. Bottomley" Subject: [PATCH v3 68/80] scsi: qlogicpti: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:55:03 -0700 Message-Id: <20230322195515.1267197-69-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche --- drivers/scsi/qlogicpti.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/qlogicpti.c b/drivers/scsi/qlogicpti.c index bf08c7cd10ef..1e8fbd457248 100644 --- a/drivers/scsi/qlogicpti.c +++ b/drivers/scsi/qlogicpti.c @@ -1287,7 +1287,7 @@ static int qlogicpti_reset(struct scsi_cmnd *Cmnd) return return_status; } -static struct scsi_host_template qpti_template = { +static const struct scsi_host_template qpti_template = { .module = THIS_MODULE, .name = "qlogicpti", .info = qlogicpti_info, From patchwork Wed Mar 22 19:55:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184616 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 91498C6FD1C for ; Wed, 22 Mar 2023 20:02:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231497AbjCVUCZ (ORCPT ); Wed, 22 Mar 2023 16:02:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231434AbjCVUBy (ORCPT ); Wed, 22 Mar 2023 16:01:54 -0400 Received: from mail-pj1-f45.google.com (mail-pj1-f45.google.com [209.85.216.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D3096BC12 for ; Wed, 22 Mar 2023 12:59:00 -0700 (PDT) Received: by mail-pj1-f45.google.com with SMTP id l9-20020a17090a3f0900b0023d32684e7fso1751558pjc.1 for ; Wed, 22 Mar 2023 12:59:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515123; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zmH/5IDY29elfLiT8SdhUeTtrZ6olPcPm8Il5WJPzag=; b=sXkw7btRB+r/dsoUITJiz8jUwo+h+o00TAFlmAHsufheq28VAvFbS0+vmAStAtgYHh VtHrOshqwUG6UfSAdVKhcnQhm6pLSM4ltwBv/uQq8BrUT6vbA/kyIr/nUXDJ+kL2nOLA bqbFGDEbmEiGJoXq+e5TX8qSFYE/DZj+baAroszNPPCaSsS8bBhahFTpoEMngnTflo1P wJPTzIhLdxY267YOD48zyX4loFPp58JOS3N8eipLIS9BntxWlft/2I5ZhTMYB80y4WOs 1zhmJC3kR9LPvJ9+bJ6RkYxxMxGo96iJx7HmtgUiI+aFHtsJogjYFHnUPejhQmPzRGQc 8UPg== X-Gm-Message-State: AO0yUKV/CNJl9FmEWJI9vrVc+78/Tg+fIcguaKcT8hIvO6yJAqBEAeCN tVq//e4pVDX744Y1q4SZ//udNwMOdTxWUw== X-Google-Smtp-Source: AK7set+z+cRRijgZyiGjmGRdw/w2lHfJ9HmJb4frxwWK+QGYYgF2QtTOwPZeHKK0kPcD32pWaETP+g== X-Received: by 2002:a17:90b:1d88:b0:237:99b9:c415 with SMTP id pf8-20020a17090b1d8800b0023799b9c415mr4831822pjb.38.1679515122982; Wed, 22 Mar 2023 12:58:42 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.58.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:58:42 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , "James E.J. Bottomley" Subject: [PATCH v3 69/80] scsi: sgiwd93: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:55:04 -0700 Message-Id: <20230322195515.1267197-70-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche --- drivers/scsi/sgiwd93.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/sgiwd93.c b/drivers/scsi/sgiwd93.c index 57d5dff62f63..88e2b5eb9caa 100644 --- a/drivers/scsi/sgiwd93.c +++ b/drivers/scsi/sgiwd93.c @@ -204,7 +204,7 @@ static inline void init_hpc_chain(struct ip22_hostdata *hdata) * arguments not with pointers. So this is going to blow up beautyfully * on 64-bit systems with memory outside the compat address spaces. */ -static struct scsi_host_template sgiwd93_template = { +static const struct scsi_host_template sgiwd93_template = { .module = THIS_MODULE, .proc_name = "SGIWD93", .name = "SGI WD93", From patchwork Wed Mar 22 19:55:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184618 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 94FB2C76196 for ; Wed, 22 Mar 2023 20:02:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231373AbjCVUCa (ORCPT ); Wed, 22 Mar 2023 16:02:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230430AbjCVUB4 (ORCPT ); Wed, 22 Mar 2023 16:01:56 -0400 Received: from mail-pj1-f50.google.com (mail-pj1-f50.google.com [209.85.216.50]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0B356BC18 for ; Wed, 22 Mar 2023 12:59:01 -0700 (PDT) Received: by mail-pj1-f50.google.com with SMTP id l7so2457510pjg.5 for ; Wed, 22 Mar 2023 12:59:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515124; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=KrCJy7oKZ0NcxdBtk/yFFeEQwBZTbtLM0nNDWv0I1ic=; b=loxDEXZEnvc5V3bxgJ3d3Fzy5WDx9vyaxgiWaMlFInAsMgOlOylvIFcra2ShWS8tTb LKjOXJTVqs1t5T8YpcC/KkKZkDt/afQ2Q06mKTbtJqKZ2bdAiBmo9Ol46mEt1omhSgfL gqQXNs28arKcuxVQNaab87NIiHAwCRh7wFgd+rGr+KO70OBgI7iYDiReOYpXpBa0G8uK fQwk3LFrfPQihWdA2AhuennD73mC/dzk3UTQcVwuZw9PVnZKdnLXfIB+Cjumkq+XlZrQ KP9lIfBxen2JlBy68xj0Kl4IZmhvbb+4h7B4kP1hA767unD/ScqUzpyYTQZyQqsFf27y BpSA== X-Gm-Message-State: AO0yUKXRLA/HYpgiucAnuZDXRodQOo9y6utYpotqL3a/nzC3TGBfdDQO eaIn/AiTpjLqw4TyqyS4MUc= X-Google-Smtp-Source: AK7set8xz/8Rn6WAcqSNn7qmUMzhCSGmq/N8OV3XD2eMCu/tdGE3wt4zSRq2Nqegvsb4izVQcHTJ4g== X-Received: by 2002:a17:90b:4d0f:b0:23b:355f:b26c with SMTP id mw15-20020a17090b4d0f00b0023b355fb26cmr5103746pjb.23.1679515124115; Wed, 22 Mar 2023 12:58:44 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.58.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:58:43 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , Don Brace , "James E.J. Bottomley" Subject: [PATCH v3 70/80] scsi: smartpqi: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:55:05 -0700 Message-Id: <20230322195515.1267197-71-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche --- drivers/scsi/smartpqi/smartpqi_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/smartpqi/smartpqi_init.c b/drivers/scsi/smartpqi/smartpqi_init.c index 49a8f91810b6..03de97cd72c2 100644 --- a/drivers/scsi/smartpqi/smartpqi_init.c +++ b/drivers/scsi/smartpqi/smartpqi_init.c @@ -7403,7 +7403,7 @@ static struct attribute *pqi_sdev_attrs[] = { ATTRIBUTE_GROUPS(pqi_sdev); -static struct scsi_host_template pqi_driver_template = { +static const struct scsi_host_template pqi_driver_template = { .module = THIS_MODULE, .name = DRIVER_NAME_SHORT, .proc_name = DRIVER_NAME_SHORT, From patchwork Wed Mar 22 19:55:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184617 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 92C75C7619A for ; Wed, 22 Mar 2023 20:02:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231166AbjCVUCb (ORCPT ); Wed, 22 Mar 2023 16:02:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231452AbjCVUB4 (ORCPT ); Wed, 22 Mar 2023 16:01:56 -0400 Received: from mail-pj1-f50.google.com (mail-pj1-f50.google.com [209.85.216.50]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2958B6BC09 for ; Wed, 22 Mar 2023 12:59:03 -0700 (PDT) Received: by mail-pj1-f50.google.com with SMTP id l7so2457561pjg.5 for ; Wed, 22 Mar 2023 12:59:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515125; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=x8zmmOkwIoIKAWyiwthdityD4hZhxjndZB0ZAklYRAQ=; b=5VPQ9T8pKxk4l1KKJ9SMA6aGxrmWTHqT2qggDiak7x7mJw5ygLftn4Hi/VlFDyK+6m 9yXd8+d7FJBSInzMQyzA5VYcEzUFBViiEvbTzVB1RUYjLwAGo8/mZ2+oTCDJFTCHx/6M KL8XPaTd5Xdr3erwOw9Kp/s7XNV/WgfNdxrEyLAaUT6DibISAPIgait8SiR82c6NiHz5 TYDyzwbEl1WV+Z7Tk1yhatjn5NyCNJ7w3T53mEd8EIS7oB9+yGkz09KjjoW+gfxTpyqc gpfDbd3lw7sUrWbe7E0yO03E1g35hT5Js3N7GKQWAviidii0k7gFUJ13WW3YTwaPVfpT EHvA== X-Gm-Message-State: AO0yUKV1WEJcoqHB34goY8dlM7Jibm95/pOwachhRaLLe4gd9y+aVg3F MYfxi3C0BOcgPIczBQVr6A4= X-Google-Smtp-Source: AK7set94jTr17trw6yiZL4N6DnYL+337liZoii/aVMyOruf3I2uV4QrUs9beleTsXzRYiVsiDxPdlA== X-Received: by 2002:a17:90b:4b06:b0:23f:635e:51e5 with SMTP id lx6-20020a17090b4b0600b0023f635e51e5mr4799243pjb.36.1679515125451; Wed, 22 Mar 2023 12:58:45 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.58.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:58:45 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , Karan Tilak Kumar , Sesidhar Baddela , "James E.J. Bottomley" Subject: [PATCH v3 71/80] scsi: snic: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:55:06 -0700 Message-Id: <20230322195515.1267197-72-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche --- drivers/scsi/snic/snic_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/snic/snic_main.c b/drivers/scsi/snic/snic_main.c index 174f7811fe50..cc824dcfe7da 100644 --- a/drivers/scsi/snic/snic_main.c +++ b/drivers/scsi/snic/snic_main.c @@ -100,7 +100,7 @@ snic_change_queue_depth(struct scsi_device *sdev, int qdepth) return sdev->queue_depth; } -static struct scsi_host_template snic_host_template = { +static const struct scsi_host_template snic_host_template = { .module = THIS_MODULE, .name = SNIC_DRV_NAME, .queuecommand = snic_queuecommand, From patchwork Wed Mar 22 19:55:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184619 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6A9BEC76196 for ; Wed, 22 Mar 2023 20:02:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231502AbjCVUCg (ORCPT ); Wed, 22 Mar 2023 16:02:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231164AbjCVUCA (ORCPT ); Wed, 22 Mar 2023 16:02:00 -0400 Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14FEC6BC23 for ; Wed, 22 Mar 2023 12:59:05 -0700 (PDT) Received: by mail-pj1-f43.google.com with SMTP id f6-20020a17090ac28600b0023b9bf9eb63so20230611pjt.5 for ; Wed, 22 Mar 2023 12:59:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515127; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xpoH3ZmMyEfzGffayIrMYkM/us+uEKnG/TchdnkTiAk=; b=h0uIqJfcKZ2YzAF99Jnsi0eCGaoKIhpyzF3OITiDuwnbOww2ZUneJG6feNMTkoTFzZ XmRMwsw/HXp7W+h4fQRzFVMdy+Ix1DBUD9F58z1uDUDZYPQ7s/5MdTBmcA/nHCdjIlNV Dde63u/pqHYfniGZQ1Uj7HsBPUHD6R4k4JJDIbZUvuitpTQigqGpHPUNGB3hHhm+MFQQ zaojW0DV3TkGa3WUK+MXejh3bG67SlGY+wmVCioMQUkynzPUtPSmRytdcn93OgOVAE+V G7NDLbT5wad17ppe7q7hZg6CQj3b/XxeFTFbXSGZlpzqnV/qzmVY7zdeinjTrNWlec8P F25w== X-Gm-Message-State: AO0yUKXvoFgD1rKz693NYqYt8p+gghkfOflLE1FZAyGnxs5c8uAjpXlW IoRvKteZDIymcveJSaP5fm0= X-Google-Smtp-Source: AK7set9js3hK9C3wsO0w8SAQXfldEvVQKBw2qqFgohq4X/j5yDNhWDXygr4Er7PFiWizLuXHlm0CbQ== X-Received: by 2002:a17:90b:3e82:b0:23d:5485:b80e with SMTP id rj2-20020a17090b3e8200b0023d5485b80emr5254316pjb.6.1679515126677; Wed, 22 Mar 2023 12:58:46 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.58.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:58:46 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , "James E.J. Bottomley" Subject: [PATCH v3 72/80] scsi: stex: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:55:07 -0700 Message-Id: <20230322195515.1267197-73-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche --- drivers/scsi/stex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/stex.c b/drivers/scsi/stex.c index 8def242675ef..5b230e149c3d 100644 --- a/drivers/scsi/stex.c +++ b/drivers/scsi/stex.c @@ -1472,7 +1472,7 @@ static int stex_biosparam(struct scsi_device *sdev, return 0; } -static struct scsi_host_template driver_template = { +static const struct scsi_host_template driver_template = { .module = THIS_MODULE, .name = DRV_NAME, .proc_name = DRV_NAME, From patchwork Wed Mar 22 19:55:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184620 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7D459C6FD1F for ; Wed, 22 Mar 2023 20:02:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231558AbjCVUCr (ORCPT ); Wed, 22 Mar 2023 16:02:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231395AbjCVUCL (ORCPT ); Wed, 22 Mar 2023 16:02:11 -0400 Received: from mail-pj1-f45.google.com (mail-pj1-f45.google.com [209.85.216.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A61476BC26 for ; Wed, 22 Mar 2023 12:59:09 -0700 (PDT) Received: by mail-pj1-f45.google.com with SMTP id d13so19542744pjh.0 for ; Wed, 22 Mar 2023 12:59:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515128; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=NjinhKeW7v86XI4sdE5pIezlr7cmvUsX5RCaWRammAQ=; b=dwA0djAZ4/GyxK4TcYYYUsFlFlfvxU8m1+d8o7rdGJd+oAVbri5wElIOczzJlYCUyT ZTEpL4GqT/WSu5YKt+6Xqw5ql0fG558LzmaeTEUoE2OnEFaGj5F1ILkocqjwL8yTZ3KQ vK8tcTiR8LNLHerntg7/1IxK9BlZqGXDLcO911neu3bFuxRwZNq8OrA8oxZsQwQaZ9zv 6ceizmzbhJEMlB4h/i5VWxJlHkVrGN2g5ZvChnVla7WOZoGihAPcWtsYa313PhPbFjWF TXotM42923lniT2XP6ysiBwqk00jzbTIHS/SaRKiTisXgB9IWAFOaNvtwUj35k/JVZX6 ns+Q== X-Gm-Message-State: AAQBX9eECVyWkOum87icQTtSmW5NIz0csqQMmRgp/jehiAADP3TUD0+R vxjDv0I7U5dUZP8oe7esT2k= X-Google-Smtp-Source: AKy350akWXzJJ9hZ6QH6QPq9Sw8puYmA6B435HZZBnYTSZTHAMktLXQolet7eQ2W2fzgzmH9dBY/FA== X-Received: by 2002:a17:90b:17c5:b0:23f:634a:6c7 with SMTP id me5-20020a17090b17c500b0023f634a06c7mr3033826pjb.15.1679515127890; Wed, 22 Mar 2023 12:58:47 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.58.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:58:47 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , Matthew Wilcox , "James E.J. Bottomley" Subject: [PATCH v3 73/80] scsi: sym53c8xx: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:55:08 -0700 Message-Id: <20230322195515.1267197-74-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche --- drivers/scsi/sym53c8xx_2/sym_glue.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/sym53c8xx_2/sym_glue.c b/drivers/scsi/sym53c8xx_2/sym_glue.c index 2e2852bd5860..ee36a9c15d9c 100644 --- a/drivers/scsi/sym53c8xx_2/sym_glue.c +++ b/drivers/scsi/sym53c8xx_2/sym_glue.c @@ -1224,7 +1224,7 @@ static void sym_free_resources(struct sym_hcb *np, struct pci_dev *pdev, * If all is OK, install interrupt handling and * start the timer daemon. */ -static struct Scsi_Host *sym_attach(struct scsi_host_template *tpnt, int unit, +static struct Scsi_Host *sym_attach(const struct scsi_host_template *tpnt, int unit, struct sym_device *dev) { struct sym_data *sym_data; @@ -1625,7 +1625,7 @@ static int sym_detach(struct Scsi_Host *shost, struct pci_dev *pdev) /* * Driver host template. */ -static struct scsi_host_template sym2_template = { +static const struct scsi_host_template sym2_template = { .module = THIS_MODULE, .name = "sym53c8xx", .info = sym53c8xx_info, From patchwork Wed Mar 22 19:55:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184623 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 920EFC7619A for ; Wed, 22 Mar 2023 20:03:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231533AbjCVUDQ (ORCPT ); Wed, 22 Mar 2023 16:03:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230430AbjCVUCa (ORCPT ); Wed, 22 Mar 2023 16:02:30 -0400 Received: from mail-pj1-f49.google.com (mail-pj1-f49.google.com [209.85.216.49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73ADF6C196 for ; Wed, 22 Mar 2023 12:59:20 -0700 (PDT) Received: by mail-pj1-f49.google.com with SMTP id d13so19542793pjh.0 for ; Wed, 22 Mar 2023 12:59:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515129; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Xqqv+aHKme2XMo/FdJ5muGw9JOXNAt4DfJWK98zODgU=; b=RTcDAXiYmLlKqTDEMBriuOlnnhz6uRUI7mwhMKh/t9kLvYMJxEIGGq14JEQ9PXrHSJ mkbIOqfpuqCQs27GCtJz8uVl/TL9PE7V+ozXLQDjPmAYyEOD8H7XKd0Wpj9FN3u7axzn CSTXnndK58WKovF665n+NDerdF0RJnmAEwZ7AF0q6NCciiFOO6pFPmm3N0+TTCOQeLvG b1tYbcZV+DRvXKnaTGMFcCYuL/4dBrW6KVSnx+EKu/K8A7Apz2yfIfhh99lk1GUOPNvA 40zEHNMtQCNw/zzaC67rO9Si4nMIP/9dmsSSHlY5JI/CxL1r8Q2jOzK583JzUGMPSduL pp2w== X-Gm-Message-State: AO0yUKVlbiTXOsLY52/TzKigNhARDlLfKgsiaek4IXJJmAYbGaR8N7q/ J4O17LoOtvdYZ+oO6k5JMUQ= X-Google-Smtp-Source: AK7set86avqIM/zetdEK61N26UV8forebrfoWOhxqpyvVnW/3HMcL3aRifOIdJmUe5zQs2M5ICeXqg== X-Received: by 2002:a17:90b:1c81:b0:23f:7d05:8765 with SMTP id oo1-20020a17090b1c8100b0023f7d058765mr4971741pjb.10.1679515129118; Wed, 22 Mar 2023 12:58:49 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.58.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:58:48 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , "Michael S. Tsirkin" , Jason Wang , "James E.J. Bottomley" Subject: [PATCH v3 74/80] scsi: virtio-scsi: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:55:09 -0700 Message-Id: <20230322195515.1267197-75-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche --- drivers/scsi/virtio_scsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/virtio_scsi.c b/drivers/scsi/virtio_scsi.c index c5558c45ab3a..58498da9869a 100644 --- a/drivers/scsi/virtio_scsi.c +++ b/drivers/scsi/virtio_scsi.c @@ -746,7 +746,7 @@ static enum scsi_timeout_action virtscsi_eh_timed_out(struct scsi_cmnd *scmnd) return SCSI_EH_RESET_TIMER; } -static struct scsi_host_template virtscsi_host_template = { +static const struct scsi_host_template virtscsi_host_template = { .module = THIS_MODULE, .name = "Virtio SCSI HBA", .proc_name = "virtio_scsi", From patchwork Wed Mar 22 19:55:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184621 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 20F2FC7619A for ; Wed, 22 Mar 2023 20:02:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231560AbjCVUC4 (ORCPT ); Wed, 22 Mar 2023 16:02:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231317AbjCVUCO (ORCPT ); Wed, 22 Mar 2023 16:02:14 -0400 Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D0EA6BC32 for ; Wed, 22 Mar 2023 12:59:15 -0700 (PDT) Received: by mail-pj1-f43.google.com with SMTP id a16so15162235pjs.4 for ; Wed, 22 Mar 2023 12:59:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515130; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=iHexfxqhHa9lPmHb4Wa8nZQ2WhbsAHB+F6q2CfoJf+4=; b=Sga2hbEZ60QM3QVEKZuQq1k5b/MqY6uR1Dk4h6RPigQzjoVe5p1mIHEFoEEvc4+nIA C1FlbxnkWCyAo5FMGNRWJwOmYLjDRH6b+m5k1jvR3oGxcSlsHzB/uc8WHV+slgFiy9e8 G3mVH6yj2S3jk4POgHWxgCpszKZ3a5bZL7t5QAD7RKadNF9pUx98dPxOQ3Zdfz5A5yz2 M3njQsYgrSeOIcEu8WuSrXb62Tk0mfKPWzcFBjb/JYP5WmoBQ0U79MCUBmTTHpt4M0u0 4QtTaTWD/JV03HWxYDjH1LoiZ/+J13hBDOGGvTngsrrqg2xVQ0hPk0774+K58YtL6DQ9 5T9w== X-Gm-Message-State: AO0yUKUs57T/HkXOYCazUpl5Ff/+x0EBKnx/+Of35u9qGv8/qbaBC+Qo T8qQf6aXxpnYosD473/p7ltC/MFJVEd4eg== X-Google-Smtp-Source: AK7set98UN9tmagIsOeYJqUkcM/sQAYdrnX82qrRu9smoUqudcJdIWFTgK0ts8p52S0CGw4ceTlHxA== X-Received: by 2002:a17:90b:350f:b0:23d:3761:6087 with SMTP id ls15-20020a17090b350f00b0023d37616087mr4946861pjb.1.1679515130154; Wed, 22 Mar 2023 12:58:50 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.58.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:58:49 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , "James E.J. Bottomley" Subject: [PATCH v3 75/80] scsi: wd719x: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:55:10 -0700 Message-Id: <20230322195515.1267197-76-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche --- drivers/scsi/wd719x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/wd719x.c b/drivers/scsi/wd719x.c index ff1b22077251..5a380eecfc75 100644 --- a/drivers/scsi/wd719x.c +++ b/drivers/scsi/wd719x.c @@ -878,7 +878,7 @@ static int wd719x_board_found(struct Scsi_Host *sh) return ret; } -static struct scsi_host_template wd719x_template = { +static const struct scsi_host_template wd719x_template = { .module = THIS_MODULE, .name = "Western Digital 719x", .cmd_size = sizeof(struct wd719x_scb), From patchwork Wed Mar 22 19:55:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184622 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 994A2C6FD1C for ; Wed, 22 Mar 2023 20:02:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231272AbjCVUC6 (ORCPT ); Wed, 22 Mar 2023 16:02:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231528AbjCVUCO (ORCPT ); Wed, 22 Mar 2023 16:02:14 -0400 Received: from mail-pj1-f47.google.com (mail-pj1-f47.google.com [209.85.216.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 564826BC35 for ; Wed, 22 Mar 2023 12:59:15 -0700 (PDT) Received: by mail-pj1-f47.google.com with SMTP id l7so2457811pjg.5 for ; Wed, 22 Mar 2023 12:59:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515131; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Xeu7xruEVKfGMyukiTiO0Ah5kOsdbVW08mhQJ5MQnkM=; b=GmGaoHH8wH6BsmLB/bRVK6zOnSIgy6pp5opFCPLT2UPPn4CrFeBqkfuk156lW0n73k xvpwKLlzeZpydkWn4g70EEm6zE6yQ5SbzM0dGZKgFPiRTecbqGtR9SONmFODLgLfYkU2 +PjygViHQB7HVQj/QecgNqDjXTTgKltcmdbpaqMdi+DVMaMsREuGrHCUvUGRpgtty1UA owAXPqAQrG3KtIfMZP3/VDzRv/0WRuJxGVPWTT5nN5NfVqyNl1bj0RcTKSUWBLeQSuI5 sLVu+9yZFWHCyV0yPOrwdtPonZxhUmzZ3qFMEFyLjrBLQM2lFlzNvKTdHt2QVdSOJ3Az okXg== X-Gm-Message-State: AO0yUKXB3smq22+hmETQp6vaV+2211W2EjSUmD6lRnnlO9pHQy4E3BX8 ati55B4bvXZbq6ro+k5gczU= X-Google-Smtp-Source: AK7set8ijN/pICOt3ZpVvpIIan7Vpm9zb26JL6gw8TQ8/nur8cDFks8fGr09xq6UXVOg3SyK3cXn6g== X-Received: by 2002:a17:90b:180d:b0:234:d3a:2a38 with SMTP id lw13-20020a17090b180d00b002340d3a2a38mr4801977pjb.43.1679515131359; Wed, 22 Mar 2023 12:58:51 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.58.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:58:51 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , Juergen Gross , Stefano Stabellini , "James E.J. Bottomley" Subject: [PATCH v3 76/80] scsi: xen-scsifront: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:55:11 -0700 Message-Id: <20230322195515.1267197-77-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Reviewed-by: Juergen Gross Signed-off-by: Bart Van Assche --- drivers/scsi/xen-scsifront.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/xen-scsifront.c b/drivers/scsi/xen-scsifront.c index 71a3bb83984c..caae61aa2afe 100644 --- a/drivers/scsi/xen-scsifront.c +++ b/drivers/scsi/xen-scsifront.c @@ -770,7 +770,7 @@ static void scsifront_sdev_destroy(struct scsi_device *sdev) } } -static struct scsi_host_template scsifront_sht = { +static const struct scsi_host_template scsifront_sht = { .module = THIS_MODULE, .name = "Xen SCSI frontend driver", .queuecommand = scsifront_queuecommand, From patchwork Wed Mar 22 19:55:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184624 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C1631C761AF for ; Wed, 22 Mar 2023 20:03:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231530AbjCVUDS (ORCPT ); Wed, 22 Mar 2023 16:03:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231534AbjCVUCb (ORCPT ); Wed, 22 Mar 2023 16:02:31 -0400 Received: from mail-pj1-f41.google.com (mail-pj1-f41.google.com [209.85.216.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32ABF6C1AB for ; Wed, 22 Mar 2023 12:59:22 -0700 (PDT) Received: by mail-pj1-f41.google.com with SMTP id j13so19509221pjd.1 for ; Wed, 22 Mar 2023 12:59:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515139; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=lVABtwuKLCZjlgGg9Kihk5ZhKjkBAw+8Lgw+lSIbQNc=; b=nLbADDuEHzM5/6KwYaH8sQCf5jHh9ppCFO6I+SIEBXIMCRcjjDs803kACuJsk26sel l+/+MdfvcfIXSsvQ6+aArEO5eoOF65H1di9bq0kLIJ+LpOPXjTz2eXlbQ9DtYDm3sJK6 eicc0fRmOzcgjlQiEZRYOyLgvSJ73kqOvBaxQityM56+AcwyLRUEqTIquznaVLuZN2WQ In8PDc4iD9GXst2/3k4eKoid1KmgXb6a7K9XWcV2FXi3Nefc5WXAKNnJAcA0c+tWjLZ0 ST4RNmO/YTFeDyl5uH823mbSeQkmT/HJudW458THTLmBixCXdZAybW8KrK5mnUNlM6PQ wG7Q== X-Gm-Message-State: AO0yUKWKVH/5O05pU0HR3cWVNbVnfWPh8u4FKQNoqHJG2/9txXE1EHfF 8TtuBKak6R2ykA+N/RG3ceQ= X-Google-Smtp-Source: AK7set+zPx2rTkTUFAf1QwxIUCaByFbia4l+qNcWmc8pNZkDgBbOqLv6KTYCcYh2te9vn7A2vSGlJA== X-Received: by 2002:a17:90b:33c5:b0:237:40a5:7cb9 with SMTP id lk5-20020a17090b33c500b0023740a57cb9mr4985462pjb.5.1679515139677; Wed, 22 Mar 2023 12:58:59 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.58.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:58:59 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , Greg Kroah-Hartman Subject: [PATCH v3 77/80] scsi: rts5208: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:55:12 -0700 Message-Id: <20230322195515.1267197-78-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Acked-by: Greg Kroah-Hartman Signed-off-by: Bart Van Assche --- drivers/staging/rts5208/rtsx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rts5208/rtsx.c b/drivers/staging/rts5208/rtsx.c index 2284a96abcff..db2dd0baa8be 100644 --- a/drivers/staging/rts5208/rtsx.c +++ b/drivers/staging/rts5208/rtsx.c @@ -191,7 +191,7 @@ static int device_reset(struct scsi_cmnd *srb) * this defines our host template, with which we'll allocate hosts */ -static struct scsi_host_template rtsx_host_template = { +static const struct scsi_host_template rtsx_host_template = { /* basic userland interface stuff */ .name = CR_DRIVER_NAME, .proc_name = CR_DRIVER_NAME, From patchwork Wed Mar 22 19:55:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184625 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 136ADC7619A for ; Wed, 22 Mar 2023 20:03:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231405AbjCVUDw (ORCPT ); Wed, 22 Mar 2023 16:03:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231415AbjCVUDG (ORCPT ); Wed, 22 Mar 2023 16:03:06 -0400 Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FFB86A9FB for ; Wed, 22 Mar 2023 12:59:31 -0700 (PDT) Received: by mail-pj1-f43.google.com with SMTP id e15-20020a17090ac20f00b0023d1b009f52so24660511pjt.2 for ; Wed, 22 Mar 2023 12:59:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515148; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=JatlvvSAy10pUZ2TE7FlESNCOBJ5cJUZcDrqKgCUceo=; b=AaCTDiByxW1AzOkxQff3V9mXTxgD3/5gITyklDrUTV9l1UmnCwS0jcIe+RFI51TYeQ x38wN64NwOToQYUcgg/gQNSw0I7c+4SFuYaeRrfyEt1i5rHtvteNsExeh/i87p7VFuV2 q2LP/roGduwD1hD8Qut1nhyGdK/TOGJh/5pZEJWiUxSqMMYmcJCKaklBU4yUP3Yi8j9K FI+9ScIignWRlI8bZisHRNbOBjXIznAeuB2qehhJgCO9l/0PDChIslGmqxtPz/5+M4pY 5lmKqvtRNXWki2Zbew8BbhqMvuuKXc+kXT1xwx7gDr1pUdxVYmxBQo8YTX6/Lt3iQLsA KuZA== X-Gm-Message-State: AO0yUKU90FG1PhogUY6WjSD7WZzP2wxoOTi6Vva6LNJy8p3Uxcx+l41X Pjt866Y52/tix5yxZlX5tCr8LdgNZ+uNOQ== X-Google-Smtp-Source: AK7set/1jogrfyCOWMT3eyDpgf9yy3+8GKQ0gJPs8UyAE9u4s/a73/4d34Wgd9qg5Xqe9ntTCrTirA== X-Received: by 2002:a17:90b:17c5:b0:23f:5ea8:3ccd with SMTP id me5-20020a17090b17c500b0023f5ea83ccdmr4906048pjb.30.1679515148162; Wed, 22 Mar 2023 12:59:08 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.59.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:59:07 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , Dmitry Bogdanov , Yang Yingliang , Mike Christie Subject: [PATCH v3 78/80] scsi: target: tcm-loop: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:55:13 -0700 Message-Id: <20230322195515.1267197-79-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche --- drivers/target/loopback/tcm_loop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/target/loopback/tcm_loop.c b/drivers/target/loopback/tcm_loop.c index 5c8646c2d4e9..5272f7dd85d2 100644 --- a/drivers/target/loopback/tcm_loop.c +++ b/drivers/target/loopback/tcm_loop.c @@ -298,7 +298,7 @@ static int tcm_loop_target_reset(struct scsi_cmnd *sc) return FAILED; } -static struct scsi_host_template tcm_loop_driver_template = { +static const struct scsi_host_template tcm_loop_driver_template = { .show_info = tcm_loop_show_info, .proc_name = "tcm_loopback", .name = "TCM_Loopback", From patchwork Wed Mar 22 19:55:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184627 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 680B7C76196 for ; Wed, 22 Mar 2023 20:04:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231666AbjCVUEf (ORCPT ); Wed, 22 Mar 2023 16:04:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231578AbjCVUEK (ORCPT ); Wed, 22 Mar 2023 16:04:10 -0400 Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 789CE6E68A for ; Wed, 22 Mar 2023 12:59:46 -0700 (PDT) Received: by mail-pl1-f179.google.com with SMTP id o2so12890753plg.4 for ; Wed, 22 Mar 2023 12:59:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515167; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=F0awJl7VuZCak7ZqmVpOunicPTwgCzwngttr212mf40=; b=3BHsICGsv+1sHnVPXVeR1yvL5JMPY2ZZ9cn+vgZYgyn/ouaaT3GOGCNa9wO8HjUogC UXwNKue7R1+bjsOExJQOdn/u+DNzOHF9pJnr7BqoYOJYFrRwCXh41uBPZc5OnmT99qbA plKidoJZDOIjos1xbpcFtL8g/1xu5JwO/Na0m6+nIv2l8ZWeAjyNLVnFuGkjIXJA/5Ue Z/l35dCzohY6/suRcJZyXVBdblnqUyU/d2atAPGpXy3eo23FptyCHfp6+OX55zYk2tJf RYV11rpP9UUnOPrjdnWnUK490SNT3kU5JD+aQg4OM7F3LPuPeFyflOZqaJ1Coi1TBnFK LEMQ== X-Gm-Message-State: AO0yUKW3r0WQUGtQ9PcLTwwAxVk6FZ/8PBggefc0Sg4VfHmD/LThsENv xwYLVqmMpZWuj3ud6HK6OmU= X-Google-Smtp-Source: AK7set89Wnmzgx+EBVnhH1sDHzLUUiBT+vNFHJ/TvsJCRQKcMaxRCnJAKV5FAN6Cp2l2moYQ1NnUfg== X-Received: by 2002:a17:90a:190d:b0:23f:5c65:8c72 with SMTP id 13-20020a17090a190d00b0023f5c658c72mr4477294pjg.49.1679515167613; Wed, 22 Mar 2023 12:59:27 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.59.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:59:27 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , "James E.J. Bottomley" , Bean Huo , Avri Altman , Stanley Chu , Asutosh Das Subject: [PATCH v3 79/80] scsi: ufs: Declare SCSI host template const Date: Wed, 22 Mar 2023 12:55:14 -0700 Message-Id: <20230322195515.1267197-80-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make it explicit that the SCSI host template is not modified. Signed-off-by: Bart Van Assche --- drivers/ufs/core/ufshcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ufs/core/ufshcd.c b/drivers/ufs/core/ufshcd.c index 8e7dfaadc691..35a3bd95c5e4 100644 --- a/drivers/ufs/core/ufshcd.c +++ b/drivers/ufs/core/ufshcd.c @@ -8751,7 +8751,7 @@ static struct ufs_hba_variant_params ufs_hba_vps = { .ondemand_data.downdifferential = 5, }; -static struct scsi_host_template ufshcd_driver_template = { +static const struct scsi_host_template ufshcd_driver_template = { .module = THIS_MODULE, .name = UFSHCD, .proc_name = UFSHCD, From patchwork Wed Mar 22 19:55:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 13184628 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3DA19C6FD1C for ; Wed, 22 Mar 2023 20:04:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231672AbjCVUEg (ORCPT ); Wed, 22 Mar 2023 16:04:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231599AbjCVUEL (ORCPT ); Wed, 22 Mar 2023 16:04:11 -0400 Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8717E1D90A; Wed, 22 Mar 2023 12:59:47 -0700 (PDT) Received: by mail-pl1-f175.google.com with SMTP id o11so20316367ple.1; Wed, 22 Mar 2023 12:59:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679515169; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=F5tIVBE4K8CgUVKwm6vqDfV2hh2Jui3P/usB4LBsz6g=; b=7rfsdYq69OCPp63IYwmva3nfhPXDvu5/S2RHiNHGIk32dB8tTfZmKzKIOjxz74dtdT hgS8n2WX0iEF41rKIsv8uBrUxofBh4Fx8hyt4BvOwmJL67g8HnCMTm9LclJqdAYJpnlR yw1VabY+nb0QpQGOpYSahEVrj0vVW6Jm4nJSsM2smBQzRBEzry4JM+YK2iko9qi1HXjv AQubGyDxNtIkBmu+numi9NYxpwIP/ZKEbtd2NBWiYqKxjhR7pnbD/D9+s0YDpFQMEuL/ foi+XOWzVaekX6ZY24+kwoQQU3XuME2mZ9mQLRnL5Ph9vzO7VfqNWMT5ztSKA5nGNupG 4IdA== X-Gm-Message-State: AO0yUKXAgofqW++NG/mJyqmA3pWxQSe0Lph7XMWO15ydeRD40MbE8Lxj Sml9znPLtbUTLhPsw4qqsIk= X-Google-Smtp-Source: AK7set8oDjWy92HGqqzt1NviN7xxI41nAu6o8ux1mlGhtAh0Cyd/MZ1YTRuifEAB8BGlk0tLPbQyTQ== X-Received: by 2002:a17:90a:182:b0:23f:635e:51e9 with SMTP id 2-20020a17090a018200b0023f635e51e9mr5164486pjc.8.1679515169128; Wed, 22 Mar 2023 12:59:29 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:ad4e:d902:f46f:5b50]) by smtp.gmail.com with ESMTPSA id g2-20020a17090adac200b00233cde36909sm13574815pjx.21.2023.03.22.12.59.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:59:28 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , Alan Stern , Oliver Neukum , Greg Kroah-Hartman , linux-usb@vger.kernel.org, Oliver Neukum Subject: [PATCH v3 80/80] usb: uas: Declare two host templates and host template pointers const Date: Wed, 22 Mar 2023 12:55:15 -0700 Message-Id: <20230322195515.1267197-81-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230322195515.1267197-1-bvanassche@acm.org> References: <20230322195515.1267197-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Improve source code documentation by constifying host templates that are not modified. Acked-by: Alan Stern (for usb-storage) Acked-by: Oliver Neukum Acked-by: Greg Kroah-Hartman Cc: Oliver Neukum Cc: linux-usb@vger.kernel.org Signed-off-by: Bart Van Assche --- drivers/usb/image/microtek.c | 2 +- drivers/usb/storage/uas.c | 2 +- drivers/usb/storage/usb.c | 2 +- drivers/usb/storage/usb.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/usb/image/microtek.c b/drivers/usb/image/microtek.c index 874ea4b54ced..8c8fa71c69c4 100644 --- a/drivers/usb/image/microtek.c +++ b/drivers/usb/image/microtek.c @@ -620,7 +620,7 @@ static int mts_scsi_queuecommand_lck(struct scsi_cmnd *srb) static DEF_SCSI_QCMD(mts_scsi_queuecommand) -static struct scsi_host_template mts_scsi_host_template = { +static const struct scsi_host_template mts_scsi_host_template = { .module = THIS_MODULE, .name = "microtekX6", .proc_name = "microtekX6", diff --git a/drivers/usb/storage/uas.c b/drivers/usb/storage/uas.c index de3836412bf3..2583ee9815c5 100644 --- a/drivers/usb/storage/uas.c +++ b/drivers/usb/storage/uas.c @@ -894,7 +894,7 @@ static int uas_slave_configure(struct scsi_device *sdev) return 0; } -static struct scsi_host_template uas_host_template = { +static const struct scsi_host_template uas_host_template = { .module = THIS_MODULE, .name = "uas", .queuecommand = uas_queuecommand, diff --git a/drivers/usb/storage/usb.c b/drivers/usb/storage/usb.c index ed7c6ad96a74..7b36a3334fb3 100644 --- a/drivers/usb/storage/usb.c +++ b/drivers/usb/storage/usb.c @@ -937,7 +937,7 @@ int usb_stor_probe1(struct us_data **pus, struct usb_interface *intf, const struct usb_device_id *id, const struct us_unusual_dev *unusual_dev, - struct scsi_host_template *sht) + const struct scsi_host_template *sht) { struct Scsi_Host *host; struct us_data *us; diff --git a/drivers/usb/storage/usb.h b/drivers/usb/storage/usb.h index 0451fac1adce..fd3f32670873 100644 --- a/drivers/usb/storage/usb.h +++ b/drivers/usb/storage/usb.h @@ -187,7 +187,7 @@ extern int usb_stor_probe1(struct us_data **pus, struct usb_interface *intf, const struct usb_device_id *id, const struct us_unusual_dev *unusual_dev, - struct scsi_host_template *sht); + const struct scsi_host_template *sht); extern int usb_stor_probe2(struct us_data *us); extern void usb_stor_disconnect(struct usb_interface *intf);