From: Bradley Grove <bgrove@attotech.com>
To: Arvind Yadav <arvind.yadav.cs@gmail.com>,
martin.petersen@oracle.com, jejb@linux.vnet.ibm.com, mdr@sgi.com,
hare@suse.com, aacraid@adaptec.com, matthew@wil.cx,
fthain@telegraphics.com.au, schmitzmic@gmail.com,
kashyap.desai@broadcom.com, sumit.saxena@broadcom.com,
gotom@debian.or.jp, mrochs@linux.vnet.ibm.com,
QLogic-Storage-Upstream@cavium.com, jinpu.wang@profitbricks.com
Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 16/29] scsi: esas2r: constify pci_device_id.
Date: Thu, 10 Aug 2017 14:59:22 -0400 [thread overview]
Message-ID: <46cd43a7-a246-ac67-ef54-97b19571908e@attotech.com> (raw)
In-Reply-To: <1501404036-9005-6-git-send-email-arvind.yadav.cs@gmail.com>
Looks good.
Acked-by: Bradley Grove <bgrove@attotech.com>
On 07/30/2017 04:40 AM, Arvind Yadav wrote:
> pci_device_id are not supposed to change at runtime. All functions
> working with pci_device_id provided by <linux/pci.h> work with
> const pci_device_id. So mark the non-const structs as const.
>
> Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
> ---
> 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 f2e9d8a..81f226b 100644
> --- a/drivers/scsi/esas2r/esas2r_main.c
> +++ b/drivers/scsi/esas2r/esas2r_main.c
> @@ -309,7 +309,7 @@ MODULE_PARM_DESC(interrupt_mode,
> "Defines the interrupt mode to use. 0 for legacy"
> ", 1 for MSI. Default is MSI (1).");
>
> -static struct pci_device_id
> +static const struct pci_device_id
> esas2r_pci_table[] = {
> { ATTO_VENDOR_ID, 0x0049, ATTO_VENDOR_ID, 0x0049,
> 0,
>
This electronic transmission and any attachments hereto are intended only for the use of the individual or entity to which it is addressed and may contain confidential information belonging to ATTO Technology, Inc. If you have reason to believe that you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on the contents of this electronic transmission is strictly prohibited. If you have reason to believe that you have received this transmission in error, please notify ATTO immediately by return e-mail and delete and destroy this communication.
next prev parent reply other threads:[~2017-08-10 19:14 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-30 8:40 [PATCH 11/29] scsi: 3w-sas: " Arvind Yadav
2017-07-30 8:40 ` [PATCH 12/29] scsi: hptiop: " Arvind Yadav
2017-07-30 8:40 ` [PATCH 13/29] scsi: fdomain: " Arvind Yadav
2017-07-30 8:40 ` [PATCH 14/29] scsi: snic: " Arvind Yadav
2017-07-30 8:40 ` [PATCH 15/29] scsi: sym53c8xx_2: " Arvind Yadav
2017-07-30 8:40 ` [PATCH 16/29] scsi: esas2r: " Arvind Yadav
2017-08-10 18:59 ` Bradley Grove [this message]
2017-07-30 8:40 ` [PATCH 17/29] scsi: qla2xxx: " Arvind Yadav
2017-07-30 8:40 ` [PATCH 18/29] scsi: dmx3191d: " Arvind Yadav
2017-07-30 8:40 ` [PATCH 19/29] scsi: megaraid: " Arvind Yadav
2017-07-30 8:40 ` [PATCH 20/29] scsi: cxlflash: " Arvind Yadav
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=46cd43a7-a246-ac67-ef54-97b19571908e@attotech.com \
--to=bgrove@attotech.com \
--cc=QLogic-Storage-Upstream@cavium.com \
--cc=aacraid@adaptec.com \
--cc=arvind.yadav.cs@gmail.com \
--cc=fthain@telegraphics.com.au \
--cc=gotom@debian.or.jp \
--cc=hare@suse.com \
--cc=jejb@linux.vnet.ibm.com \
--cc=jinpu.wang@profitbricks.com \
--cc=kashyap.desai@broadcom.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=matthew@wil.cx \
--cc=mdr@sgi.com \
--cc=mrochs@linux.vnet.ibm.com \
--cc=schmitzmic@gmail.com \
--cc=sumit.saxena@broadcom.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome