From patchwork Sun Jul 30 08:37:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9870255 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 0E1D06032A for ; Sun, 30 Jul 2017 08:39:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F334927CF9 for ; Sun, 30 Jul 2017 08:39:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E7C4327FB1; Sun, 30 Jul 2017 08:39:01 +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 B05AD28488 for ; Sun, 30 Jul 2017 08:39:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754071AbdG3IiO (ORCPT ); Sun, 30 Jul 2017 04:38:14 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:35323 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754059AbdG3IiI (ORCPT ); Sun, 30 Jul 2017 04:38:08 -0400 Received: by mail-pg0-f68.google.com with SMTP id d193so27652084pgc.2; Sun, 30 Jul 2017 01:38:08 -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:in-reply-to:references; bh=AKDlBMFF/OZNCzxVjN67M6foZSwYGn48xohbwWzzav4=; b=KsYwLaTkAK3V1QyEONG+lRt6NAK/pHQS4z12q4j2ohdnprKP9kDOr3L9C6yrHkmo78 Uixem3MEvUE0YSF2daBWtP6JLml/DMT5DRgXrMsXbxzo1s6ZJmY1VNVDX9rkhNMxYZAT IQn2y4Ad0bJk8C3BUy546mUMOgQo6taUno52wWIoTYE+eIWEbrhpj8vBTua/Zya3621n Dth5Wd5UEqmCJf/F3ykaM0s80JOhbQy073t92saW/fLx4zEPwdydlwX0PUyhGSlc7pF/ MNLhUCmkeI/DQJeYeq/mcoCyGQ0HaIyv6+0mVdFGdoF6iPi298daqspMyqYe7+CcRWRE LEVg== 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:in-reply-to :references; bh=AKDlBMFF/OZNCzxVjN67M6foZSwYGn48xohbwWzzav4=; b=QsXw2Dame/pu0McbNFJ32ojIqy1CRWih1BGA9LZ12aK6cZtjlG4OBApv5SQPZRUMv9 YGoPp73oh/aybHGjQai4ppgqDZPpAZWD5YHth95sNmh9CIRSz5dbRsh9Eba3Xb/bjOmm t2XvxLFBZrEY9tafAypArrJthkyc+X+JieeupiJDWxgymXuzOgzVxP2zOzPUj8J0+fay poITEgmskfKnKILxGJlqCrJAGAGMKb4muucOySNmk21F10m1PqEOJzkS6r93MfwkXrne c76qqqghUfm+ydKLWr3+Cc5tTrpbPfULS9slsr4fYdX1kQRttE3BZogkMyIBtqIOEWej ncmw== X-Gm-Message-State: AIVw113XpMIBfvjl6oh/LBFyjoYB7Ye1UmKxhilbbePKD/t7yiku1Xef LkyQt1p8SjRxHA== X-Received: by 10.84.194.195 with SMTP id h61mr13710910pld.140.1501403888384; Sun, 30 Jul 2017 01:38:08 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.146]) by smtp.gmail.com with ESMTPSA id h27sm45996082pfd.34.2017.07.30.01.38.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 30 Jul 2017 01:38:07 -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, yokota@netlab.is.tsukuba.ac.jp, QLogic-Storage-Upstream@cavium.com, jinpu.wang@profitbricks.com Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 07/29] scsi: 3w-9xxx: constify pci_device_id. Date: Sun, 30 Jul 2017 14:07:16 +0530 Message-Id: <1501403839-8876-8-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1501403839-8876-1-git-send-email-arvind.yadav.cs@gmail.com> References: <1501403839-8876-1-git-send-email-arvind.yadav.cs@gmail.com> 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 --- drivers/scsi/3w-9xxx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/3w-9xxx.c b/drivers/scsi/3w-9xxx.c index 00e7968..27fa387 100644 --- a/drivers/scsi/3w-9xxx.c +++ b/drivers/scsi/3w-9xxx.c @@ -2274,7 +2274,7 @@ static int twa_resume(struct pci_dev *pdev) #endif /* PCI Devices supported by this driver */ -static struct pci_device_id twa_pci_tbl[] = { +static const struct pci_device_id twa_pci_tbl[] = { { PCI_VENDOR_ID_3WARE, PCI_DEVICE_ID_3WARE_9000, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, { PCI_VENDOR_ID_3WARE, PCI_DEVICE_ID_3WARE_9550SX,