From patchwork Sun Jul 30 08:37:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9870269 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 6FF236032A for ; Sun, 30 Jul 2017 08:39:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5E94928584 for ; Sun, 30 Jul 2017 08:39:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 50608285E3; Sun, 30 Jul 2017 08:39:58 +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 EFD7F28584 for ; Sun, 30 Jul 2017 08:39:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753969AbdG3Ihq (ORCPT ); Sun, 30 Jul 2017 04:37:46 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:35257 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753947AbdG3Iho (ORCPT ); Sun, 30 Jul 2017 04:37:44 -0400 Received: by mail-pg0-f66.google.com with SMTP id d193so27651509pgc.2; Sun, 30 Jul 2017 01:37:44 -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=nMR3AJf5URxlcVO62JvYlWBuNur3VT3VZ90asMCJF1g=; b=cPYrvALbjbOv1I3odFf1A9tGqCzxubrK4qGeCySYTKDimcFnBplEA2aPj0YqG+VTY9 txvc8HySzAzeuUL23v7KNbmSYkc8TViuvs6uvomR++BLidGCk2j3GYME7Usxbklq3ju6 SbSOoCkSS6ypaUCAezhAWdi7UuLmPMDt6oJwrTOL2j1gMZBoVyOUlFqHX0fr/gCpHnFk j3j1iZjch4qFaNZkKEueWgMoHFzU8afJMDWZPjsfhBypgbZ/J1x2TjeAXLuDcHOdq0iQ FA7Xs4+eDpAYpja5DzyhFogHu4QKV69JAMbYpBJoHho4UukT6Dgd3bzOPEWEw9IvDWZp sTbw== 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=nMR3AJf5URxlcVO62JvYlWBuNur3VT3VZ90asMCJF1g=; b=PKddD44Cd5rVxdtTvws5evAHhjdMRzu/rvsltBC7amhwGdjWWUulUtMstn32gReQfi oibNHAiqBCkx7Sl7PbkDo8Gqdr5qAojRC+dqDsClO+rGyZ0Ver+5ryci0b6+z8prBw6c 7yE+CH7Nml2KJwUxsR6mRmiFgGksZl2dWMG9TXTmNbEejwlJJXuyblEQgc1iSCR7Fcg7 60oaMyt1y93WwDXFmYM18zziqMSYVKmoZ7cnwZjualNDkIUVqzb2b8Fxlczel2KLg80p 13nil7Y1faDBjBlsXAFlmeu/4I7BjKLPnx7eR60FvgDbtU4gPOkMNNvf2Zq49aT9qcMC eUdw== X-Gm-Message-State: AIVw112elbFu25b/QBerMXiryOKM57n+elF90gmAzrZnspZdRrVFEvQx 5bgrOB3uTs+ihw== X-Received: by 10.99.165.3 with SMTP id n3mr11896803pgf.233.1501403863872; Sun, 30 Jul 2017 01:37:43 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.146]) by smtp.gmail.com with ESMTPSA id h27sm45996082pfd.34.2017.07.30.01.37.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 30 Jul 2017 01:37:43 -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 02/29] scsi: qedi: constify pci_device_id. Date: Sun, 30 Jul 2017 14:07:11 +0530 Message-Id: <1501403839-8876-3-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/qedi/qedi_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/qedi/qedi_main.c b/drivers/scsi/qedi/qedi_main.c index 5f5a4ef..3880bf8 100644 --- a/drivers/scsi/qedi/qedi_main.c +++ b/drivers/scsi/qedi/qedi_main.c @@ -2004,7 +2004,7 @@ static void qedi_remove(struct pci_dev *pdev) __qedi_remove(pdev, QEDI_MODE_NORMAL); } -static struct pci_device_id qedi_pci_tbl[] = { +static const struct pci_device_id qedi_pci_tbl[] = { { PCI_DEVICE(PCI_VENDOR_ID_QLOGIC, 0x165E) }, { PCI_DEVICE(PCI_VENDOR_ID_QLOGIC, 0x8084) }, { 0 },