From patchwork Sat Mar 4 00:29: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: 658944 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 471D0C61DA4 for ; Sat, 4 Mar 2023 00:31:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229547AbjCDAb1 (ORCPT ); Fri, 3 Mar 2023 19:31:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229509AbjCDAb0 (ORCPT ); Fri, 3 Mar 2023 19:31:26 -0500 Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15A8A65441 for ; Fri, 3 Mar 2023 16:31:26 -0800 (PST) Received: by mail-pl1-f170.google.com with SMTP id p20so4492459plw.13 for ; Fri, 03 Mar 2023 16:31:26 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677889885; 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=RASbH6K+n7jcZf3ZBMokHSsitFi54x26+ZXysRYedHE=; b=IyjwvPtQeyCHZ3AzXO3oguRgXTVJfx1dWi+nhJ0l799m3u74j69H0gydFkx/Bp9EqQ NiV5He7Mzviur/ZiI/FGAzY1JMqtFyCegF9NSQ7hERF/paM8Sob9DIp7b+sjdrDgJgHh 6oc1FPQ/F/STTk2d6rjNWExiypUw0DQcXW/NZQ2/9gzhwG7zNHoD/yf8UyCDdiNcn+ci tQQDTYKPS3wNmLQ5VVzu0nr2qGo+KyvInOabqPKkZibEUJWnRgwl34/WLCzL/NPRIN+m rnxygtl8I1EA9DnEkplcE5oWuVZ2hxfwYs0K0bc5FFPvcgtQcXTFofgFDIdznOPJzuLX au5w== X-Gm-Message-State: AO0yUKUeFtgyUHag/xncQ8OCIkWQN3pH9WfG6g0oV/65NOeDmtvABLU2 03dhFId9B8ju+iynUB2AD+Y= X-Google-Smtp-Source: AK7set/l7zM0evQVbT+wMvAM/tFCTJ/TQupcaZRm7TusFzqZ3SKn+mNCiAaouwSlyHiYm32sTbYYPA== X-Received: by 2002:a17:902:db11:b0:19d:7a4:4063 with SMTP id m17-20020a170902db1100b0019d07a44063mr4220953plx.46.1677889885156; Fri, 03 Mar 2023 16:31:25 -0800 (PST) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:efb8:1cdc:a06f:1b53]) by smtp.gmail.com with ESMTPSA id kk15-20020a170903070f00b00189743ed3b6sm2071078plb.64.2023.03.03.16.31.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 16:31:24 -0800 (PST) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , Christoph Hellwig , Ming Lei , Hannes Reinecke , John Garry , Mike Christie , "James E.J. Bottomley" Subject: [PATCH 03/81] scsi: core: Declare SCSI host template pointer members const Date: Fri, 3 Mar 2023 16:29:45 -0800 Message-Id: <20230304003103.2572793-4-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc0.216.gc4246ad0f0-goog In-Reply-To: <20230304003103.2572793-1-bvanassche@acm.org> References: <20230304003103.2572793-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. Cc: Christoph Hellwig Cc: Ming Lei Cc: Hannes Reinecke Cc: John Garry Cc: Mike Christie Signed-off-by: Bart Van Assche Reviewed-by: John Garry --- drivers/scsi/hosts.c | 4 ++-- include/linux/raid_class.h | 2 +- include/scsi/libfc.h | 2 +- include/scsi/scsi_host.h | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) 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 Sat Mar 4 00:29: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: 658943 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 777FAC64EC4 for ; Sat, 4 Mar 2023 00:31:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229568AbjCDAbw (ORCPT ); Fri, 3 Mar 2023 19:31:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229509AbjCDAbu (ORCPT ); Fri, 3 Mar 2023 19:31:50 -0500 Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7312669231 for ; Fri, 3 Mar 2023 16:31:49 -0800 (PST) Received: by mail-pl1-f176.google.com with SMTP id a9so4499982plh.11 for ; Fri, 03 Mar 2023 16:31:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677889909; 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=TRaBidyNT0CPspAryOSAJzVfbEYXDVCy844lk4y4E34=; b=13rqYBn3KBvsetCghQjrLjCGM36AqXSD7IoqlEiHKzLgPSz8YGWfKoO3AO7fCFF9Eq T4FIMdOPddrbWKxs63ifyqxYULzjduvcT24YCMiSbBAUltW6n9heUWV4d31hoL27fCXX zUARMEv2lZ8ib+pYqtwqc4OhA3TQW7nRLe8Io3qjLyoAuHJXuxlRzcAN2uxKZdB5Pht2 7+kEzYBLa1HWLFhy2lwH3I+ze6U3L5AviJsuHOeFuYKfkC/FWDjFLwmwuHgaVPiWvAm6 ZGS7YgL7InjTWotvdVx/vkscYpCn+GQdC0G3FAzoMku8s3BeD75NY4tVl7R9Fscfsc3U WgjQ== X-Gm-Message-State: AO0yUKX6YxOPYYde+8/iI3dcFV3SAUYLhEw6/QPytBBwfEfvn5noFHgT N4yKlrEdY6g63XJksptTopk= X-Google-Smtp-Source: AK7set8hUhE7/TFiFiysdFdlfBQ5ZCoc5pmhseZjN/+/vxJkRRfbWDEOhhaEJxdiakf87sv0pYAIMg== X-Received: by 2002:a17:903:228f:b0:19a:9945:a7aa with SMTP id b15-20020a170903228f00b0019a9945a7aamr4404923plh.20.1677889908857; Fri, 03 Mar 2023 16:31:48 -0800 (PST) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:efb8:1cdc:a06f:1b53]) by smtp.gmail.com with ESMTPSA id kk15-20020a170903070f00b00189743ed3b6sm2071078plb.64.2023.03.03.16.31.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 16:31:48 -0800 (PST) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , Jason Gunthorpe , Leon Romanovsky Subject: [PATCH 06/81] RDMA/srp: Declare the SCSI host template const Date: Fri, 3 Mar 2023 16:29:48 -0800 Message-Id: <20230304003103.2572793-7-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc0.216.gc4246ad0f0-goog In-Reply-To: <20230304003103.2572793-1-bvanassche@acm.org> References: <20230304003103.2572793-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. 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 Sat Mar 4 00:29: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: 658942 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 F2795C61DA4 for ; Sat, 4 Mar 2023 00:32:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229560AbjCDAcF (ORCPT ); Fri, 3 Mar 2023 19:32:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229579AbjCDAbw (ORCPT ); Fri, 3 Mar 2023 19:31:52 -0500 Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 750AA65441 for ; Fri, 3 Mar 2023 16:31:51 -0800 (PST) Received: by mail-pl1-f170.google.com with SMTP id n6so4541627plf.5 for ; Fri, 03 Mar 2023 16:31:51 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677889911; 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=W7uaKwNcIefzMJLPKpaPh4SP2O6KEZPOLz4sX+fX1V2Viq4N0f4kRaydmFi5NE6vtC sg8Y6qlB+m110Dyq0L+Lk3LYuq7479aqyoKv4w+th57SB+EtlrJ2Chd5SSWegF74STkP z4OKTw2gc1/uhEcvIZJryW2vk+dV824JWRDM9NeK2WXYDOsl0bmyIgUHO2UnjKxFt+e/ OEQXMjYGqyNjbDBd30lsiKimNtSruyGJs4Ou9syQIjLEiqDe73PKFnLnRSoRooOXK2OO 5iX4p+sKmo7mdTtpZz86xu866CCEGvEYSWaTO+myirNgn07i77WCR4oQI6jnbTueIBvO cnDQ== X-Gm-Message-State: AO0yUKXt4QXsg2qJUwgYFYPWVazLqaJqqKhWc+I2jC4fhEcZOGNoe0Ki 8/ECIYph2JK7+TpZqOn+PXw= X-Google-Smtp-Source: AK7set8O44FwcUFPyZGqL1jZmq6H424U2kZuHktJghuQVorzvyCJ2WeW49V5mo0KLRKdVXlFVEr0ig== X-Received: by 2002:a17:902:c185:b0:19c:a3be:d9f7 with SMTP id d5-20020a170902c18500b0019ca3bed9f7mr3518012pld.11.1677889910892; Fri, 03 Mar 2023 16:31:50 -0800 (PST) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:efb8:1cdc:a06f:1b53]) by smtp.gmail.com with ESMTPSA id kk15-20020a170903070f00b00189743ed3b6sm2071078plb.64.2023.03.03.16.31.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 16:31:49 -0800 (PST) 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 07/81] scsi: message: fusion: Declare SCSI host template members const Date: Fri, 3 Mar 2023 16:29:49 -0800 Message-Id: <20230304003103.2572793-8-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc0.216.gc4246ad0f0-goog In-Reply-To: <20230304003103.2572793-1-bvanassche@acm.org> References: <20230304003103.2572793-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 Sat Mar 4 00:29: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: 658941 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 2B3F7C678D5 for ; Sat, 4 Mar 2023 00:32:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229618AbjCDAcH (ORCPT ); Fri, 3 Mar 2023 19:32:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229562AbjCDAcD (ORCPT ); Fri, 3 Mar 2023 19:32:03 -0500 Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7210565442 for ; Fri, 3 Mar 2023 16:31:55 -0800 (PST) Received: by mail-pl1-f170.google.com with SMTP id ky4so4556684plb.3 for ; Fri, 03 Mar 2023 16:31:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677889915; 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=vm+yadLyen51i5QKKS5rjfNO1KBVsmdDr8tZqAlWJJatBVnB5OoqMU7netWx3Akcul QcBT03/VJgi6LhGor/BRy1MPBqKMBEgH/+dDcUT9+X3API4/9hj5WVTKlGjJlyIU7MqL xvbrkVzdb9gJB5xn3TICTK5Sd6YEPh5SXpdn9xT0YRe+i0yuW39lfIcwrv2DGMyXz8jM gtJr4xCh7tKdo5wByFA9GND6KY1vWk8sm6CRvnuOURISZXC2biqBzqKVn6J9pqSQ6mLX JIVXxAg8X3PNKmfCrsEHNC9/phRGd85+0a7nl9pO9fKvXs5SILhYqbfrVcaRn1GCs4v+ nk8w== X-Gm-Message-State: AO0yUKXYiMBYf1rGJhq38sHlqthWeNjnBgT83ecyFyCILlamjGNXCTtP DzpbhmWJhvI5LXy+7UACxmw= X-Google-Smtp-Source: AK7set9OPu58y8ZeP8zVwTe7A9ufyzd/huMVT07lQsMpdGeRHwsONqWr3ZsXfs1YlJDFoOwTSS+QMg== X-Received: by 2002:a17:903:11c8:b0:199:2a89:f912 with SMTP id q8-20020a17090311c800b001992a89f912mr3942988plh.20.1677889915072; Fri, 03 Mar 2023 16:31:55 -0800 (PST) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:efb8:1cdc:a06f:1b53]) by smtp.gmail.com with ESMTPSA id kk15-20020a170903070f00b00189743ed3b6sm2071078plb.64.2023.03.03.16.31.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 16:31:54 -0800 (PST) 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 09/81] scsi: 3w-9xxx: Declare SCSI host template const Date: Fri, 3 Mar 2023 16:29:51 -0800 Message-Id: <20230304003103.2572793-10-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc0.216.gc4246ad0f0-goog In-Reply-To: <20230304003103.2572793-1-bvanassche@acm.org> References: <20230304003103.2572793-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 Sat Mar 4 00:29: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: 658940 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 B821FC64EC4 for ; Sat, 4 Mar 2023 00:32:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229651AbjCDAcJ (ORCPT ); Fri, 3 Mar 2023 19:32:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229625AbjCDAcE (ORCPT ); Fri, 3 Mar 2023 19:32:04 -0500 Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com [209.85.216.48]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A1446A1C9 for ; Fri, 3 Mar 2023 16:31:59 -0800 (PST) Received: by mail-pj1-f48.google.com with SMTP id qa18-20020a17090b4fd200b0023750b675f5so7854965pjb.3 for ; Fri, 03 Mar 2023 16:31:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677889918; 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=tSFg2gZl2cILyd43Epd4pNStDqNCwsJaZnu4Kogeu5nt4nEbkOksucdnw/I+i6RKWJ 37ouxpMHzhwa2MkRXWPvrATgCAjmt1WQrrGlUhcrsGQAdeJ5fIWsPGsFyDddoQ0d9D8+ He5Ksh7xM2t1RscUroIwD6rgF6IdPnHrSUTAXFLda3hX+wJJuSTB6EsNLdT2uvxAFBFs SudIb3V17QKbvo+/LvZ96PGd8sgLsh1cvROQW7HLHDVxDMmT3TvHmyrmz0Z1+5cQUP5/ QFeXNNv5B7sbs9u/W+2ccMzkbnKnSGmSwVF2RoQE3grLnn0fz7NtRRkAFcZuqNAODwqC SxhA== X-Gm-Message-State: AO0yUKXhzyxn+naEBVucdCaM2JdYIu01dNVhvh59jh/BLoi8Zr1Ce4Dy nDxm3GNFJn9jbIbeDU8NzeU= X-Google-Smtp-Source: AK7set8qg8dfd+oK713dF56K0nDlcXpb5nv5we9D9B+5y/+k98tGYvSOYpwiLf5Def4vPW4VGrD04A== X-Received: by 2002:a17:902:bc42:b0:19e:6a4c:9fa0 with SMTP id t2-20020a170902bc4200b0019e6a4c9fa0mr3087391plz.49.1677889918557; Fri, 03 Mar 2023 16:31:58 -0800 (PST) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:efb8:1cdc:a06f:1b53]) by smtp.gmail.com with ESMTPSA id kk15-20020a170903070f00b00189743ed3b6sm2071078plb.64.2023.03.03.16.31.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 16:31:57 -0800 (PST) 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 11/81] scsi: 3w-xxxx: Declare SCSI host template const Date: Fri, 3 Mar 2023 16:29:53 -0800 Message-Id: <20230304003103.2572793-12-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc0.216.gc4246ad0f0-goog In-Reply-To: <20230304003103.2572793-1-bvanassche@acm.org> References: <20230304003103.2572793-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 Sat Mar 4 00:29: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: 658939 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 A07F0C61DA4 for ; Sat, 4 Mar 2023 00:32:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229796AbjCDAcK (ORCPT ); Fri, 3 Mar 2023 19:32:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229714AbjCDAcE (ORCPT ); Fri, 3 Mar 2023 19:32:04 -0500 Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com [209.85.216.48]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 750116A1D4 for ; Fri, 3 Mar 2023 16:32:02 -0800 (PST) Received: by mail-pj1-f48.google.com with SMTP id qa18-20020a17090b4fd200b0023750b675f5so7855066pjb.3 for ; Fri, 03 Mar 2023 16:32:02 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677889922; 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=iv2MYHxmPTI/jJwEC1H6tK+1xBa3PT37cu8ep1jROuKcfSMqvLcObtreJiwE/F6EyV lS4uZj8CgSVrDnQQX3t3rLzbwpF8HH7GcnWnnxcsgIB88o5pj4Gm8dnbL2fLoQqpqtbX B07QXEr3Wecz2tQrWGPq0fbbJ1/fDcTgsmnPr/NmKYAXOhGkwXSy9zExFEBMLhKz8Q0B KsSPbe5no+rHMjQIwYgJFxZk612uC8IqtXQz804Gm9r2HmeDQsT19HC4VBWq9b2zeLFe IN59IV2HKUmGv4BC7/bC/VV17z2DmdEngSKstDRxPlYcUiHAPXMZgwCkZfKuMX8vSDCX TyjQ== X-Gm-Message-State: AO0yUKWHlShUho02zS81ahLJVePWeAHGsHu7wUxfK93l4kLPEgkQ3uB5 5Ze+NQYQnG9Y0pIsyUtEmFgq9wABoArc+g== X-Google-Smtp-Source: AK7set8nMP4gVYGggQ9xXIhkEjTo1pjcWWriKEClpKWkdCH/SjtO5Po8eMR07+2JoUzTNOzFcND4cA== X-Received: by 2002:a17:902:d4cf:b0:19c:eb9a:7712 with SMTP id o15-20020a170902d4cf00b0019ceb9a7712mr5043247plg.1.1677889921964; Fri, 03 Mar 2023 16:32:01 -0800 (PST) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:efb8:1cdc:a06f:1b53]) by smtp.gmail.com with ESMTPSA id kk15-20020a170903070f00b00189743ed3b6sm2071078plb.64.2023.03.03.16.32.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 16:32:01 -0800 (PST) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , "James E.J. Bottomley" Subject: [PATCH 13/81] scsi: a100u2w: Declare SCSI host template const Date: Fri, 3 Mar 2023 16:29:55 -0800 Message-Id: <20230304003103.2572793-14-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc0.216.gc4246ad0f0-goog In-Reply-To: <20230304003103.2572793-1-bvanassche@acm.org> References: <20230304003103.2572793-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 Sat Mar 4 00:29: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: 658938 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 08629C61DA4 for ; Sat, 4 Mar 2023 00:32:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229832AbjCDAcS (ORCPT ); Fri, 3 Mar 2023 19:32:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229644AbjCDAcI (ORCPT ); Fri, 3 Mar 2023 19:32:08 -0500 Received: from mail-pj1-f53.google.com (mail-pj1-f53.google.com [209.85.216.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 379736A07E for ; Fri, 3 Mar 2023 16:32:06 -0800 (PST) Received: by mail-pj1-f53.google.com with SMTP id me6-20020a17090b17c600b0023816b0c7ceso7881175pjb.2 for ; Fri, 03 Mar 2023 16:32:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677889925; 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=u+BJxeDANSJi43BFO0s34JdPyp1hmsI2fsC4v/LFmmbkSZkFZAI+gi7un6dWZrwYr5 WPBaXBqAyqQS96NBKA6ldS0u9YwLeyEMTO2rLva7LS+9A0ln5nT3uUHAhT3tt0es6Xfm e1nL3cYwHtr7ozPtITtCjhnIkX2zGlq3+f0o1AthfmFzh434HJy91jEFs3Sucq8uGc2w 7AI/2ueuEwDvN3omF3ujjV1CTfcbxCjdu+Mlg901/IDFIEyzP49G36cYtwty1+cAnVQd v5WnB6aKSO4YjUnBktfQcIKIDqc3BVZfFF47lVIZMBlo/h3FfAqf/m9Nf3TSvOdxn4Jw DlCg== X-Gm-Message-State: AO0yUKXptjLKeT71U/fqdU1Glpbdvn29yIJo/YxfLG8I++GyjEFpu5Kq HEy1aV+ugO0TQ58VQr5dAms= X-Google-Smtp-Source: AK7set+Q254KjibI8ybdogkg16y8pbYSj7ar0v+UsrV/Vjc/nNyPPUKm5UUstKEj1onOp6TcFEf4aw== X-Received: by 2002:a17:902:bc42:b0:19e:6a4c:9fa0 with SMTP id t2-20020a170902bc4200b0019e6a4c9fa0mr3087607plz.49.1677889925645; Fri, 03 Mar 2023 16:32:05 -0800 (PST) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:efb8:1cdc:a06f:1b53]) by smtp.gmail.com with ESMTPSA id kk15-20020a170903070f00b00189743ed3b6sm2071078plb.64.2023.03.03.16.32.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 16:32:04 -0800 (PST) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , "James E.J. Bottomley" Subject: [PATCH 15/81] scsi: a3000: Declare SCSI host template const Date: Fri, 3 Mar 2023 16:29:57 -0800 Message-Id: <20230304003103.2572793-16-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc0.216.gc4246ad0f0-goog In-Reply-To: <20230304003103.2572793-1-bvanassche@acm.org> References: <20230304003103.2572793-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 Sat Mar 4 00:29: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: 658937 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 CDD05C61DA4 for ; Sat, 4 Mar 2023 00:32:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229714AbjCDAcT (ORCPT ); Fri, 3 Mar 2023 19:32:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229794AbjCDAcK (ORCPT ); Fri, 3 Mar 2023 19:32:10 -0500 Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0237B6A1C4 for ; Fri, 3 Mar 2023 16:32:10 -0800 (PST) Received: by mail-pl1-f171.google.com with SMTP id p20so4493570plw.13 for ; Fri, 03 Mar 2023 16:32:09 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677889929; 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=ZBi3M94456H6L14ym2+GAdb7kpjkcQvpIErnsmQYbOyKj3VsGxeX0CmXTNWXqeqVG8 wVcd7EOoPootyE2geJaSCje50wR9k7bIAIBetjMg1XCoC2iSYH0AwaTY1TMxfAGzcJGN mHH1P2CivtUfjqKIzdahhtd6y/l8zR1TZsJaP/IsDX5+QA6ln1gzJ/aCtlBuTW5u2qNq uaA9JFLw2coHMm74wUBVuJtnezc5TLHVgPsqhV0bHEJa7qaDpQCTxfgg2HcOw2taGvID Vh5AM4makliFo0T8ASG3okYjdBCOYhAIsXMTsS/tNVO3n7i1UoM4585Zwg0Gy2t3jw/p BAaA== X-Gm-Message-State: AO0yUKX1lB3waQD5um+WQPXfagESRm5ThRBpV28AhNagUinsRgiXJQLU yd6QXxSMecT7oO933CwGR08= X-Google-Smtp-Source: AK7set+deCXkerOKTgGpXfzIKDcpM0Ml1cTVxEZwV7aivp0QPZhZZHUsUKc8USUEKVRf7hN/ez3qDw== X-Received: by 2002:a17:903:2344:b0:19e:6e29:2a8c with SMTP id c4-20020a170903234400b0019e6e292a8cmr4372240plh.5.1677889929485; Fri, 03 Mar 2023 16:32:09 -0800 (PST) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:efb8:1cdc:a06f:1b53]) by smtp.gmail.com with ESMTPSA id kk15-20020a170903070f00b00189743ed3b6sm2071078plb.64.2023.03.03.16.32.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 16:32:08 -0800 (PST) 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 17/81] scsi: advansys: Declare SCSI host template const Date: Fri, 3 Mar 2023 16:29:59 -0800 Message-Id: <20230304003103.2572793-18-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc0.216.gc4246ad0f0-goog In-Reply-To: <20230304003103.2572793-1-bvanassche@acm.org> References: <20230304003103.2572793-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 Sat Mar 4 00:30: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: 658936 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 338BEC61DA4 for ; Sat, 4 Mar 2023 00:32:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229822AbjCDAc3 (ORCPT ); Fri, 3 Mar 2023 19:32:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229815AbjCDAcO (ORCPT ); Fri, 3 Mar 2023 19:32:14 -0500 Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98C8A6A1C8 for ; Fri, 3 Mar 2023 16:32:13 -0800 (PST) Received: by mail-pl1-f180.google.com with SMTP id p6so4604468plf.0 for ; Fri, 03 Mar 2023 16:32:13 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677889933; 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=z08IfWsbwgYmbODIAUz8z5Qhm/EpRgop4sgW710Xa7F7RboCXBOB9I4Yu0eYnVx8Rd AsYyMBAdEN3yupH1tMzuOd9Y2Yd87CUkqpqdIl9x7fdIusFvSzAjnFH39ZsfBcU3DoOH M/W0DAa/60KnPlWO+Vu/84oZc2ah06ahkS8ua1JFsmpheKrk5/cmeTyAyY3BQm2DZgeV csir2JVyf5i4OdhvFDYgRCp+7HnQyexvgHK9U0X1q1G1FFnzAcnIJJI0ppQ9TdHcO2SU VQmAAE73Gi24F3oiB1U35O3LylKijaX30MhCbOjJWVPvFXXdU9qJ2ocY6spAvVKyejin 7+fw== X-Gm-Message-State: AO0yUKXwI/G960HRylFkVlEo3nWUOW5XbLo5SzuaYE5SJzqf1AzF3jix LISDTa6niniWYHvyGHRoA6w= X-Google-Smtp-Source: AK7set+eSjlB930of6GaKhGV/kZhsMp5mJEmmaUL5q5VJdjxj83+Cqjpqw/6D52UqzA96liCKYGL3w== X-Received: by 2002:a17:90b:3a82:b0:237:c5cc:15bf with SMTP id om2-20020a17090b3a8200b00237c5cc15bfmr3649980pjb.13.1677889933056; Fri, 03 Mar 2023 16:32:13 -0800 (PST) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:efb8:1cdc:a06f:1b53]) by smtp.gmail.com with ESMTPSA id kk15-20020a170903070f00b00189743ed3b6sm2071078plb.64.2023.03.03.16.32.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 16:32:12 -0800 (PST) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , "James E.J. Bottomley" Subject: [PATCH 19/81] scsi: aha1542: Declare SCSI host template const Date: Fri, 3 Mar 2023 16:30:01 -0800 Message-Id: <20230304003103.2572793-20-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc0.216.gc4246ad0f0-goog In-Reply-To: <20230304003103.2572793-1-bvanassche@acm.org> References: <20230304003103.2572793-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 Sat Mar 4 00:30: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: 658935 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 C2454C61DA3 for ; Sat, 4 Mar 2023 00:32:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229620AbjCDAcg (ORCPT ); Fri, 3 Mar 2023 19:32:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229888AbjCDAcc (ORCPT ); Fri, 3 Mar 2023 19:32:32 -0500 Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 135826A1C2 for ; Fri, 3 Mar 2023 16:32:29 -0800 (PST) Received: by mail-pj1-f43.google.com with SMTP id p3-20020a17090ad30300b0023a1cd5065fso3966261pju.0 for ; Fri, 03 Mar 2023 16:32:29 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677889948; 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=eGAtFpoWpz/OcncKuNsqhXl/J3Y5AN3EUnYkklVU1uo=; b=HFyZ0YKUdthHamjHvyo9XY7lrV9Hw0JfM4Ja9Klth1R39nRXQMP9YnDUSAwDwdFQef 6BAHOG1qGNauM3FDh9lqpYDgUEtlaxcwRlpae0x8w1EA12j8FiFe1OqaPWVuEzJkqtPp p8T3YX/uP6XPXRwdifObj+iKB2C++suX0/q7ovTUtD5gjxm9FLR9lPhZWQh7b98ylZMv sVzny4Wmh0xF5T46ve5eeyg60ofUxvRtWu6iWCzRxz4ImK3w97PZ17hJeurfz0mHEl/A QIP2ww+0cpS+1vTLn009vm++MGXaFNiQ6qtSpV5MIkMhOL6ZegZ8I2AdCQe+iVCrdIJ1 JGew== X-Gm-Message-State: AO0yUKXze3bxRBuCqEWLosTGjNL9Tk/k8p4guoYkEbhK7N8fYG281dHI VBQ0z3c6TXXslfcHPVdIq5M= X-Google-Smtp-Source: AK7set9By+xBrsBU4DdRKCf24GvLnC2g7TlUGv6XeZK6ya4238ptTqusnCoBu7xCV2c65ikB61i/HQ== X-Received: by 2002:a17:903:8cb:b0:19e:8e73:e977 with SMTP id lk11-20020a17090308cb00b0019e8e73e977mr3975915plb.67.1677889948432; Fri, 03 Mar 2023 16:32:28 -0800 (PST) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:efb8:1cdc:a06f:1b53]) by smtp.gmail.com with ESMTPSA id kk15-20020a170903070f00b00189743ed3b6sm2071078plb.64.2023.03.03.16.32.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 16:32:27 -0800 (PST) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , "James E.J. Bottomley" Subject: [PATCH 21/81] scsi: arcmsr: Declare SCSI host template const Date: Fri, 3 Mar 2023 16:30:03 -0800 Message-Id: <20230304003103.2572793-22-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc0.216.gc4246ad0f0-goog In-Reply-To: <20230304003103.2572793-1-bvanassche@acm.org> References: <20230304003103.2572793-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 d3fb8a9c1c39..32bc77200eaa 100644 --- a/drivers/scsi/arcmsr/arcmsr_hba.c +++ b/drivers/scsi/arcmsr/arcmsr_hba.c @@ -152,7 +152,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 Sat Mar 4 00:30: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: 658934 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 64FA1C61DA3 for ; Sat, 4 Mar 2023 00:32:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229862AbjCDAcj (ORCPT ); Fri, 3 Mar 2023 19:32:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229913AbjCDAce (ORCPT ); Fri, 3 Mar 2023 19:32:34 -0500 Received: from mail-pj1-f47.google.com (mail-pj1-f47.google.com [209.85.216.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14D326A403 for ; Fri, 3 Mar 2023 16:32:31 -0800 (PST) Received: by mail-pj1-f47.google.com with SMTP id ce8-20020a17090aff0800b0023a61cff2c6so3352596pjb.0 for ; Fri, 03 Mar 2023 16:32:31 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677889950; 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=V+9fUmF/RKUP2py03EfH55zg1M5gOQ6sT929QZ3obCgmqvlNS1QXrRfNHsoVUPhrA/ gX0yb0jbOK3sVzhC2j3xCB5tpSataoBhmYrf+gHnu85s4UfJDmFKdokYLMNrz3iakyIr P1GyBZoYe+Ksxe7+FdfPOZAIR6msayIKDzdi+3NyN6iK4p3eHP4XBCPjTTEeRyxn95eB kWlSb8qX+9oispScR/gQeVWCWP5ybWkG2dNODNmlnRh9Jv+9MWqBn4fh8dVnZsvsI+Gb cEjrXD0bYKE3k4qjpjMINuMQsbGQ1gxnZO3BguupYHCXd3RyUtcWbH9cew+KkD7Ud/qb dgJw== X-Gm-Message-State: AO0yUKXMWZt1msVKXBQc6K6IUsyDMU2jUh6qzl1ENyz1EOuBfzxsf0Jt 6vwy0VYG2q7H6RsbtXgC0X0= X-Google-Smtp-Source: AK7set//gHdlRcoi7QOeL5iQCnUF8hvNUJYTHYW0QXt3mfAyTSgge8xuCr3z4SwFpSf938S+CdKSsA== X-Received: by 2002:a17:902:ce92:b0:19e:27a1:dd94 with SMTP id f18-20020a170902ce9200b0019e27a1dd94mr4515179plg.35.1677889950166; Fri, 03 Mar 2023 16:32:30 -0800 (PST) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:efb8:1cdc:a06f:1b53]) by smtp.gmail.com with ESMTPSA id kk15-20020a170903070f00b00189743ed3b6sm2071078plb.64.2023.03.03.16.32.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 16:32:29 -0800 (PST) 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 22/81] scsi: acornscsi: Declare SCSI host template const Date: Fri, 3 Mar 2023 16:30:04 -0800 Message-Id: <20230304003103.2572793-23-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc0.216.gc4246ad0f0-goog In-Reply-To: <20230304003103.2572793-1-bvanassche@acm.org> References: <20230304003103.2572793-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 Sat Mar 4 00:30: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: 658933 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 2E1D7C61DA3 for ; Sat, 4 Mar 2023 00:32:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229836AbjCDAcu (ORCPT ); Fri, 3 Mar 2023 19:32:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229888AbjCDAck (ORCPT ); Fri, 3 Mar 2023 19:32:40 -0500 Received: from mail-pj1-f50.google.com (mail-pj1-f50.google.com [209.85.216.50]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 422926A1DE for ; Fri, 3 Mar 2023 16:32:38 -0800 (PST) Received: by mail-pj1-f50.google.com with SMTP id h17-20020a17090aea9100b0023739b10792so3937965pjz.1 for ; Fri, 03 Mar 2023 16:32:38 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677889958; 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=y7eXx3klMOvM3NHOcAHScfGHGyxwJQeBDMfZYxcWA18zyG15std9uM7Xe6KexhMI72 TqjxFgCXNC4UGE1u6vEMkg9nY0gdMb2vD49XhdM+cqUX8t3K9vezngkh1nX6EADAdwhM VVzFSThZE9hH4WSUsNoTCOv6ELxeO/zNCA1poaxTjdsxI0QN3Q5oJ0bhQc8WgJesoJ5w M/9+lMUEmKCuyN8hNtL5cPAjAxVgo2JOtOh13B8o6VYXIljty0gxSjYFNMQ5YTAQL09e o20S5HEeGhtfY85zW4RY/e7LKYkqoHW6S4VLaAeMVFSTH+6DgCJBB4dwyi4K9aVSsPf8 9oCw== X-Gm-Message-State: AO0yUKUkvItngQWdLAYqE9nw73apiGNpVC6T78/G5hdRl0JpshKdHROh XJlHx+xoDH4lvFiFgEx9cQ0= X-Google-Smtp-Source: AK7set/dDypiC/uSqaqnPJoJ04L+zczVpKjN2XFiROhVbmFyng2Q2KldjrQi94fckl1jqEhQnevzOw== X-Received: by 2002:a17:902:9f8e:b0:19d:7c2:3a47 with SMTP id g14-20020a1709029f8e00b0019d07c23a47mr3302052plq.67.1677889957725; Fri, 03 Mar 2023 16:32:37 -0800 (PST) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:efb8:1cdc:a06f:1b53]) by smtp.gmail.com with ESMTPSA id kk15-20020a170903070f00b00189743ed3b6sm2071078plb.64.2023.03.03.16.32.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 16:32:36 -0800 (PST) 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 26/81] scsi: eesox: Declare SCSI host template const Date: Fri, 3 Mar 2023 16:30:08 -0800 Message-Id: <20230304003103.2572793-27-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc0.216.gc4246ad0f0-goog In-Reply-To: <20230304003103.2572793-1-bvanassche@acm.org> References: <20230304003103.2572793-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 Sat Mar 4 00:30: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: 658932 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 BC47CC61DA4 for ; Sat, 4 Mar 2023 00:32:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229883AbjCDAcw (ORCPT ); Fri, 3 Mar 2023 19:32:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229906AbjCDAcm (ORCPT ); Fri, 3 Mar 2023 19:32:42 -0500 Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3063C6A1F3 for ; Fri, 3 Mar 2023 16:32:42 -0800 (PST) Received: by mail-pl1-f177.google.com with SMTP id ky4so4557878plb.3 for ; Fri, 03 Mar 2023 16:32:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677889962; 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=mCkcrBJAQe6NDGHRqqPlUuBJ+bQcqIPRz3qwYj6nSrrzBsirf0EgIjIOWRbp6WtFO2 hU/RtIgCJc98sA5nW0uhiUQFojZQIAOHoac/T8uUBUq6e4Du8mF32zWyWnOC0t6toLMC 0LsYFfRjD3nQco8i1dAXveJTTDogMfRXRAzLPASvbDhR1Ft8RuziTEYthhyj3AtZ/dqy 2O7KhX9W/5cA5F7p3dxBGXPJTU68jo6Uti63fLHbo5D9ccBTPQg26GKZObfWbxEEGhPg agINbdFF/QdxKXUtCuxxuRwIBl9+O19Z1KUp4HMQNWGjMe+SIEFParBakoFdVPZALG+X KT9Q== X-Gm-Message-State: AO0yUKXzBWuZ9EvSU7U7Hqr5YoX3HeKHZC9M6zN4aA824TMzle0YE2LL OlCNHHtn8+XcJP9FMXEokt8= X-Google-Smtp-Source: AK7set8dlpSWeDcuI9Z6JW28QEkIsoNw5oyZ50TZIi8QiJNbDC+qgaIENU6RK5gQFrHXkc2Z4kX84g== X-Received: by 2002:a17:902:c412:b0:19c:be03:d18b with SMTP id k18-20020a170902c41200b0019cbe03d18bmr5140538plk.22.1677889961859; Fri, 03 Mar 2023 16:32:41 -0800 (PST) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:efb8:1cdc:a06f:1b53]) by smtp.gmail.com with ESMTPSA id kk15-20020a170903070f00b00189743ed3b6sm2071078plb.64.2023.03.03.16.32.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 16:32:40 -0800 (PST) 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 28/81] scsi: powertec: Declare SCSI host template const Date: Fri, 3 Mar 2023 16:30:10 -0800 Message-Id: <20230304003103.2572793-29-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc0.216.gc4246ad0f0-goog In-Reply-To: <20230304003103.2572793-1-bvanassche@acm.org> References: <20230304003103.2572793-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 Sat Mar 4 00:30: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: 658931 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 50529C61DA3 for ; Sat, 4 Mar 2023 00:32:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229906AbjCDAcy (ORCPT ); Fri, 3 Mar 2023 19:32:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229918AbjCDAco (ORCPT ); Fri, 3 Mar 2023 19:32:44 -0500 Received: from mail-pj1-f41.google.com (mail-pj1-f41.google.com [209.85.216.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21C5C6A1D0 for ; Fri, 3 Mar 2023 16:32:44 -0800 (PST) Received: by mail-pj1-f41.google.com with SMTP id kb15so4377339pjb.1 for ; Fri, 03 Mar 2023 16:32:44 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677889963; 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=tQVGf9WzWJky8SvgVi1jyU2ZO3M2oEs3NZkARy3szNFGNzcTScPkejHtUkOkVzZM1s yE+kzLn5JHFtWthjHZl6a019HvIQ2lsPGmnJ6CxAbfXorSEwdoIOLP1Et3c/QYjr6qAq khQbg9QDPMPxh82XNAihQUb8WcB17I5AnQGxjObFuPb+mhHHr4Fz3e7Vcul0/EpEbM/9 UcoYVKdfKziDY9LU1BYWdNDf2oyYCtr9OtIPCaIsfjz6AI6Cup3HmRI0BQeqxGZv4TJS QYHXUDOSad3RsrWOIhaJXlcaOowokxZmw5aRtPAUbUxUdF59xcgx0D7FhTj4JKACKIz5 NKCg== X-Gm-Message-State: AO0yUKW2Ob5Cnu6g9EAFFFQizy3jz/fK58kfeXXM/m2VzEApRdd47muH V+MQHJE0pVN5HRMmGnvQ+4A= X-Google-Smtp-Source: AK7set8gCfmC04u0HZr9qLgbyG54sPXWrkRthmGHw62M0hMR17K4o8UAG9/MHs8kx2ThwTyOZ4zlaw== X-Received: by 2002:a17:903:124a:b0:198:adc4:22a4 with SMTP id u10-20020a170903124a00b00198adc422a4mr8053270plh.31.1677889963512; Fri, 03 Mar 2023 16:32:43 -0800 (PST) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:efb8:1cdc:a06f:1b53]) by smtp.gmail.com with ESMTPSA id kk15-20020a170903070f00b00189743ed3b6sm2071078plb.64.2023.03.03.16.32.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 16:32:42 -0800 (PST) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , "James E.J. Bottomley" Subject: [PATCH 29/81] scsi: atp870u: Declare SCSI host template const Date: Fri, 3 Mar 2023 16:30:11 -0800 Message-Id: <20230304003103.2572793-30-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc0.216.gc4246ad0f0-goog In-Reply-To: <20230304003103.2572793-1-bvanassche@acm.org> References: <20230304003103.2572793-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 Sat Mar 4 00:30: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: 658930 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 B6AA8C678D5 for ; Sat, 4 Mar 2023 00:32:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229944AbjCDAc4 (ORCPT ); Fri, 3 Mar 2023 19:32:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229929AbjCDAcu (ORCPT ); Fri, 3 Mar 2023 19:32:50 -0500 Received: from mail-pj1-f52.google.com (mail-pj1-f52.google.com [209.85.216.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5514D65441 for ; Fri, 3 Mar 2023 16:32:48 -0800 (PST) Received: by mail-pj1-f52.google.com with SMTP id h11-20020a17090a2ecb00b00237c740335cso3915774pjs.3 for ; Fri, 03 Mar 2023 16:32:48 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677889968; 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=S81BTNtl6zDUNeGjnRBq4b9ywX162URLjDiLADN+7ydQJXTidNmsmD43LSULU3CHy3 jytjSoyjd/NqtzCTCg2hqE7KFTNkgDlFo4lUNBo2jsKwmwawZXcl+kZJuoopnQLa5vcC sTJZAixE5Qb5FdAvw+TsafjMDHKkcOgV1IwuutcD6X8qhjSaFpJ9l98P8l9oKzG9lIxk Eu9loNiSfJ53dnQ+X/UQRnxD4leC8R/Ej5X6JiBa2A1IfnHmn2KDiLMHnTyaEFRabIh8 +CB3MGmfPmXe045DwqDqnZ7Xzv2ESsEMAyqT5AApdjrGrHsBTaY6ceLN4o4Fq/BWFcMW XV1g== X-Gm-Message-State: AO0yUKX+Y9DWeJNvNLaAAXkrCSOzx6f3wtm+MXzdNYkIhq6G9MBfREQS SGehGQ/sRjHlRDX6ggoiMp8= X-Google-Smtp-Source: AK7set93oakt+KyG/9V9/obtdnXB45Gcuna37eeQjhyQSSqtqLG6wDVXhUlcHfQHjwG2UIgaHsXD+Q== X-Received: by 2002:a17:902:ba83:b0:19d:14c:e590 with SMTP id k3-20020a170902ba8300b0019d014ce590mr2903929pls.9.1677889967772; Fri, 03 Mar 2023 16:32:47 -0800 (PST) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:efb8:1cdc:a06f:1b53]) by smtp.gmail.com with ESMTPSA id kk15-20020a170903070f00b00189743ed3b6sm2071078plb.64.2023.03.03.16.32.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 16:32:46 -0800 (PST) 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 31/81] scsi: dmx3191d: Declare SCSI host template const Date: Fri, 3 Mar 2023 16:30:13 -0800 Message-Id: <20230304003103.2572793-32-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc0.216.gc4246ad0f0-goog In-Reply-To: <20230304003103.2572793-1-bvanassche@acm.org> References: <20230304003103.2572793-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 Sat Mar 4 00:30: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: 658929 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 EFCB3C61DA3 for ; Sat, 4 Mar 2023 00:33:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229956AbjCDAdS (ORCPT ); Fri, 3 Mar 2023 19:33:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229929AbjCDAc6 (ORCPT ); Fri, 3 Mar 2023 19:32:58 -0500 Received: from mail-pj1-f50.google.com (mail-pj1-f50.google.com [209.85.216.50]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D93FCDFF for ; Fri, 3 Mar 2023 16:32:57 -0800 (PST) Received: by mail-pj1-f50.google.com with SMTP id h17-20020a17090aea9100b0023739b10792so3938431pjz.1 for ; Fri, 03 Mar 2023 16:32:57 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677889977; 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=pskKd2JMkoDuBqPRdWf1u0rvXR78ZYjmWGLIqxKEL628/d2S2eorCavptfF3bsN8kV wNbCgta/Lhwp6dUR2cO3VE6Bt0zMb1Q8HJHg2y/RP5tMQDcJnWeZIT3iN7wd17XXU4re 9p3ob1st4pQwzwXVC++Iq7v4pQuwlZxJASwGcGTe2yzNHpkxxx3PSUyYWi40zYUnUQOg Gkec5b3cAxL/6JiVIfXdsli+WHUBHT7dW93NVDp1LWIuI9R4IVqL0qxIIY5Veq5RBK6r bLl7WZI1d/Y7GO8O/NilazmxC7z+7AY2fx5Y/4G22dZsFLRqXimLzK5gfuAL65jvksmX kioA== X-Gm-Message-State: AO0yUKWCa/8KS3rc/+xtQut6kTGK1IUUh1IEsqRvAaqQ1F1/Kjvre+Cg 63bOz6983zYRC1xBPWEixFY= X-Google-Smtp-Source: AK7set9wmyBqiTlakM5ByMW/oLnNb5/jHRAM2s7/uJUrecB7fo/Sucw604ls7XuEQo/lcwoMFn8InQ== X-Received: by 2002:a17:903:24d:b0:19e:76b7:c7d2 with SMTP id j13-20020a170903024d00b0019e76b7c7d2mr4373487plh.26.1677889976821; Fri, 03 Mar 2023 16:32:56 -0800 (PST) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:efb8:1cdc:a06f:1b53]) by smtp.gmail.com with ESMTPSA id kk15-20020a170903070f00b00189743ed3b6sm2071078plb.64.2023.03.03.16.32.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 16:32:56 -0800 (PST) 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 33/81] scsi: esas2r: Declare SCSI host template const Date: Fri, 3 Mar 2023 16:30:15 -0800 Message-Id: <20230304003103.2572793-34-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc0.216.gc4246ad0f0-goog In-Reply-To: <20230304003103.2572793-1-bvanassche@acm.org> References: <20230304003103.2572793-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 Sat Mar 4 00:30: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: 658928 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 66775C61DA4 for ; Sat, 4 Mar 2023 00:33:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229775AbjCDAdb (ORCPT ); Fri, 3 Mar 2023 19:33:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229714AbjCDAdM (ORCPT ); Fri, 3 Mar 2023 19:33:12 -0500 Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80F3E234DB for ; Fri, 3 Mar 2023 16:33:01 -0800 (PST) Received: by mail-pl1-f172.google.com with SMTP id p6so4605599plf.0 for ; Fri, 03 Mar 2023 16:33:01 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677889981; 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=3lLHpvvHQ2FtKbeTHghS/zcx4B7FP+EHrdLkmxgOnpmLafPSVw1krmgbRxNlZgqnDv deWCsIZDZikygri6J9Zaymg5PBf17jrtz864skIg8o6Qrq2rU+Bo+JKC5qs/Mi9u8KAH 9GdO+1meiyC4z0JbVcWQy14jXxB+hDeN9x7j0/QFz+4HUPIitUeS0JTD3JLe/LX5HiCC AGVl0GdiJSNxP1CbvoMnn+mX3xdREhafEWPApn/4BFkmwdpSINygPDT/QxuuVEh4LxgZ 96DjvNOJTlxnC/C1Mgq7sr6Ovs/qn/6nEeWsHXoNNUvFuHOYDy/qQEE1g2mNGFcbg0kE EfHw== X-Gm-Message-State: AO0yUKXfZqwU9tGAZBncSXEffLqSKf9BMdWYexGlpBmHecZmAhTyi6p4 i2ZSDUOcdmkDBhe/nyzrP9Wqz/q/ROtipQ== X-Google-Smtp-Source: AK7set9bgFi6+Z0hFgUu+cWoRQyYQUpppgA5ErQUFhmKeF9aJ49rAnvp8cSARl5T2G5aGZl3g8R+bg== X-Received: by 2002:a17:903:1112:b0:19c:f1bd:e915 with SMTP id n18-20020a170903111200b0019cf1bde915mr4539967plh.25.1677889980840; Fri, 03 Mar 2023 16:33:00 -0800 (PST) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:efb8:1cdc:a06f:1b53]) by smtp.gmail.com with ESMTPSA id kk15-20020a170903070f00b00189743ed3b6sm2071078plb.64.2023.03.03.16.32.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 16:32:59 -0800 (PST) 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 35/81] scsi: fcoe: Declare SCSI host template const Date: Fri, 3 Mar 2023 16:30:17 -0800 Message-Id: <20230304003103.2572793-36-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc0.216.gc4246ad0f0-goog In-Reply-To: <20230304003103.2572793-1-bvanassche@acm.org> References: <20230304003103.2572793-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 Sat Mar 4 00:30: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: 658927 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 BBAF3C61DA4 for ; Sat, 4 Mar 2023 00:33:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229946AbjCDAdm (ORCPT ); Fri, 3 Mar 2023 19:33:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229947AbjCDAdQ (ORCPT ); Fri, 3 Mar 2023 19:33:16 -0500 Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA08D10257 for ; Fri, 3 Mar 2023 16:33:04 -0800 (PST) Received: by mail-pl1-f182.google.com with SMTP id h8so4511496plf.10 for ; Fri, 03 Mar 2023 16:33:04 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677889984; 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=a+Q5foZheIp6YAvKEnKSuzqWLSeFAP5O0WfpbaRL5nne72S5WEMujD6f4q2gVV3YPL irxvyQBjxCZcNfPTQxsOHtZy/6QPYkizs+GkJf6zZuQ8rg+/V509FZaFVZv1WIW+wQxQ oWj82j9LI8HwceQpbEGhxWPisaNHiS/rXW6Kg6sJA2jSMKnujKIRSVN54HsoFdfMAXKC UUd3+BUDbqtaofcV0ZA+iCOO0350jilBKcmQYHtP/n6xUJ8vhmm03KxOT/UFR/Mp0gkM WaYStzQJjelee/WtySj3BV6TGY0C/nohBNAx72YX4CSgvuo8KcHOYmbRS6dl/kEsICEn L2Dw== X-Gm-Message-State: AO0yUKWhJF9R3yW3LsgbKHXigwohemVna48/ypXDXPMeFenXm2qQBEni Smn/AIFr/tY+9nyEqVRVcUc= X-Google-Smtp-Source: AK7set8CMNUFH/V8n0z18l+FP+6W1yJ9PdGmJO60TqkGHJDxdCPuQIqpoez95hgVDL06yT32H0EQpg== X-Received: by 2002:a17:903:230d:b0:19a:a546:2959 with SMTP id d13-20020a170903230d00b0019aa5462959mr8356580plh.19.1677889984226; Fri, 03 Mar 2023 16:33:04 -0800 (PST) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:efb8:1cdc:a06f:1b53]) by smtp.gmail.com with ESMTPSA id kk15-20020a170903070f00b00189743ed3b6sm2071078plb.64.2023.03.03.16.33.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 16:33:03 -0800 (PST) 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 37/81] scsi: qedf: Declare host template const Date: Fri, 3 Mar 2023 16:30:19 -0800 Message-Id: <20230304003103.2572793-38-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc0.216.gc4246ad0f0-goog In-Reply-To: <20230304003103.2572793-1-bvanassche@acm.org> References: <20230304003103.2572793-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 Sat Mar 4 00:30: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: 658926 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 0E0AFC61DA3 for ; Sat, 4 Mar 2023 00:33:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229883AbjCDAdu (ORCPT ); Fri, 3 Mar 2023 19:33:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229876AbjCDAd1 (ORCPT ); Fri, 3 Mar 2023 19:33:27 -0500 Received: from mail-pj1-f50.google.com (mail-pj1-f50.google.com [209.85.216.50]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BF1D92 for ; Fri, 3 Mar 2023 16:33:08 -0800 (PST) Received: by mail-pj1-f50.google.com with SMTP id x20-20020a17090a8a9400b00233ba727724so6670274pjn.1 for ; Fri, 03 Mar 2023 16:33:08 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677889987; 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=U9/iYmlq2kClonNQOG3oWFNCbwKf9Y097Ve/o5g0TU6VqiMP+WRTAOCpmr9Lyc+jyO LyxOLzwR+MTzXBHHrHI6Zj/u+FiHC/RHd6v7/3KZa73D2CGi7q04B5zQxMwsLww7SwlF 4aovcyV3WRICl6aU2rtAWU5FJh0dRPcx6l3z3u0niOyVAgt0fmDj8+LbAAfPkNCDTikq O9vnWjxMpr4qrIQxiaBLuAsjF0mnSB9Emf28QU1uuYOpqFkJspvDzZgvRuFw9oOPoVMA ivSZNY3ZLiOFYJ7CjAbFctkZItrn1k7vcUwnMH9AofMY7McJnVCxkZzbYe+V7tWTtwqx oe3A== X-Gm-Message-State: AO0yUKUOKsvO7TvH4OCEVQ6hC75q0tZwdY983/rRIj1K1BmvFjb41ohh By82EUNvTYwqygvT4ZrBDLM= X-Google-Smtp-Source: AK7set96zSrO0SF5K5gn1NNbDltivsGuXY1OJIdOas2TCyuwHXxXI5Hsmi9UwJHGNRU2RqdXPbVAAA== X-Received: by 2002:a17:902:7007:b0:19d:47b:67c8 with SMTP id y7-20020a170902700700b0019d047b67c8mr2966851plk.48.1677889987390; Fri, 03 Mar 2023 16:33:07 -0800 (PST) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:efb8:1cdc:a06f:1b53]) by smtp.gmail.com with ESMTPSA id kk15-20020a170903070f00b00189743ed3b6sm2071078plb.64.2023.03.03.16.33.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 16:33:06 -0800 (PST) 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 39/81] scsi: NCR5380: Declare SCSI host template const Date: Fri, 3 Mar 2023 16:30:21 -0800 Message-Id: <20230304003103.2572793-40-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc0.216.gc4246ad0f0-goog In-Reply-To: <20230304003103.2572793-1-bvanassche@acm.org> References: <20230304003103.2572793-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 Sat Mar 4 00:30: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: 658925 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 01A47C61DA3 for ; Sat, 4 Mar 2023 00:34:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229928AbjCDAeB (ORCPT ); Fri, 3 Mar 2023 19:34:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229934AbjCDAdj (ORCPT ); Fri, 3 Mar 2023 19:33:39 -0500 Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F19865463 for ; Fri, 3 Mar 2023 16:33:11 -0800 (PST) Received: by mail-pl1-f180.google.com with SMTP id a9so4502063plh.11 for ; Fri, 03 Mar 2023 16:33:11 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677889991; 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=v9RkBn0LTy1JAQQfdM/3tBE7988+LT+cfBkwDVj2e7g=; b=tPbLpcNo4hH7BOF+ZZGaNeWwnhEHNPMox4doAXBfOUU+eQV463rsYEUFc2h/1bJEKH 6f8EX2BrxCEwdDDJJzcZIfUJ4ZmlQBH4oeHgsMFWBSR/RgprdK1JPALIh78BUnDfoMa6 ArK6aTf3xvDcHm3QBB5N92gYu1UGAyqWvvhFrqfRmw8uKwR2NrndKvFM3yV3mhoOykbE Bh2M/nCwUpO6sjiwTZtPn+NuBe06og+TTrVPVveOhc5RtaBeJA6VTrY0Kc8/U6RbDEWl iiByVQGfdF2J75+pzy99hOdud88SKmMEVAWmy3Czo6OA181qgbD+6PTtJtawh+Vei+Hc BiYQ== X-Gm-Message-State: AO0yUKUJQygnbPrAoh8k1Xdpx8jGe5HLcapgpEpnKPqH8NvIFS3AYbSO GXEBzc3e5s8NS/R4lVDJdgD3LKRMUWdyhA== X-Google-Smtp-Source: AK7set8/1ecxf/LJYy1UeKdoN983Kw1USmIJTPS9YwcuE9VVFMQtYxKibK9FLk28epUwgNh4x5OElw== X-Received: by 2002:a17:903:22ce:b0:19d:90f:6c6c with SMTP id y14-20020a17090322ce00b0019d090f6c6cmr4645828plg.17.1677889990758; Fri, 03 Mar 2023 16:33:10 -0800 (PST) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:efb8:1cdc:a06f:1b53]) by smtp.gmail.com with ESMTPSA id kk15-20020a170903070f00b00189743ed3b6sm2071078plb.64.2023.03.03.16.33.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 16:33:10 -0800 (PST) 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 41/81] scsi: hisi_sas: Declare SCSI host template const Date: Fri, 3 Mar 2023 16:30:23 -0800 Message-Id: <20230304003103.2572793-42-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc0.216.gc4246ad0f0-goog In-Reply-To: <20230304003103.2572793-1-bvanassche@acm.org> References: <20230304003103.2572793-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/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 6f8a52a1b808..6ba59ab8c1db 100644 --- a/drivers/scsi/hisi_sas/hisi_sas.h +++ b/drivers/scsi/hisi_sas/hisi_sas.h @@ -344,7 +344,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 0c3fcb807806..d65ba65b6dac 100644 --- a/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c +++ b/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c @@ -3216,7 +3216,7 @@ static void hisi_sas_map_queues(struct Scsi_Host *shost) blk_mq_pci_map_queues(qmap, hisi_hba->pci_dev, BASE_VECTORS_V3_HW); } -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 Sat Mar 4 00:30: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: 658924 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 1B7E1C61DA4 for ; Sat, 4 Mar 2023 00:34:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229926AbjCDAeK (ORCPT ); Fri, 3 Mar 2023 19:34:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229985AbjCDAdp (ORCPT ); Fri, 3 Mar 2023 19:33:45 -0500 Received: from mail-pj1-f47.google.com (mail-pj1-f47.google.com [209.85.216.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7AEDF83EC for ; Fri, 3 Mar 2023 16:33:14 -0800 (PST) Received: by mail-pj1-f47.google.com with SMTP id l1so4372232pjt.2 for ; Fri, 03 Mar 2023 16:33:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677889994; 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=60XQYqcF2iyuVEQJG5b9rmOHMkoEoNYkdSR3w4rPZuPJ9OmhMAU7vaidD1Xz9EeCFA ifnG/KP92rGKpgmz+MwrDdDjtr11tx7c4CTBdAZzihRwCkB+6X//0J888kqumtxuYURT t6AOLw2xLyfbfb4De5kmVeGhq4NwhN4wFAICQmI4q5RuPApv7afWYVAEBtB+fn3ClD+s 5FVsvnlYrx+AQZkwEJRmu5AGHqeuY+sUApH5HAk9CDe/xzHXGNnGG1SOYafV0evoTYqm gLxpuWlxeHqLAQ8f/Fd1soUf8DXSKcYGtNCvQbCTUByKP9jKVl/bi3AWyKg/iDrxbQ7t fGHQ== X-Gm-Message-State: AO0yUKXJlNiBUwOqk/aFQ60UnddtadvF9NByEaNml/xY3maUcSXiOK/O pw4sYWJTdYSey7kjlYDYhu4Cz48A7+odWQ== X-Google-Smtp-Source: AK7set+D3WafH14WtXlG5kUQWdhq+p2M8+To0KrJHv2HWbZqkzWfYQo8+qbMOqknkx0E9hHwJ8QMpw== X-Received: by 2002:a17:903:485:b0:19e:898f:8815 with SMTP id jj5-20020a170903048500b0019e898f8815mr3060789plb.9.1677889994172; Fri, 03 Mar 2023 16:33:14 -0800 (PST) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:efb8:1cdc:a06f:1b53]) by smtp.gmail.com with ESMTPSA id kk15-20020a170903070f00b00189743ed3b6sm2071078plb.64.2023.03.03.16.33.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 16:33:13 -0800 (PST) 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 43/81] scsi: hptiop: Declare SCSI host template const Date: Fri, 3 Mar 2023 16:30:25 -0800 Message-Id: <20230304003103.2572793-44-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc0.216.gc4246ad0f0-goog In-Reply-To: <20230304003103.2572793-1-bvanassche@acm.org> References: <20230304003103.2572793-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 Sat Mar 4 00:30: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: 658923 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 BE0E1C61DA3 for ; Sat, 4 Mar 2023 00:34:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229926AbjCDAeR (ORCPT ); Fri, 3 Mar 2023 19:34:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229876AbjCDAdu (ORCPT ); Fri, 3 Mar 2023 19:33:50 -0500 Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5D0E65110 for ; Fri, 3 Mar 2023 16:33:21 -0800 (PST) Received: by mail-pl1-f181.google.com with SMTP id u5so4524626plq.7 for ; Fri, 03 Mar 2023 16:33:21 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677889996; 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=rAnNmf/vUnMbW3pIRgaKZexCYtM4BMG6dAuOPLNKlXg=; b=XtMzavEPoIT+lrvhWUWYPSew8k7i6O7OjUjRVgVwpjfiatjeYEPTzbROZ8QjARYQ9Q TWQkkaa0OTc0AOUulLHnby7uqlPVJHJsmtoz1RlaVlas7kgMNp/N7l6SgMAu/po2iRO6 TO043Hpiya9wMmcFc9ViEHWME+pF4jhxv8EdS3Fq7FZHIDiRnkFgkyqLruyIreCxuiV6 r258UpCM8xizKa8C5OmLrTKQus7LHFbFZuyZiuI5znEj+iPZRCmjYvzbQtU5axDYSbyQ XUmFQUP2Q8e9qDYKRPm49BppVZXeLg0hOXlUEF9mZOzz0UosYVuXDPuoHP1jg2bZlBvi j1uw== X-Gm-Message-State: AO0yUKWzzDEvMYDwYCa3UpSOV4BZgDn/87tp291RzlmhwHtG3XoOgc+m ZEZFASxxe9V68g32WhlyIUabax7Eftp6Aw== X-Google-Smtp-Source: AK7set8EyVLqm3bN91kppuIzGophImvr2FsvH8787Byan/wLp/yc3UkdhE8g+YS1Nt3SgjUHYiBCEg== X-Received: by 2002:a17:903:492:b0:19e:773b:2215 with SMTP id jj18-20020a170903049200b0019e773b2215mr3364777plb.36.1677889996112; Fri, 03 Mar 2023 16:33:16 -0800 (PST) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:efb8:1cdc:a06f:1b53]) by smtp.gmail.com with ESMTPSA id kk15-20020a170903070f00b00189743ed3b6sm2071078plb.64.2023.03.03.16.33.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 16:33:15 -0800 (PST) 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 44/81] scsi: ibmvfc: Declare SCSI host template const Date: Fri, 3 Mar 2023 16:30:26 -0800 Message-Id: <20230304003103.2572793-45-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc0.216.gc4246ad0f0-goog In-Reply-To: <20230304003103.2572793-1-bvanassche@acm.org> References: <20230304003103.2572793-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/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 Sat Mar 4 00:30: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: 658922 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 8CB0EC61DA3 for ; Sat, 4 Mar 2023 00:34:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230025AbjCDAe0 (ORCPT ); Fri, 3 Mar 2023 19:34:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229651AbjCDAd5 (ORCPT ); Fri, 3 Mar 2023 19:33:57 -0500 Received: from mail-pj1-f41.google.com (mail-pj1-f41.google.com [209.85.216.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48112CDD6 for ; Fri, 3 Mar 2023 16:33:37 -0800 (PST) Received: by mail-pj1-f41.google.com with SMTP id ce8-20020a17090aff0800b0023a61cff2c6so3353577pjb.0 for ; Fri, 03 Mar 2023 16:33:37 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677890001; 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=+lC38EPsxUPXcaJi0REX2ZgvsOSb63hqUe/I9A1Tq4M=; b=WNNnzad2MS4Fa7CxkHHxk9l5wUy+aQWDIa6h5wVlCcbVUj3q0G1H4ZxLaLEbYZeNHJ MpPXiApssUuo3K5ZpeeH1dNg+Zudwq0NI+gpxSrCSJ5iKgSYhvMW8lgQAWH2xyTTRo/X r6aJ6Co69pv9ad3v4j8LDAgAoCPisyyTKJJzevYbtoZ7lhzkHNBpiXMpXnnhmlqV44Fq VZTP7SxbuR4dMpfv4SnYfMTIKaz2pEv9eZil6v6Z/e+k6KXlbMq80iLvvDh8l+l2Rpoe Z+cNkImACwkMorr4TV5pS+00nr6ROeZqwQMhzbcV93i+Wl3Vi6493BuwRZfj7PVs4gB6 Hijg== X-Gm-Message-State: AO0yUKUx+saB+aN16+qghzm1ohY2WqBt8bMYRjUfZHp1GeFAGJhLLdJH jiftKZ6pRNWTlZS9mcIDw4w= X-Google-Smtp-Source: AK7set+CaMbMxO7yrXzlnDe07DLGcDVUbU5Mdb/jUhtJU+meDJ8yFecEG9TQlEcHTeeIr+K+D2559g== X-Received: by 2002:a17:903:120b:b0:19c:bcb7:a3f4 with SMTP id l11-20020a170903120b00b0019cbcb7a3f4mr4418942plh.54.1677890000867; Fri, 03 Mar 2023 16:33:20 -0800 (PST) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:efb8:1cdc:a06f:1b53]) by smtp.gmail.com with ESMTPSA id kk15-20020a170903070f00b00189743ed3b6sm2071078plb.64.2023.03.03.16.33.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 16:33:20 -0800 (PST) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , Brian King , "James E.J. Bottomley" Subject: [PATCH 47/81] scsi: ipr: Declare SCSI host template const Date: Fri, 3 Mar 2023 16:30:29 -0800 Message-Id: <20230304003103.2572793-48-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc0.216.gc4246ad0f0-goog In-Reply-To: <20230304003103.2572793-1-bvanassche@acm.org> References: <20230304003103.2572793-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/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 Sat Mar 4 00:30: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: 658921 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 C5FD8C64EC4 for ; Sat, 4 Mar 2023 00:34:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230032AbjCDAej (ORCPT ); Fri, 3 Mar 2023 19:34:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229955AbjCDAeH (ORCPT ); Fri, 3 Mar 2023 19:34:07 -0500 Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com [209.85.216.48]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4F93252BD for ; Fri, 3 Mar 2023 16:33:49 -0800 (PST) Received: by mail-pj1-f48.google.com with SMTP id ce8-20020a17090aff0800b0023a61cff2c6so3353870pjb.0 for ; Fri, 03 Mar 2023 16:33:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677890016; 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=GAFgvC095AvP9n2Qg8w5C70eHe5y8GhpNNcw4ZRcBEA=; b=fhd+aJ2KmdqnYKxE/PFZ0zI/FIwXpUFYMyaMWWrvfUYas4BMCHnBwigtEmIru3PHZZ IY0Wt+wF0w2SrZ1YyIDvTx5u4gI3xf5DvR3hxzgcYY5JIPbI31lK0Zu8rKD8BUQi9o5v MAtq4bTsMzYswboDrzE+HcyUS2AHyUQ5K64QvXx1vXViWjhLe8RJFfWxcmqIr1xSWGt3 A8tErBo5iYw7mvDIqgQeSKWWJHMIEFZBzLxQfKXYN3455OGLlMtBxItoaaZxcYCtGfm/ Oxu5LFLJrQ89VOb/Q+u+ou9FY8Cfa6EWITR0mxIM+kUhBZHoTrmJWCEZYu1M6VtTpGje /OcA== X-Gm-Message-State: AO0yUKWWwx/dNTiC3ceaUCwhIraXlTOff9PLYJgNnhhIcSVXmKIoVTaB WIT31jSEI6U+eLoqMhhttnp/8DRwGRAlJw== X-Google-Smtp-Source: AK7set9B7hm0BA3jvWeArSLembjFi69lRycbqGzzzvLuDOhKLqWKJqcY21geUJ5kUShfMUsaK4nKrw== X-Received: by 2002:a17:902:d4cc:b0:19a:b033:2bb0 with SMTP id o12-20020a170902d4cc00b0019ab0332bb0mr4462938plg.46.1677890015799; Fri, 03 Mar 2023 16:33:35 -0800 (PST) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:efb8:1cdc:a06f:1b53]) by smtp.gmail.com with ESMTPSA id kk15-20020a170903070f00b00189743ed3b6sm2071078plb.64.2023.03.03.16.33.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 16:33:35 -0800 (PST) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , 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 , Artur Paszkiewicz , Lee Duncan , Chris Leech , Mike Christie , Jesper Juhl Subject: [PATCH 48/81] scsi: iscsi: Declare SCSI host template const Date: Fri, 3 Mar 2023 16:30:30 -0800 Message-Id: <20230304003103.2572793-49-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc0.216.gc4246ad0f0-goog In-Reply-To: <20230304003103.2572793-1-bvanassche@acm.org> References: <20230304003103.2572793-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 Reviewed-by: Mike Christie --- 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/isci/init.c | 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 +- 12 files changed, 15 insertions(+), 15 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 50a577ac3bb4..5d416507947b 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/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, 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 Sat Mar 4 00:30: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: 658920 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 C0B24C61DA3 for ; Sat, 4 Mar 2023 00:34:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229956AbjCDAem (ORCPT ); Fri, 3 Mar 2023 19:34:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229976AbjCDAeJ (ORCPT ); Fri, 3 Mar 2023 19:34:09 -0500 Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58BA765465 for ; Fri, 3 Mar 2023 16:33:50 -0800 (PST) Received: by mail-pl1-f178.google.com with SMTP id x11so3265pln.12 for ; Fri, 03 Mar 2023 16:33:50 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677890019; 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=D4THt1XWxiaNA5/lNNqEHujl/AmU30SJrb0Ru4wIejY=; b=JZYxyXDJQmfDa0NZlslecGIbj9R8FRGKmdWGoOho7NJKNO6BKtmKaE+8bTJFPmUhJf cYPKCMjHfHF+7OQNRa46QW6G4EYXt/+LANE5cFVvSnUjpZG7iMl5KjY2CNbkUrDtK+YR 9S1cF7PxfLa+q0leJenEAU2+tgHYxl1Lr6iZUc2h13ctsiWeUm/YBgSTrdOn5u8/YV9a bvoDJ5gviK+gPBXbNF6ZOjG076AYt94h9Qj9IS5IYJNTi2DIh0fL/lu+3sa62h6LQJK4 UGLvAMxnsnQXUW44U+blCQuq2i+WKOp/WB7eGnYzanjZaQkbSjvUUK0DUUpgceO8QxEc RwMg== X-Gm-Message-State: AO0yUKVFjGkDE3+WXG5CPw3qPmB1au85a4I3jOyNvpOK2/LT2D1mZpJ6 w9kiEyDa4uyWJwOFADkshIY= X-Google-Smtp-Source: AK7set8pop2XCqck+rU1Vzzlq5/9lhr3HF3fDnO9eEHCUXSfe2KPPNpWClrxWVAkguuuoy5XJCXLyw== X-Received: by 2002:a17:902:e54a:b0:19d:1834:92b9 with SMTP id n10-20020a170902e54a00b0019d183492b9mr3744198plf.56.1677890019477; Fri, 03 Mar 2023 16:33:39 -0800 (PST) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:efb8:1cdc:a06f:1b53]) by smtp.gmail.com with ESMTPSA id kk15-20020a170903070f00b00189743ed3b6sm2071078plb.64.2023.03.03.16.33.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 16:33:38 -0800 (PST) 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 50/81] scsi: mac_scsi: Declare SCSI host template const Date: Fri, 3 Mar 2023 16:30:32 -0800 Message-Id: <20230304003103.2572793-51-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc0.216.gc4246ad0f0-goog In-Reply-To: <20230304003103.2572793-1-bvanassche@acm.org> References: <20230304003103.2572793-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/mac_scsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/mac_scsi.c b/drivers/scsi/mac_scsi.c index 2e511697fce3..1d13f1ebc094 100644 --- a/drivers/scsi/mac_scsi.c +++ b/drivers/scsi/mac_scsi.c @@ -422,7 +422,7 @@ static int macscsi_dma_residual(struct NCR5380_hostdata *hostdata) #define DRV_MODULE_NAME "mac_scsi" #define PFX DRV_MODULE_NAME ": " -static struct scsi_host_template mac_scsi_template = { +struct scsi_host_template mac_scsi_template = { .module = THIS_MODULE, .proc_name = DRV_MODULE_NAME, .name = "Macintosh NCR5380 SCSI", From patchwork Sat Mar 4 00:30: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: 658919 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 E2991C64EC4 for ; Sat, 4 Mar 2023 00:34:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230021AbjCDAew (ORCPT ); Fri, 3 Mar 2023 19:34:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230001AbjCDAeQ (ORCPT ); Fri, 3 Mar 2023 19:34:16 -0500 Received: from mail-pj1-f44.google.com (mail-pj1-f44.google.com [209.85.216.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9FAE3D33A for ; Fri, 3 Mar 2023 16:33:56 -0800 (PST) Received: by mail-pj1-f44.google.com with SMTP id qa18-20020a17090b4fd200b0023750b675f5so7857617pjb.3 for ; Fri, 03 Mar 2023 16:33:56 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677890025; 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=dfUNV5XAjPKJxQkNcgHdjbQdBWQvUazYP8mFmRY6Fik=; b=Z0Lt2NHweJ7mX7szMR8hYZrle57mdOvP0sx2NK8mrUIKWrepud4hr711PlwcYioIIj b5N1HeBPZua944a2GhxxLPbrG78wqnwMiel/+7vzxXjc0wnDtDxfPBxLTjCEkMbj8eZ5 C5k3OSxzI7jl/Xsvg0tbq8dnjLYPDGqwcQvzUIDsgCiFbHgHYbVp/nYUp9lWSGO39ZpC MauDVqeEkbiulRPLgFjbpr9TQYzd0y7pLjvj+aBgpPQ8Ya6KaGsQeFBzE05cubB5/Qsy UsuRt/gO2cvCxP2/Dbp1KLR4HW0wniGuDs9UuStdE2lFt2d1nOrWw0nlZzdIC0501Fai RZdw== X-Gm-Message-State: AO0yUKVyFWw5kemljW/hhcyWI8c5viW4TVRhX8d6Cl8WMxOMqvT04lwd Cw9IpLz6Wpo/8QdRlbkWluMwfQj2oPF+Xg== X-Google-Smtp-Source: AK7set8zViMRivIsyr7ZaifsqIEBabhxD9sMDlTrS1mTvOwRQdb/kouVBm8MrNnRax8cN5VPZpt+sg== X-Received: by 2002:a17:902:b786:b0:19d:ab83:ec70 with SMTP id e6-20020a170902b78600b0019dab83ec70mr3079288pls.45.1677890025557; Fri, 03 Mar 2023 16:33:45 -0800 (PST) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:efb8:1cdc:a06f:1b53]) by smtp.gmail.com with ESMTPSA id kk15-20020a170903070f00b00189743ed3b6sm2071078plb.64.2023.03.03.16.33.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 16:33:44 -0800 (PST) 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 53/81] scsi: mpi3mr: Declare SCSI host template const Date: Fri, 3 Mar 2023 16:30:35 -0800 Message-Id: <20230304003103.2572793-54-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc0.216.gc4246ad0f0-goog In-Reply-To: <20230304003103.2572793-1-bvanassche@acm.org> References: <20230304003103.2572793-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 6eaeba41072c..207a607d8997 100644 --- a/drivers/scsi/mpi3mr/mpi3mr_os.c +++ b/drivers/scsi/mpi3mr/mpi3mr_os.c @@ -4757,7 +4757,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 Sat Mar 4 00:30: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: 658918 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 38058C61DA4 for ; Sat, 4 Mar 2023 00:34:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229969AbjCDAe6 (ORCPT ); Fri, 3 Mar 2023 19:34:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229886AbjCDAeY (ORCPT ); Fri, 3 Mar 2023 19:34:24 -0500 Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E687765457 for ; Fri, 3 Mar 2023 16:33:59 -0800 (PST) Received: by mail-pl1-f173.google.com with SMTP id i10so4516224plr.9 for ; Fri, 03 Mar 2023 16:33:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677890027; 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=X5og9in4ZDwqfZwJ0CvUxtEC6V3f2+08GwjGlKQ+E7A=; b=EtpjH+EpwbfL1gmAuuXzW5ujnc7C+v80UjfbGUCqq1bkFJ9L4QasbcDO9yNYcBhxpY 4Xk+EpevivhrfnxK4ZiEIP719KzyAX5RLkq+xYlcRbXRy+77mtx57nBv8Zw5Hy4W0eTF 8jLlD7PAcOnoRLz4hxBOt10gv6UEN2ArwDjcY0m9tgfULWa+paubwT3+8DmhsWopIjro r1NewkTa+P7r3LXRMBoej4A1ZnUf0P/xygqfYyf3+BrqIjF9eDqCZYkP6tovQMvcVsnV +l/U8YgOqrodfnHuIPpiL4AePD+j08phlQRE+TMI9omrp80rlq/+ZeZTFQmkrihn/1WR uF4g== X-Gm-Message-State: AO0yUKXVSIfCg8h5gZ98+ypMzHxxZ4KB2CLpRfPieAZZIKq2Zy6ZYa7R 8RsNAFcYUpf21+4/Rk1VzbA= X-Google-Smtp-Source: AK7set/EqEp/gUm+ay6dji/e8HsOgNQYoJ4nAtiyLScRty1++6DUFwTLlGeFRg9weCHj5ubyke6I6Q== X-Received: by 2002:a17:903:2344:b0:19b:64bb:d546 with SMTP id c4-20020a170903234400b0019b64bbd546mr3838785plh.18.1677890027308; Fri, 03 Mar 2023 16:33:47 -0800 (PST) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:efb8:1cdc:a06f:1b53]) by smtp.gmail.com with ESMTPSA id kk15-20020a170903070f00b00189743ed3b6sm2071078plb.64.2023.03.03.16.33.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 16:33:46 -0800 (PST) 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 54/81] scsi: mpt3sas: Declare SCSI host template const Date: Fri, 3 Mar 2023 16:30:36 -0800 Message-Id: <20230304003103.2572793-55-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc0.216.gc4246ad0f0-goog In-Reply-To: <20230304003103.2572793-1-bvanassche@acm.org> References: <20230304003103.2572793-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 8e24ebcebfe5..7e4a97c61873 100644 --- a/drivers/scsi/mpt3sas/mpt3sas_scsih.c +++ b/drivers/scsi/mpt3sas/mpt3sas_scsih.c @@ -11926,7 +11926,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, @@ -11964,7 +11964,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 Sat Mar 4 00:30: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: 658917 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 A229AC61DA3 for ; Sat, 4 Mar 2023 00:35:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229963AbjCDAfI (ORCPT ); Fri, 3 Mar 2023 19:35:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229962AbjCDAef (ORCPT ); Fri, 3 Mar 2023 19:34:35 -0500 Received: from mail-pj1-f49.google.com (mail-pj1-f49.google.com [209.85.216.49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 732366A435 for ; Fri, 3 Mar 2023 16:34:06 -0800 (PST) Received: by mail-pj1-f49.google.com with SMTP id m8-20020a17090a4d8800b002377bced051so7926803pjh.0 for ; Fri, 03 Mar 2023 16:34:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677890039; 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=nf7ktUNcM7Gi+ma6ZZuNEBtzdMGPewPW8Hi0Sl/ge/RZ+Gdt8fFDO30nZIQeG18pml GbcmKipGM3+XXDbsrXXUzZf4KlAWMDW52kkSVSxqWAolnQQYFgHsm3cDBNbFBmO9PYWT TmBlEyLA0p4x6XGpm1X5TPSx1Gc/JWoCaAjJKCre1QcbsK/0uziXZrJZJEeyVjOO8F36 Hw4dGUHTMFs2BcFll5oLX+soPza1wuR+k034IJp9nAhlW46dlOBiLVA1m9wqzaiipRGn KsHGRlSvmkNpGyCRMuBx1wmJsrWtJT6zVvwVszhzNmHLyU99m1eR7voGOvSywVMqaAWo iKMw== X-Gm-Message-State: AO0yUKVpOck3azlAxH3YtxM1yZHz9ZY13sBg5Wp0tp5XxfnLarOzM9O0 vBkR2RVIXvgkNgj44Q1QZYw= X-Google-Smtp-Source: AK7set9mAlcWv1Ri25QAbQC2vHoyl9Y3CQL5w77sO9gHOWMZf/Fb6/ej0WbvJgSmB+TogtHYpuP2nw== X-Received: by 2002:a17:902:d492:b0:19c:a866:6a76 with SMTP id c18-20020a170902d49200b0019ca8666a76mr4411119plg.42.1677890038874; Fri, 03 Mar 2023 16:33:58 -0800 (PST) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:efb8:1cdc:a06f:1b53]) by smtp.gmail.com with ESMTPSA id kk15-20020a170903070f00b00189743ed3b6sm2071078plb.64.2023.03.03.16.33.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 16:33:57 -0800 (PST) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , "James E.J. Bottomley" Subject: [PATCH 57/81] scsi: mvumi: Declare SCSI host template const Date: Fri, 3 Mar 2023 16:30:39 -0800 Message-Id: <20230304003103.2572793-58-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc0.216.gc4246ad0f0-goog In-Reply-To: <20230304003103.2572793-1-bvanassche@acm.org> References: <20230304003103.2572793-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 Sat Mar 4 00:30: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: 658916 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 B100BC64EC4 for ; Sat, 4 Mar 2023 00:35:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229938AbjCDAfO (ORCPT ); Fri, 3 Mar 2023 19:35:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229968AbjCDAeh (ORCPT ); Fri, 3 Mar 2023 19:34:37 -0500 Received: from mail-pj1-f47.google.com (mail-pj1-f47.google.com [209.85.216.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E253A23C44 for ; Fri, 3 Mar 2023 16:34:10 -0800 (PST) Received: by mail-pj1-f47.google.com with SMTP id m8-20020a17090a4d8800b002377bced051so7926912pjh.0 for ; Fri, 03 Mar 2023 16:34:10 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677890042; 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=JqneM86oQzsnjjmcOxJELhcn2V0auc+SNPdxY49+RougB9oXQPi0W/yUAda7H6pD5O ENdOVd/+9W6A3TUI0Ti2OAT1D3Poa8O/y7h2CrMoPeKAcGUfsByHQRzYHaZChk+0bQyy 5YpQR4zK0sVsMpQOpvxszvN/Cgj/pJAWU9mY4/MDjJ34JGaNrvS70QbmlU4qR+wztr1F L+joaaQ1aAqmckARBY1qM+4rAh6hI1Huubp/kL+CPXTVvCHvxUKduJd3yg5Zo6C/Irkw 2O3k80Cm6fHaPhbhAqDvTuNCN/5CJEcRTRSFTpjKHRz9tJ3zuuYDvaVn2X0z2ZU5AJ7s Q8dQ== X-Gm-Message-State: AO0yUKVFeXZ+k0nEiJWcx9zljMuHhYIt82112c2+PKcF+jF0kahNrItF fJCeDVZbsoDZkGbmJqB+oqg= X-Google-Smtp-Source: AK7set8ALkjvBbwEGden3nxpnKCLieVwmDQLHksRpTju9Ewv/exnubOB2Q0GQ09pywANQN7gFTw2IQ== X-Received: by 2002:a17:902:dac7:b0:19e:6a5f:598a with SMTP id q7-20020a170902dac700b0019e6a5f598amr3490707plx.63.1677890042435; Fri, 03 Mar 2023 16:34:02 -0800 (PST) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:efb8:1cdc:a06f:1b53]) by smtp.gmail.com with ESMTPSA id kk15-20020a170903070f00b00189743ed3b6sm2071078plb.64.2023.03.03.16.34.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 16:34:01 -0800 (PST) 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 59/81] scsi: myrs: Declare SCSI host template const Date: Fri, 3 Mar 2023 16:30:41 -0800 Message-Id: <20230304003103.2572793-60-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc0.216.gc4246ad0f0-goog In-Reply-To: <20230304003103.2572793-1-bvanassche@acm.org> References: <20230304003103.2572793-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 Sat Mar 4 00:30: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: 658914 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 AD43BC64EC4 for ; Sat, 4 Mar 2023 00:35:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229987AbjCDAfZ (ORCPT ); Fri, 3 Mar 2023 19:35:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229836AbjCDAev (ORCPT ); Fri, 3 Mar 2023 19:34:51 -0500 Received: from mail-pj1-f46.google.com (mail-pj1-f46.google.com [209.85.216.46]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65F60AD32 for ; Fri, 3 Mar 2023 16:34:17 -0800 (PST) Received: by mail-pj1-f46.google.com with SMTP id kb15so4379633pjb.1 for ; Fri, 03 Mar 2023 16:34:17 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677890053; 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=T6GsPg2I0LZ32kZN7a19j6uU3awmr2LjY8FTtu+c/bA=; b=XqRIEqDjKH2OGuB+6IyPyHHLy1kv26EW14c1rkWQSauZOU4zhb86+RoOy01Dh46Evl 0wfwzFq7b3ChBq4HgzlKg9bSJYXQSGMM5Yo+hM/KikrkOmM2jWbrXvLxBsY40zKHcFiH gDz4pT8N+3llF8OQ01+xpjdrYxNWj/1QZpasB9F7g9WPANGKc6Awk0p3TcCV0lPNkOss C3TTWpKBg5ET+MFPIKTBx40LSWJQoYI8/klbiLF44ztljr9I/Wu+TcgY2dewy7ONoxOb 3kY+X5QKCGOjG4I25+L1BmkJqqYG4anERXw1K7QiByvOERDIy6y2hmTNr1dZZjhMUpaP V6Dg== X-Gm-Message-State: AO0yUKW93oxHEx61LMk/EqM+tQGPOMr/lgUS/vdI0vWNU7pV+WsxjeK2 gXlfKnf2cLbGm00bG8FnO/vqNRUnRUTXwA== X-Google-Smtp-Source: AK7set96nZHXBR3gO03DplByYMf2T5LI8QJHTqRKBAQ5ymE52e0cO5xLdTJyLewQRj7ffhcx9aWJug== X-Received: by 2002:a17:902:8307:b0:19c:fa22:e98e with SMTP id bd7-20020a170902830700b0019cfa22e98emr3183717plb.33.1677890053463; Fri, 03 Mar 2023 16:34:13 -0800 (PST) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:efb8:1cdc:a06f:1b53]) by smtp.gmail.com with ESMTPSA id kk15-20020a170903070f00b00189743ed3b6sm2071078plb.64.2023.03.03.16.34.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 16:34:12 -0800 (PST) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , Jack Wang , "James E.J. Bottomley" Subject: [PATCH 62/81] scsi: pcmcia-pm8001: Declare SCSI host template const Date: Fri, 3 Mar 2023 16:30:44 -0800 Message-Id: <20230304003103.2572793-63-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc0.216.gc4246ad0f0-goog In-Reply-To: <20230304003103.2572793-1-bvanassche@acm.org> References: <20230304003103.2572793-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/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 Sat Mar 4 00:30: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: 658915 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 37552C61DA4 for ; Sat, 4 Mar 2023 00:35:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229995AbjCDAfX (ORCPT ); Fri, 3 Mar 2023 19:35:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229953AbjCDAet (ORCPT ); Fri, 3 Mar 2023 19:34:49 -0500 Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7627976C for ; Fri, 3 Mar 2023 16:34:15 -0800 (PST) Received: by mail-pl1-f179.google.com with SMTP id a2so4552018plm.4 for ; Fri, 03 Mar 2023 16:34:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677890055; 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=NCJkGh+FGraofB56T6s5vAqgMeI9LrwtSEYSpgntYO1Z4v/NuBc3EaZxcUZVSIRjot c5uTG6aRAXjwk30zqO7F2UwjjhtW0NJ5WBOBg8r/yVGj8ULEbk5gaGtmFmnzZpxOufeq mYQV8qGnc/fBi3mTmn5hLshiU5TWlMaljmzZcmeH7PRDqJqx9v5A8fxNqWf5MImrGzIu vr5aher4QrZJPHw9HkWt00fX7HHNiXIEaSw6oAzHWpGmQsb5+YA4ATgvoZXPrUF2wq9V sO6UqJe5B8L8f8nOxyBYRNp4E9GY6FFYgNB0Bd3p87C59j7xDcQgCzv/5JcH2g5PfVrw jijQ== X-Gm-Message-State: AO0yUKXO4Li4mRB3jaRpfRvfKIytN/jt9S3dsTUh2G2SmL6Mp7LeJqmA crrxc0/XiSLs8+zHFARg0vw= X-Google-Smtp-Source: AK7set+WaJ2OthC+c2QNYTZ6TJ4A2qlFYUR23I9BlSYJQcVVUfOVPLeYAfPy+SNvUvAaTy8SveAQDg== X-Received: by 2002:a17:902:e752:b0:19e:748c:d419 with SMTP id p18-20020a170902e75200b0019e748cd419mr3903653plf.46.1677890055254; Fri, 03 Mar 2023 16:34:15 -0800 (PST) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:efb8:1cdc:a06f:1b53]) by smtp.gmail.com with ESMTPSA id kk15-20020a170903070f00b00189743ed3b6sm2071078plb.64.2023.03.03.16.34.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 16:34:14 -0800 (PST) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , "James E.J. Bottomley" Subject: [PATCH 63/81] scsi: pmcraid: Declare SCSI host template const Date: Fri, 3 Mar 2023 16:30:45 -0800 Message-Id: <20230304003103.2572793-64-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc0.216.gc4246ad0f0-goog In-Reply-To: <20230304003103.2572793-1-bvanassche@acm.org> References: <20230304003103.2572793-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 Sat Mar 4 00:30: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: 658913 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 BDA84C61DA3 for ; Sat, 4 Mar 2023 00:35:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230008AbjCDAfb (ORCPT ); Fri, 3 Mar 2023 19:35:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229951AbjCDAey (ORCPT ); Fri, 3 Mar 2023 19:34:54 -0500 Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A96F1814A for ; Fri, 3 Mar 2023 16:34:19 -0800 (PST) Received: by mail-pl1-f179.google.com with SMTP id ky4so4560299plb.3 for ; Fri, 03 Mar 2023 16:34:19 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677890059; 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=QCUTz96ttO7BBzk0AXfn/jV+9cMIEMPMqVz2OjaeEz8=; b=5navhC6oM97F18FQWTKtVN4WoWsa6DpfP8E3P4a+nbRMQut7n3Xy42kMBZxgBCZ2O6 m1gfw3sG0xtYZqnU32QebTZ5BFvMyK6MZdghpV+7+xcsaDH/in6+dlQqVwR6RvFptuc1 mArL02YRzsY1CrxCg5/w4FkmHTgHnUfzsMMCL5UdSEhWD9RK1okIcdVvsWFDoty5uxop hILE/XnhjsrwBwivpQrEezWlELEUNTAVOD3SGB+tM09e1Nwz4mwA97GgVHVtZGJ6+yH4 VU0uAspJsUQ6MexWzMk2mrVszVm+T8eLlmiM/ORM9YfFsIYd10ae0cv3ZUfPFU650DvQ TdEw== X-Gm-Message-State: AO0yUKXeJZtytCPK3k4dJmRCMgTyLydDRtwEQLCSd6wRYsVVGQ9tM1b7 BDLfO3UOzf8SIqVnuzM9ubc= X-Google-Smtp-Source: AK7set+vBWoDPtkdBfCNHaLTuJzApW2eEU30YLi7I5ACHurXFgmR58pTErWBS0InCZlIsO3AffFTMQ== X-Received: by 2002:a17:902:ee89:b0:19a:841f:56 with SMTP id a9-20020a170902ee8900b0019a841f0056mr3409029pld.20.1677890058771; Fri, 03 Mar 2023 16:34:18 -0800 (PST) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:efb8:1cdc:a06f:1b53]) by smtp.gmail.com with ESMTPSA id kk15-20020a170903070f00b00189743ed3b6sm2071078plb.64.2023.03.03.16.34.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 16:34:18 -0800 (PST) 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 65/81] scsi: ps3rom: Declare SCSI host template const Date: Fri, 3 Mar 2023 16:30:47 -0800 Message-Id: <20230304003103.2572793-66-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc0.216.gc4246ad0f0-goog In-Reply-To: <20230304003103.2572793-1-bvanassche@acm.org> References: <20230304003103.2572793-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/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 Sat Mar 4 00:30: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: 658912 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 E3DA8C61DA4 for ; Sat, 4 Mar 2023 00:35:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229895AbjCDAfh (ORCPT ); Fri, 3 Mar 2023 19:35:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229509AbjCDAfC (ORCPT ); Fri, 3 Mar 2023 19:35:02 -0500 Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E19DE6A9E0 for ; Fri, 3 Mar 2023 16:34:22 -0800 (PST) Received: by mail-pl1-f173.google.com with SMTP id i10so4517131plr.9 for ; Fri, 03 Mar 2023 16:34:22 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677890062; 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=/WqFD86zUzJs6zLt9AM/l5JR+jpNAEFoAzakplIzR8E=; b=fLkDGC7zf459ElrE09rIRZ5fqaQ/MOKp+Di76NPX4+DacjsbKrwFiHNvSYXywjiapS oFnc3CJlzKz0YG6t0T9lEG6OPzC8Ud23er56azhUJaT6xEv9TcGnIncnGYJ/CtoQvwUU W4BOi8RrSsM7RfuON//cTS4tSGA7KpzMDwL+t+ziVTImHWpTAWTiJ/HPNLrCLFei16pg LTlIItKCNZGoL6qNPe2ULhHiGYfDDwQdyTkgecMbVWCA6FikuD+ZkKQSbioWfe0lstL4 BpBVvPYbsDxF3JLxSxXk1m+J0iYxFoE5xoSxLbWuLCN6LzXYW3/sstbSTTu+WC25VF6t 7pVw== X-Gm-Message-State: AO0yUKV9jB/AULJBhec9rEgyKEvpdAFR8XKq/ljF89MQqm0WKAC0ze3k 1H8TaHDrSsq4y1LvbEW1t7w= X-Google-Smtp-Source: AK7set9aWufv2+hjDzzMmqaFVkBKgxC2o25U1MysF2KXcny9bfKTM4bd4SC7CjH01FrJC/H1di0w2Q== X-Received: by 2002:a17:903:120b:b0:19a:b092:b31a with SMTP id l11-20020a170903120b00b0019ab092b31amr4085203plh.8.1677890062565; Fri, 03 Mar 2023 16:34:22 -0800 (PST) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:efb8:1cdc:a06f:1b53]) by smtp.gmail.com with ESMTPSA id kk15-20020a170903070f00b00189743ed3b6sm2071078plb.64.2023.03.03.16.34.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 16:34:21 -0800 (PST) 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 67/81] scsi: qla2xxx: Declare SCSI host template const Date: Fri, 3 Mar 2023 16:30:49 -0800 Message-Id: <20230304003103.2572793-68-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc0.216.gc4246ad0f0-goog In-Reply-To: <20230304003103.2572793-1-bvanassche@acm.org> References: <20230304003103.2572793-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 545167627e48..08e7873abb3d 100644 --- a/drivers/scsi/qla2xxx/qla_os.c +++ b/drivers/scsi/qla2xxx/qla_os.c @@ -5004,8 +5004,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 Sat Mar 4 00:30: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: 658911 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 73EFFC61DA4 for ; Sat, 4 Mar 2023 00:35:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230071AbjCDAfr (ORCPT ); Fri, 3 Mar 2023 19:35:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229923AbjCDAfG (ORCPT ); Fri, 3 Mar 2023 19:35:06 -0500 Received: from mail-pj1-f47.google.com (mail-pj1-f47.google.com [209.85.216.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5EAACDD6 for ; Fri, 3 Mar 2023 16:34:26 -0800 (PST) Received: by mail-pj1-f47.google.com with SMTP id qa18-20020a17090b4fd200b0023750b675f5so7858657pjb.3 for ; Fri, 03 Mar 2023 16:34:26 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677890066; 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=sc+ZFXgDrw7XQG4cHagQcEOAxVZwfKPM+tK0LN22aZRNxwJ5jwCCNg28Z1yfz13/Rh 1QrQN43fKuvTXigpRHiQc7Ss5WkfTaYiYMP7gxIHCSyHmrpa9CTnxnYuunozsFBnb3/a i/mZ9XH+Unp5M1dKaAV4gHXevTniTEYcDaVA+iJaEf5SitcQbN+ay75NnwFWNXfKbUB8 gjWSLaP698/lltUSYF5+X2QFRnFO+fJkFQK9/KmCkNx5itxmCAB3j9r71uUyPPPM5iHb 08NZEIou5qelL6bN7zUbzIybM6ZCosSO9pumRKZNzJugya5OtRVuoh1Fs+G2/8RB7aID nyPg== X-Gm-Message-State: AO0yUKU/4EFOgaruvl4RAnr3zmgzPfBcTxLaeCXG4Yezx7x2f6vPZTxK 6xlZsM14KyLw+edEgeWRn3FhDiiWaEPAOA== X-Google-Smtp-Source: AK7set8yjNL0jyiEkyKkj1+fAYLmXNlQQ6I1edAp6nu+IvO0WaD/1BMRBf5VzXnzhlOQbzxWYZCpCw== X-Received: by 2002:a17:902:760d:b0:19c:e6c8:db16 with SMTP id k13-20020a170902760d00b0019ce6c8db16mr3054626pll.27.1677890066192; Fri, 03 Mar 2023 16:34:26 -0800 (PST) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:efb8:1cdc:a06f:1b53]) by smtp.gmail.com with ESMTPSA id kk15-20020a170903070f00b00189743ed3b6sm2071078plb.64.2023.03.03.16.34.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 16:34:25 -0800 (PST) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , "James E.J. Bottomley" Subject: [PATCH 69/81] scsi: sgiwd93: Declare SCSI host template const Date: Fri, 3 Mar 2023 16:30:51 -0800 Message-Id: <20230304003103.2572793-70-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc0.216.gc4246ad0f0-goog In-Reply-To: <20230304003103.2572793-1-bvanassche@acm.org> References: <20230304003103.2572793-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 Sat Mar 4 00:30: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: 658910 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 58BBBC61DA3 for ; Sat, 4 Mar 2023 00:35:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229936AbjCDAft (ORCPT ); Fri, 3 Mar 2023 19:35:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229946AbjCDAfH (ORCPT ); Fri, 3 Mar 2023 19:35:07 -0500 Received: from mail-pj1-f44.google.com (mail-pj1-f44.google.com [209.85.216.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 29F7AD53C for ; Fri, 3 Mar 2023 16:34:30 -0800 (PST) Received: by mail-pj1-f44.google.com with SMTP id y2so4353205pjg.3 for ; Fri, 03 Mar 2023 16:34:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677890069; 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=Z+ZXjfJJNINrWoTS0ZZS+GF/gv+ZFbPXbybAKkw27aLixCIrNKsF0FZydpJtt12LQ7 7r5uoV5S66n7Owty/euXhshn9exUAzxPHTsWavH95h0kLXF5PFWyeMaSopV7wZSK6nk5 +KUez5jz+op4RAlByRBZjEkSvuuA6uiqm8nZAFwywOYT0gx1tP3yMLRH+8P8UP/Wtvjx sQWApMBiHLNhSN+qyeTrgaj4qkcJsx5Jx/568wOyu5nNhC7GN5q2kzgKUrEygWIcQEm3 rR/822OZ/F9Rnj5tkuK/aWywHqgXLxXlJ5hOVFhjYMWpVCyfqos3W2QuDbX7nSwMaHZQ aQCw== X-Gm-Message-State: AO0yUKU2N0c2skPsmRTvRLMlGhxIkbzhbDzlFr0Wssgdly5JjKx/K5Hn Cf0aurIl+H12sFv3RFXL+oc= X-Google-Smtp-Source: AK7set/4AW9tjpTYZY51nvvHey7LXZxoe+f8UBvttmDr3/swm0NLFLzjj+swYLEb7CwIXmCDVySvQQ== X-Received: by 2002:a17:903:11c3:b0:19c:c9da:a630 with SMTP id q3-20020a17090311c300b0019cc9daa630mr4184602plh.18.1677890069594; Fri, 03 Mar 2023 16:34:29 -0800 (PST) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:efb8:1cdc:a06f:1b53]) by smtp.gmail.com with ESMTPSA id kk15-20020a170903070f00b00189743ed3b6sm2071078plb.64.2023.03.03.16.34.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 16:34:28 -0800 (PST) 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 71/81] scsi: snic: Declare SCSI host template const Date: Fri, 3 Mar 2023 16:30:53 -0800 Message-Id: <20230304003103.2572793-72-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc0.216.gc4246ad0f0-goog In-Reply-To: <20230304003103.2572793-1-bvanassche@acm.org> References: <20230304003103.2572793-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 Sat Mar 4 00:30: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: 658908 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 07A20C61DA3 for ; Sat, 4 Mar 2023 00:35:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230061AbjCDAfx (ORCPT ); Fri, 3 Mar 2023 19:35:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229986AbjCDAfN (ORCPT ); Fri, 3 Mar 2023 19:35:13 -0500 Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A511835A5 for ; Fri, 3 Mar 2023 16:34:33 -0800 (PST) Received: by mail-pl1-f179.google.com with SMTP id i5so4560397pla.2 for ; Fri, 03 Mar 2023 16:34:33 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677890073; 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=Y7w3JTtZphWb6f6zqlhNAp63MNy2RxmeOwZfNGkMDCLsUwUA7CFvL+CvgOUpbmW+9M ZqG1WS6PC7Ey3vJ9eK2qCXRkJEoWbNeFGlcJ9vB5P8QdnA5nuH7tkp64i7oNmHEqWff8 keb80CyQdP+Y1UOsPu1G40HLC65QW53/6JsMdzxYNBMCDDJdYN+C/vYPFj8fKVN132mp cgUkiO7RDeDvAt7Btxw+Zp7nTJrS9YQy3CR0vCEAii4pwFYNYfZJuXZBuIH3LTdrAq3E IWkTUYnUtViZ5FJGviVMf+5T49k0F8KcuTOjBIyNw7X4nuKpiqW3cbDIRyG014XUUVq5 whBw== X-Gm-Message-State: AO0yUKXc/3zWLOgsOroyrJGMkhWUNs6p+ASmX6y5SAmKAJH7ZH3nphVq LNzkoV1wuAZqXrsivme1WEs= X-Google-Smtp-Source: AK7set+/XXGpb4K6YR1l2GCza7zK/xz3TbUj6NnmJkj+4+VMK+6CaP0nmsTINqUUPadv94yfV7LiBg== X-Received: by 2002:a17:902:ee45:b0:19e:6c7a:481 with SMTP id 5-20020a170902ee4500b0019e6c7a0481mr3046286plo.68.1677890073127; Fri, 03 Mar 2023 16:34:33 -0800 (PST) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:efb8:1cdc:a06f:1b53]) by smtp.gmail.com with ESMTPSA id kk15-20020a170903070f00b00189743ed3b6sm2071078plb.64.2023.03.03.16.34.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 16:34:32 -0800 (PST) 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 73/81] scsi: sym53c8xx: Declare SCSI host template const Date: Fri, 3 Mar 2023 16:30:55 -0800 Message-Id: <20230304003103.2572793-74-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc0.216.gc4246ad0f0-goog In-Reply-To: <20230304003103.2572793-1-bvanassche@acm.org> References: <20230304003103.2572793-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 Sat Mar 4 00:30: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: 658909 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 303BAC61DA4 for ; Sat, 4 Mar 2023 00:35:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230047AbjCDAfv (ORCPT ); Fri, 3 Mar 2023 19:35:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229994AbjCDAfN (ORCPT ); Fri, 3 Mar 2023 19:35:13 -0500 Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8394910257 for ; Fri, 3 Mar 2023 16:34:35 -0800 (PST) Received: by mail-pl1-f169.google.com with SMTP id i10so4517434plr.9 for ; Fri, 03 Mar 2023 16:34:35 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677890075; 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=8HvGpVSbI59o+q+cOo7YZHHZv/fPFHtxltaO/UOgAzZfN6W83ZEYo9QRQUtkGmJ+4U j74Z5nHrQ696TCk0MMM2oESbs5ud4ZPwzD4zlj/UBZiCtpszZubFPSng0Cu01EcB2EVt oklG5orJ7JcwrOsh1h+Utckv4U+iXLrWPU/LCw4iVuHbQtlJcZioEBPOQmyrxRP0a3Hb 0H91cvZdrOXvyxD/Man/YKZOx5Jjf7U0m0d15SguJgD6TjYp1j8Zy9CyRQGLgHOTT5Vx RusU5e2RqBPyIhDp/KcQaBufWloatrOBjqfJS+b/LGbxp4XXt8Md0Fxwu79tDUHEdUTO kHvw== X-Gm-Message-State: AO0yUKW5UEi4QIf8SscgFjzazO1zW8zYFD1082Zx5yJvYMewfdP4A0If jOZjc42iwk8P7bijSujLsGI= X-Google-Smtp-Source: AK7set81qfNnNV+airLuqCNj7siARQWNktY+Zd/OGDLwHVE/Jvc6Gdn8yK9cHEqJ5fYxR30JASCXYA== X-Received: by 2002:a17:902:e809:b0:19a:9890:eac6 with SMTP id u9-20020a170902e80900b0019a9890eac6mr4289110plg.24.1677890074923; Fri, 03 Mar 2023 16:34:34 -0800 (PST) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:efb8:1cdc:a06f:1b53]) by smtp.gmail.com with ESMTPSA id kk15-20020a170903070f00b00189743ed3b6sm2071078plb.64.2023.03.03.16.34.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 16:34:34 -0800 (PST) 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 74/81] scsi: virtio-scsi: Declare SCSI host template const Date: Fri, 3 Mar 2023 16:30:56 -0800 Message-Id: <20230304003103.2572793-75-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc0.216.gc4246ad0f0-goog In-Reply-To: <20230304003103.2572793-1-bvanassche@acm.org> References: <20230304003103.2572793-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 Sat Mar 4 00:30: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: 658907 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 20F3DC61DA4 for ; Sat, 4 Mar 2023 00:36:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230081AbjCDAgH (ORCPT ); Fri, 3 Mar 2023 19:36:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230025AbjCDAfW (ORCPT ); Fri, 3 Mar 2023 19:35:22 -0500 Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BBA8C5F206 for ; Fri, 3 Mar 2023 16:34:46 -0800 (PST) Received: by mail-pl1-f175.google.com with SMTP id h8so4513988plf.10 for ; Fri, 03 Mar 2023 16:34:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677890086; 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=4RbMXUm7pqAemtbTxFEHuwxSO+lKtdQq5rpNrosHYA8=; b=HeR7cvs6w0IObf2P4Vu7cCTXGrQ8geXIIub90NRhBFrFzwM7lX2e6YcjU0zsW9lDSv t2ajZKWJpVMn2yvLxpcUkXgYJpwzfYhsWtX3XPp7T7L8LMB+236JCLIbdw2ioxkoettd xA2fQyK4ffho+uQPJjcAiq9/tOKFAyRHMNJmlpqKEZPmNFJddGvT7ps8OeY5Z0ECN8aV GR131fXnriJ7T6TukgdF/GzAwJbb/mcaJjlMxL3Xnrxly6kXuGVCVjJqQMwXs74BYA3t nUMQ4RzRQZqqqukWdx1O6PxWWsOQnCJZfWuq4j4eizFOVgQakE3LRKqz3kqL/C4TJ295 BBEg== X-Gm-Message-State: AO0yUKVQUVl+OxnGdTG4nyHrnlXd6XNkxqjLb4FRoITun20oI8BQleUw E0o9BnC621ABLsQn2gwoWj+dSdXma84inA== X-Google-Smtp-Source: AK7set+Ej6DfCvHZY5Ttev/EoYuOnOQN6rz9VkflbbDSWypfnu1k6HkYgrg524uhCnf8TIvaKI1bgg== X-Received: by 2002:a17:902:7605:b0:19a:f02c:a06d with SMTP id k5-20020a170902760500b0019af02ca06dmr3338375pll.29.1677890086171; Fri, 03 Mar 2023 16:34:46 -0800 (PST) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:efb8:1cdc:a06f:1b53]) by smtp.gmail.com with ESMTPSA id kk15-20020a170903070f00b00189743ed3b6sm2071078plb.64.2023.03.03.16.34.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 16:34:45 -0800 (PST) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , Greg Kroah-Hartman , Charlie Sands Subject: [PATCH 77/81] scsi: rts5208: Declare SCSI host template const Date: Fri, 3 Mar 2023 16:30:59 -0800 Message-Id: <20230304003103.2572793-78-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc0.216.gc4246ad0f0-goog In-Reply-To: <20230304003103.2572793-1-bvanassche@acm.org> References: <20230304003103.2572793-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/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 Sat Mar 4 00:31: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: 658906 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 A43DEC61DA4 for ; Sat, 4 Mar 2023 00:36:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230000AbjCDAgU (ORCPT ); Fri, 3 Mar 2023 19:36:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230009AbjCDAfl (ORCPT ); Fri, 3 Mar 2023 19:35:41 -0500 Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6952F6A403 for ; Fri, 3 Mar 2023 16:35:07 -0800 (PST) Received: by mail-pl1-f171.google.com with SMTP id ky4so4561527plb.3 for ; Fri, 03 Mar 2023 16:35:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677890107; 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=uXZqACJMWT7UtutWd7duHq9TCEcykw7N6hhRpB04vPs=; b=67nNzCPYVycE/fo0UpFmFNrNaIVE4+iiAlwPodil9uu1KRjRmbTKGm3X3yIUkkuh3O SoWntVyrBvm13I0rNDaGFSQL3LPkE8C38J6pyafOQpcl0kQskBTUQrVXfsmlv0pzZcFH JSD5K5I+p63koc9QGUfZ3/C49LWy4jHZ3Ml30xgVbmHS7p8QKS/HcpsG/f6d4nRQJeGG KECHSnOSP3CeGWiPvSjfVpsqvEnmtB3avdEYEyPGFOUm6Bl24T/LhSU0Hsa0BcqgYqXE GMLu4CA4Rd08dJXHbsOsrulbyu2qqPPTZwH0QS50Y2EU9uIzl/HSNI5h3dZyjNeRv1Qj 5ASg== X-Gm-Message-State: AO0yUKUGFnUEI6jtaX1+uBlG8w41MpUIr9iVpEy110zXOYVVuetw4YRN CXHdOEh3z4jbsT/M1Qde4SA= X-Google-Smtp-Source: AK7set+bNBrjd5GrG4CzAbYDuam/7jOqlN6VFAkCrWlRPYxthPZo6s2yxTdJNz2UPHFSxpsShbW1DQ== X-Received: by 2002:a17:902:e5c2:b0:19a:a650:ac55 with SMTP id u2-20020a170902e5c200b0019aa650ac55mr8251221plf.23.1677890106896; Fri, 03 Mar 2023 16:35:06 -0800 (PST) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:efb8:1cdc:a06f:1b53]) by smtp.gmail.com with ESMTPSA id kk15-20020a170903070f00b00189743ed3b6sm2071078plb.64.2023.03.03.16.35.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 16:35:06 -0800 (PST) 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 79/81] scsi: ufs: Declare SCSI host template const Date: Fri, 3 Mar 2023 16:31:01 -0800 Message-Id: <20230304003103.2572793-80-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc0.216.gc4246ad0f0-goog In-Reply-To: <20230304003103.2572793-1-bvanassche@acm.org> References: <20230304003103.2572793-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 172d25fef740..42f01af1e1b7 100644 --- a/drivers/ufs/core/ufshcd.c +++ b/drivers/ufs/core/ufshcd.c @@ -8721,7 +8721,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 Sat Mar 4 00:31: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: 658905 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 04BFFC61DA4 for ; Sat, 4 Mar 2023 00:36:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230087AbjCDAg1 (ORCPT ); Fri, 3 Mar 2023 19:36:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230064AbjCDAfr (ORCPT ); Fri, 3 Mar 2023 19:35:47 -0500 Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 273A06A418 for ; Fri, 3 Mar 2023 16:35:11 -0800 (PST) Received: by mail-pl1-f170.google.com with SMTP id a2so4553400plm.4 for ; Fri, 03 Mar 2023 16:35:11 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677890110; 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=k2cEHBWKpaDNnl7kiLeRhj3eA3aejaS3idOl8i+KeYg=; b=jkXi6JT6ebp/n934eU+bVnz4DOeGG6UX4SDu874FVF3Z89nCrt5XA5LoZKhsT0hzhP Hvjcb+E2qshkylHprzHaR+LcvR0LHLgKB8JBOuXqiBToTXc9eSBjFJ3DlwpNBpwOcLVV gwF9fuuwV3hid6TkHNDsHVQxKCEelADpIdBKH2+ro4DKUwuUpOTAYHb1IlQwKdWZvYGK /q/Ebg/4VC8qNjCNmbUdj2muUt78HYZTpBvoJx6m78ly1BtvGxSH++iWY7spWnDXg+ro HVVZ6WWE7Tf6RLpYKSdM+I0A+9X5Z4EnajR0eXltnPug91xiw+/yfiV9LfOzoFqE5GwM 54Fw== X-Gm-Message-State: AO0yUKUj3qpcHWhX3zcYREGVfJZRseFPqBqeE/hJnpjQevGmL0bmpgk9 GKy5ArSMIwZ8YxVEKyc6WcSvPzN5pc1G3g== X-Google-Smtp-Source: AK7set/6aO3HTwQ7zuTZCELZA91LEUTAXPfIuPiev+Xyph9xTqq7b0LHNhlxJNfeP7B/BVPgng5yJg== X-Received: by 2002:a17:903:22c5:b0:198:fded:3b69 with SMTP id y5-20020a17090322c500b00198fded3b69mr4543000plg.53.1677890110607; Fri, 03 Mar 2023 16:35:10 -0800 (PST) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:efb8:1cdc:a06f:1b53]) by smtp.gmail.com with ESMTPSA id kk15-20020a170903070f00b00189743ed3b6sm2071078plb.64.2023.03.03.16.35.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 16:35:09 -0800 (PST) From: Bart Van Assche To: "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, Bart Van Assche , Christoph Hellwig , Ming Lei , Hannes Reinecke , John Garry , Mike Christie , "James E.J. Bottomley" Subject: [PATCH 81/81] scsi: core: Update a source code comment Date: Fri, 3 Mar 2023 16:31:03 -0800 Message-Id: <20230304003103.2572793-82-bvanassche@acm.org> X-Mailer: git-send-email 2.40.0.rc0.216.gc4246ad0f0-goog In-Reply-To: <20230304003103.2572793-1-bvanassche@acm.org> References: <20230304003103.2572793-1-bvanassche@acm.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Make sure that the 'proc_name' comment correctly reflects its new role. Cc: Christoph Hellwig Cc: Ming Lei Cc: Hannes Reinecke Cc: John Garry Cc: Mike Christie Signed-off-by: Bart Van Assche --- include/scsi/scsi_host.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/scsi/scsi_host.h b/include/scsi/scsi_host.h index 0f29799efa02..f3e071fd61bd 100644 --- a/include/scsi/scsi_host.h +++ b/include/scsi/scsi_host.h @@ -365,7 +365,7 @@ struct scsi_host_template { /* - * Name of proc directory + * Name reported via the proc_name SCSI host attribute. */ const char *proc_name;