From patchwork Sun Jul 30 08:37:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9870263 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 3EE5E6032A for ; Sun, 30 Jul 2017 08:39:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2F7E92656B for ; Sun, 30 Jul 2017 08:39:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 23CBF28563; Sun, 30 Jul 2017 08:39:14 +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 D56CB2656B for ; Sun, 30 Jul 2017 08:39:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754065AbdG3IiI (ORCPT ); Sun, 30 Jul 2017 04:38:08 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:36948 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753947AbdG3IiD (ORCPT ); Sun, 30 Jul 2017 04:38:03 -0400 Received: by mail-pg0-f67.google.com with SMTP id k190so11974925pgk.4; Sun, 30 Jul 2017 01:38:03 -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=ODtCWOio7MLCyjR5gA4rmN0XXT4P8ZMhsPg8c7H/mrc=; b=A5ka38wfA2LTSIYQoGizr5VN/VVH6/NBoJvMqjN5QUqxVubBiQovzAQwalGKpxJXU5 mMiGmMWi4iwAKRsF5XftsSmWE9FjL5mA5lHDlFFqMtZwKCJkP/0Os4IJQmkxZ+RwbZS4 kV2v+cka9kxTLnle/ljEuoBtc36dp6pjGKkJndWopPcbIOV7laaE4o3zRL/N/Hdx7ljI Y7fMVB2l60TVTnePXBat4018cf4W5GWDAEqUBs9E1V0Xg2UyEiyzBd8gekmSBbO4wCuV bQehPmfx9MqWXKoxnSEWOBLAQOWkRWdW4eX2jaBpdifGD86UCs7xVkHllc2xMGy8C+GR A7Qw== 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=ODtCWOio7MLCyjR5gA4rmN0XXT4P8ZMhsPg8c7H/mrc=; b=JFXwGxU4E4WI6s8QWMZ+XfV2RJT+ZC0zxue5ggVSN87juJgW/xddjaH+FPPlbtrfap A0AHtRJyEsK+Yp3NFa6WmVGkVVzgacTceTfscVFBliTuY/CQQsebW2HfCj1n1bmp4L3o vx/3rTRD5WdSKNw5kicZEXQULZp1N2NvfajWH5r9TfAMzLJQeweQVDYJdy3svgHp7Bga U2rdK7mBvX4vJIyEvkOieZZ3LE4q9OR6NF3RnM4iEvkUIGSuQdS8iU0MAwy/5nlQ1DGh RnnHYcur4wGHvPNMHs0BGmlF0MazmwFD4OOoSayi34yp85RXJWSo6HOKItKwrjAKmaN4 Mx1A== X-Gm-Message-State: AIVw110VutL6gHobeHW19WEhjYb3r4cJvLhah/FlAYbSoUFA+yKjcsoV /sl8JDwcL9EllQ== X-Received: by 10.99.119.76 with SMTP id s73mr12086274pgc.374.1501403883497; Sun, 30 Jul 2017 01:38:03 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.146]) by smtp.gmail.com with ESMTPSA id h27sm45996082pfd.34.2017.07.30.01.37.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 30 Jul 2017 01:38:03 -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 06/29] scsi: mvsas: constify pci_device_id. Date: Sun, 30 Jul 2017 14:07:15 +0530 Message-Id: <1501403839-8876-7-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/mvsas/mv_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/mvsas/mv_init.c b/drivers/scsi/mvsas/mv_init.c index 4e047b5..552c5a0 100644 --- a/drivers/scsi/mvsas/mv_init.c +++ b/drivers/scsi/mvsas/mv_init.c @@ -659,7 +659,7 @@ static void mvs_pci_remove(struct pci_dev *pdev) return; } -static struct pci_device_id mvs_pci_table[] = { +static const struct pci_device_id mvs_pci_table[] = { { PCI_VDEVICE(MARVELL, 0x6320), chip_6320 }, { PCI_VDEVICE(MARVELL, 0x6340), chip_6440 }, {