From patchwork Sun Jul 30 08:43:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9870331 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 69E8C6032A for ; Sun, 30 Jul 2017 08:44:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 59C2B2858E for ; Sun, 30 Jul 2017 08:44:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4C084285E3; Sun, 30 Jul 2017 08:44:55 +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=ham 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 EA39D2858E for ; Sun, 30 Jul 2017 08:44:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754186AbdG3Iow (ORCPT ); Sun, 30 Jul 2017 04:44:52 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:35275 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754170AbdG3Iot (ORCPT ); Sun, 30 Jul 2017 04:44:49 -0400 Received: by mail-pg0-f66.google.com with SMTP id d193so27660390pgc.2; Sun, 30 Jul 2017 01:44:49 -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=c7z3RwXX8uCNgbHLRJyCbK6717ukVS68DZioZ78+Cyo=; b=iu0l4IVgyTi7OZfE4ahXLu/32ycX2mBMVKsnY/jKouIg8mgaMgiSshV7MwqyA8guIH /J+qtux17Ziz7A2WZ3juxR9eia6aOXK9TFtAxw+rR4/w5vV5DrFNQM7UXAf8ZdbY6+WS mkIhpXcxW7TuZjWIjTjRjqPQfWvD1POEdoLZrSvFKa2P+wIRXGmh00DethsZ4E8uG+nG OvffW42zm+AonVWBo+BrMStOTNZXCqR715dsxVqQ1qdrUk5ATLyrtqHbFBDERK86RZbG qkgaRFGLatab1VS3uJMi+nJqg/OqPsAv74z9twiZSNq+FZ+KcqUS5VbT+GiqU4JIhiNY bv3A== 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=c7z3RwXX8uCNgbHLRJyCbK6717ukVS68DZioZ78+Cyo=; b=qgHsyM172SLFqxZoMDBqLNxjuwCVAaMAe0Q140mMSyR7fRVLXsH1Ya6I+fS5yBuGuJ RwhmCi4kK05DaecIXD3YBeGA2WBQFnZoAM3w5ZIk5CbiqsMpu0iY8tAyOqmh60UfUwPS AEuRV4X7acN+CNZu+w9F+7X6O1lWZYoQm3SiNKGTXTBKkuv45A/lzFNyZlKB+d3L/s8N bSLCWqcl/NK3WXIkh0EXIZlyNxvl0vPonH6FwSIJm5nGiWel8VamAhH1mzvOcL9LB7l9 s9sKz8R4ATPKCtyfhIsCe3wvgc4t772TYDl3UWwOagvyK6o7ZdbKigmpBXjJOl2KaMM8 NYzg== X-Gm-Message-State: AIVw113q/srJWqgdd9s988Zv5ObLDJrkvZl29NMdkzhv8pDz5XFkXY2M /+UCLtmI0n+nPg== X-Received: by 10.84.236.4 with SMTP id q4mr13153758plk.423.1501404289399; Sun, 30 Jul 2017 01:44:49 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.146]) by smtp.gmail.com with ESMTPSA id p126sm40644837pfp.28.2017.07.30.01.44.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 30 Jul 2017 01:44:48 -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 29/29] scsi: 3w-xxxx: constify pci_device_id. Date: Sun, 30 Jul 2017 14:13:55 +0530 Message-Id: <1501404235-9105-9-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1501404235-9105-1-git-send-email-arvind.yadav.cs@gmail.com> References: <1501404235-9105-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-xxxx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/3w-xxxx.c b/drivers/scsi/3w-xxxx.c index 33261b6..e0b079d 100644 --- a/drivers/scsi/3w-xxxx.c +++ b/drivers/scsi/3w-xxxx.c @@ -2384,7 +2384,7 @@ static void tw_remove(struct pci_dev *pdev) } /* End tw_remove() */ /* PCI Devices supported by this driver */ -static struct pci_device_id tw_pci_tbl[] = { +static const struct pci_device_id tw_pci_tbl[] = { { PCI_VENDOR_ID_3WARE, PCI_DEVICE_ID_3WARE_1000, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, { PCI_VENDOR_ID_3WARE, PCI_DEVICE_ID_3WARE_7000,