From patchwork Sun Jul 30 08:40:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9870311 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 108D16032A for ; Sun, 30 Jul 2017 08:43:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0215628584 for ; Sun, 30 Jul 2017 08:43:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EABAA285E3; Sun, 30 Jul 2017 08:43:19 +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 B42C328584 for ; Sun, 30 Jul 2017 08:43:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750988AbdG3Ikz (ORCPT ); Sun, 30 Jul 2017 04:40:55 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:35691 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750741AbdG3Iky (ORCPT ); Sun, 30 Jul 2017 04:40:54 -0400 Received: by mail-pg0-f66.google.com with SMTP id d193so27655277pgc.2; Sun, 30 Jul 2017 01:40:54 -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=u+gnGaOhxw9Ir2j6KBzQ2yBHfa63ZaaLknbH+17oo2E=; b=Yl6VVFNYKj0VLSlO1GnxcILnW5Q40syHWvcHuKsaM4cLcoTgxl3yQAUyTM9Y09y5/u gGJnvvkJpwQk32oicv9iP/Jx826V2u+oYKKm6EI+GQU2Zsw7ZytthDXPHf16tendo8Ko O57Y2ZARs5muzvM/FdgBdV67+EX7EYPLJM+URCIEvmNelarY1SAXuL946fKF//m657MD w94lJWHbeZCI33a992PD+/OhFTwRy3w7jb9wsKkTtml5LNPd/e3AgdBqChUckDrHISs4 V0CzQBp/aWr1PjeVHLfMBs+o19WctqXyYbp3mFZvQLxIOcqRLzA8mricOTFF/irgOXKL JJJQ== 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=u+gnGaOhxw9Ir2j6KBzQ2yBHfa63ZaaLknbH+17oo2E=; b=k06svQEMvltFnjhA9euZmo5vlcHFglZM9nxPXnzfa8EavMEF1kTgZzZanlI4i5mF8r HPfRA1/4bS8WU7hxnrrR/hbm0V9Q1aYF+Fh6e+4zfjYpx7pd3OqEeomlh4I+ioR54H0e XlnBu4lvlUq3atL9R9Y9wyYvwpstXGa7/j9oZlqfba/BX+NA36V6KvjBae6MXX/NVgi0 2N00nRpKeDw6paqEWeOWRvG+8KjZ/WEmk7XIVm+OZzuiKJqZW1SIJ5owYqHEaW3eF/9X beeZc7SaqiYMgUL8QikkuQJFbrIbHdF5VjDEWJQ8uH60jQ0qymv7zgQg+wbzvkKQfQcs c6FA== X-Gm-Message-State: AIVw113yR7kn4b8QbkRJ89+G/D/qmjJ20gaXZpFV/8IpbeCiw10mj+yX 8sB6OL8KmevEGw== X-Received: by 10.98.68.76 with SMTP id r73mr12222273pfa.152.1501404053800; Sun, 30 Jul 2017 01:40:53 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.146]) by smtp.gmail.com with ESMTPSA id b185sm27220522pfa.65.2017.07.30.01.40.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 30 Jul 2017 01:40:53 -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 11/29] scsi: 3w-sas: constify pci_device_id. Date: Sun, 30 Jul 2017 14:10:27 +0530 Message-Id: <1501404036-9005-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 --- drivers/scsi/3w-sas.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/3w-sas.c b/drivers/scsi/3w-sas.c index b150e13..e771e86 100644 --- a/drivers/scsi/3w-sas.c +++ b/drivers/scsi/3w-sas.c @@ -1847,7 +1847,7 @@ static int twl_resume(struct pci_dev *pdev) #endif /* PCI Devices supported by this driver */ -static struct pci_device_id twl_pci_tbl[] = { +static const struct pci_device_id twl_pci_tbl[] = { { PCI_VDEVICE(3WARE, PCI_DEVICE_ID_3WARE_9750) }, { } };