From: Masanori Goto <gotom@debian.or.jp>
To: Arvind Yadav <arvind.yadav.cs@gmail.com>
Cc: martin.petersen@oracle.com, jejb@linux.vnet.ibm.com,
Michael Reed <mdr@sgi.com>,
hare@suse.com, aacraid@adaptec.com,
Matthew Wilcox <matthew@wil.cx>,
fthain@telegraphics.com.au, schmitzmic@gmail.com,
kashyap.desai@broadcom.com, sumit.saxena@broadcom.com,
mrochs@linux.vnet.ibm.com, QLogic-Storage-Upstream@cavium.com,
jinpu.wang@profitbricks.com, linux-scsi@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 21/29] scsi: nsp32: constify pci_device_id.
Date: Mon, 7 Aug 2017 10:37:03 +0900 [thread overview]
Message-ID: <CALZLnaFDqcigXOt1kYAwpDsVTqn4YX+VDMyFDB6oaXmutkVASg@mail.gmail.com> (raw)
In-Reply-To: <1501404235-9105-1-git-send-email-arvind.yadav.cs@gmail.com>
2017-07-30 17:43 GMT+09:00 Arvind Yadav <arvind.yadav.cs@gmail.com>:
>
> 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>
Thank you! (resending it twice due to an error)
Acked-by: Masanori Goto <gotom@debian.or.jp>
> ---
> drivers/scsi/nsp32.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/scsi/nsp32.c b/drivers/scsi/nsp32.c
> index 53c8477..1430b3c 100644
> --- a/drivers/scsi/nsp32.c
> +++ b/drivers/scsi/nsp32.c
> @@ -76,7 +76,7 @@ static const char *nsp32_release_version = "1.2";
> /****************************************************************************
> * Supported hardware
> */
> -static struct pci_device_id nsp32_pci_table[] = {
> +static const struct pci_device_id nsp32_pci_table[] = {
> {
> .vendor = PCI_VENDOR_ID_IODATA,
> .device = PCI_DEVICE_ID_NINJASCSI_32BI_CBSC_II,
> --
> 2.7.4
prev parent reply other threads:[~2017-08-07 1:37 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-30 8:43 Arvind Yadav
2017-07-30 8:43 ` [PATCH 22/29] scsi: pmcraid: " Arvind Yadav
2017-07-30 8:43 ` [PATCH 23/29] scsi: fnic: " Arvind Yadav
2017-07-30 8:43 ` [PATCH 24/29] scsi: stex: " Arvind Yadav
2017-07-30 8:43 ` [PATCH 25/29] scsi: megaraid: " Arvind Yadav
2017-07-30 8:43 ` [PATCH 26/29] scsi: a100u2w: " Arvind Yadav
2017-07-30 8:43 ` [PATCH 27/29] scsi: advansys: " Arvind Yadav
2017-07-30 8:43 ` [PATCH 28/29] scsi: atp870u: " Arvind Yadav
2017-07-30 8:43 ` [PATCH 29/29] scsi: 3w-xxxx: " Arvind Yadav
2017-08-07 1:37 ` Masanori Goto [this message]
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=CALZLnaFDqcigXOt1kYAwpDsVTqn4YX+VDMyFDB6oaXmutkVASg@mail.gmail.com \
--to=gotom@debian.or.jp \
--cc=QLogic-Storage-Upstream@cavium.com \
--cc=aacraid@adaptec.com \
--cc=arvind.yadav.cs@gmail.com \
--cc=fthain@telegraphics.com.au \
--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
all inboxes | Powered by JetHome®