From patchwork Sun Jul 30 08:43:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9870347 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C04356038F for ; Sun, 30 Jul 2017 08:46:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B25A62858E for ; Sun, 30 Jul 2017 08:46:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A718D285E3; Sun, 30 Jul 2017 08:46:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 708BF2858E for ; Sun, 30 Jul 2017 08:46:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753880AbdG3IoM (ORCPT ); Sun, 30 Jul 2017 04:44:12 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:35165 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750738AbdG3IoL (ORCPT ); Sun, 30 Jul 2017 04:44:11 -0400 Received: by mail-pg0-f65.google.com with SMTP id d193so27659475pgc.2; Sun, 30 Jul 2017 01:44:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=5iooRtfPGCG3LKiak6SeHPmZ/D2vlI/v9jEOPuIKYHI=; b=bPaXDHa8/wz+Qgja05O8Dg/hHOxqJmfWR5f8DOnTebNnJRcfKE8s1sB6HOPncTsXY5 wyjfHTIoJco/l+2LQM/oxm6vyBDjpWxXDDLphdYiXZuj9ZgSTtLyh9dFQfAJd+sshpF9 GzcLvfHYlLngKULkBSnl6AaR0nif+mFkvkGKVMBlujsYJa6el3SYjQjX1PJ4dfgT1rn7 kCZ2RBCYi597dIiZGcFyVIs3t3szUF3kwEQEAoclxUADgehai4j7jJBpeeqfAkyQ83eX W71GEtyPJJoLbX6eR/97v6fsq8vZ4nCNV+JgCN0maq7DadlscXfrMuZDpLaCV1RHA/zE VJtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=5iooRtfPGCG3LKiak6SeHPmZ/D2vlI/v9jEOPuIKYHI=; b=LOtlv4NalzucODyhiVz2ywuzsJegkxF5RKMj4pj1UJ2SVDYhlaFEehpjkBhQqA/Eo5 78ljAcHfn1X2ZUENdJduCQBe6q51quIQOgcOka17wOd6hRvbikqCelu+MjhHakk1Mxn2 Gnj3PPCjVGws+hcU0P//UZgYmJPaSh0A6fqMpYCHSI3++qC9+TKG3CYuNih0CbmK9RK2 HbSMb/y8aVvjiCO7YkVJoK5D2cb35WpVVMICyFhanRpRySmA+ml7k9IsmL1oo1Z0GHwW jAUvApIyVVyiYroYWNMHDunwe5vL1G8ilAwsgLcuqaUnQXjOBbecKUrcXM64hP3REAis cRMA== X-Gm-Message-State: AIVw1112f+l+g6TPoz1KOpBSO6BCBtoWBooWbX9BYHSS9QiVB2jx++Qe qH4KQG9xeRubxw== X-Received: by 10.84.211.79 with SMTP id b73mr13699823pli.462.1501404250628; Sun, 30 Jul 2017 01:44:10 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.146]) by smtp.gmail.com with ESMTPSA id p126sm40644837pfp.28.2017.07.30.01.44.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 30 Jul 2017 01:44:10 -0700 (PDT) From: Arvind Yadav To: 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: [PATCH 21/29] scsi: nsp32: constify pci_device_id. Date: Sun, 30 Jul 2017 14:13:47 +0530 Message-Id: <1501404235-9105-1-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by work with const pci_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav Acked-by: Masanori Goto --- 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,