From patchwork Wed Aug 2 17:46:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9877351 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 B1BE460360 for ; Wed, 2 Aug 2017 18:01:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AA73828848 for ; Wed, 2 Aug 2017 18:01:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A8D37288A4; Wed, 2 Aug 2017 18:01:37 +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=-3.6 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E02E92889A for ; Wed, 2 Aug 2017 18:01:18 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dcxv1-0000lT-LL; Wed, 02 Aug 2017 17:58:51 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dcxjn-0008AR-1T for xen-devel@lists.xenproject.org; Wed, 02 Aug 2017 17:47:15 +0000 Received: from [193.109.254.147] by server-11.bemta-6.messagelabs.com id 98/79-03612-22012895; Wed, 02 Aug 2017 17:47:14 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprLIsWRWlGSWpSXmKPExsVyMfTAYV1FgaZ Ig90LDCy+b5nM5MDocfjDFZYAxijWzLyk/IoE1oyTe7+xFyxjq+ibM4GxgXE3axcjF4eQwHRG ibmTljKDOCwCl1gkzp2fxQLiSAi8Y5HYc/8bkMMB5MRJHJrM2cXICWRWSsyYNYUZJCwkoCGxY 6cdxKDvjBI7l70BK2cT0JPoeJMGYooIGEjsvZsB0sks4CixZ9txNhBbWMBMYtH9HmYQm0VAVe LCpR4mEJtXIF7i6sR5zBCb5CRunutknsDIt4CRYRWjRnFqUVlqka6huV5SUWZ6RkluYmaOrqG BmV5uanFxYnpqTmJSsV5yfu4mRmCQMADBDsbbGwMOMUpyMCmJ8ir21EcK8SXlp1RmJBZnxBeV 5qQWH2KU4eBQkuDt52+KFBIsSk1PrUjLzAGGK0xagoNHSYR3Gkiat7ggMbc4Mx0idYrRlePKl XVfmDg2rF4PJJs+bAGSUw5sB5KvJvz/xiTEkpeflyolzmsJ0iwA0pxRmgc3GhZrlxhlpYR5GY GOFeIpSC3KzSxBlX/FKM7BqCTMOxtkCk9mXgncBa+AjmMCOu5PXSPIcSWJCCmpBsbJP3R1yx+ FduTcmT3PR6XWVkXpY8y8+V7KGl2z5zZpSuh9Uep5V3jX+uDXHd//mlZvWDZ70trNzQs2B3zd G5SdF6zQIX5/7WHFL4qRh+/ELP6v8P9L1PQtdZsE3sazzL71ZPGlLbWT40rvBvu2XuyfLqxT6 7N38+1nsyxSXLfo6YUc0RE5uOW7EktxRqKhFnNRcSIACol1+bACAAA= X-Env-Sender: arvind.yadav.cs@gmail.com X-Msg-Ref: server-5.tower-27.messagelabs.com!1501696032!104580268!1 X-Originating-IP: [209.85.192.195] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 9.4.25; banners=-,-,- X-VirusChecked: Checked Received: (qmail 41548 invoked from network); 2 Aug 2017 17:47:13 -0000 Received: from mail-pf0-f195.google.com (HELO mail-pf0-f195.google.com) (209.85.192.195) by server-5.tower-27.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 2 Aug 2017 17:47:13 -0000 Received: by mail-pf0-f195.google.com with SMTP id e3so6652702pfc.5 for ; Wed, 02 Aug 2017 10:47:13 -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=5UT1LLaNszgG8VSUbrWNpZ8ir5IYv055DqWPpwSHQ58=; b=uFjwAbSpAKec8EGh5V2ZO86AgG/0qDvvlgOSKFFd9UvwXZWJLbInsYu3t/AO+jb2Bg e/TlGnXOM0IUhJnqPFf2Bwt/2280A+6yn7THr867ZLlpQZGEH/wMWaU1Md+E24zuTgG5 zBuJI6v5qSUGolBmwTalQl0IdoYfXTkDb4flJlRctN8rhxfavDJODDTV2bbRWkr2Aie+ oUtUeQObyGzgvm6dDZatlGRvhaC0BAt3KYVXnPcmXx9K9tUrCSt3wXqnEGKIhTN9HHCE 690S0P2g9ZAcNyNSJ09KLENT4KkQhc0DJIwuC+m7bICkdajfhI94C6DcSr5yxv0JhKfV 84iQ== 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=5UT1LLaNszgG8VSUbrWNpZ8ir5IYv055DqWPpwSHQ58=; b=apwDMGSr4R1fGdLc97Sx8ZnH+7RKJTUanQwC2bFjUIpbNQ+7GUZdpsDBohcQGn6Goj NhwDxeRfCIxKUU77VyoW485G98W0C8S8bRcFraPhgtfuZtrSGQdQLdc0blzwdHetnKVR eZTcEa0j5Qeb0/E3gTpU58q8fVvOB4C+Do+I6y13nWHRwXfI00/fDaOGOmRcdpe2oSeZ BcT31AGHL5+Cvnz6UJY4Gq1eAQBsHrGAftVrZiQTawaCOnTyShCmCrphzS0d1USoaG+o NsqYDAexrS8QahMOK1TyJO1toHKjvXPYzRdsO9+ZDMwPU4/bKZek0OA3O4BJzMmJnJT8 mSCQ== X-Gm-Message-State: AIVw113RVn3q8FClQJye4qpNXzWODRqCtUlUTz6Xja99EcfXSP9vWuTR ino2aLAUnjGxbQ== X-Received: by 10.99.108.69 with SMTP id h66mr7332907pgc.163.1501696032114; Wed, 02 Aug 2017 10:47:12 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.78]) by smtp.gmail.com with ESMTPSA id 78sm4331052pft.123.2017.08.02.10.47.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 02 Aug 2017 10:47:11 -0700 (PDT) From: Arvind Yadav To: boris.ostrovsky@oracle.com, jgross@suse.com Date: Wed, 2 Aug 2017 23:16:57 +0530 Message-Id: <800c45e978d192c0b485fd7b9429d892ff47dfc9.1501695851.git.arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 X-Mailman-Approved-At: Wed, 02 Aug 2017 17:58:50 +0000 Cc: xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org Subject: [Xen-devel] [PATCH] xen-platform: constify pci_device_id. X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" 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 Reviewed-by: Boris Ostrovsky --- drivers/xen/platform-pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/xen/platform-pci.c b/drivers/xen/platform-pci.c index 1275df8..5d7dcad 100644 --- a/drivers/xen/platform-pci.c +++ b/drivers/xen/platform-pci.c @@ -175,7 +175,7 @@ static int platform_pci_probe(struct pci_dev *pdev, return ret; } -static struct pci_device_id platform_pci_tbl[] = { +static const struct pci_device_id platform_pci_tbl[] = { {PCI_VENDOR_ID_XEN, PCI_DEVICE_ID_XEN_PLATFORM, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, {0,}