From patchwork Sun Jul 30 08:43:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9870343 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 912586038F for ; Sun, 30 Jul 2017 08:46:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 833172858E for ; Sun, 30 Jul 2017 08:46:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7838A285E3; Sun, 30 Jul 2017 08:46:08 +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 422882858E for ; Sun, 30 Jul 2017 08:46:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751866AbdG3IoX (ORCPT ); Sun, 30 Jul 2017 04:44:23 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:34037 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751246AbdG3IoU (ORCPT ); Sun, 30 Jul 2017 04:44:20 -0400 Received: by mail-pf0-f195.google.com with SMTP id t86so1835421pfe.1; Sun, 30 Jul 2017 01:44:20 -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=xBrdK+BxnsxCqA9prjPkt4S1ap6ujtUJLpnw0nDHYqA=; b=UU1pxHRlZG7F8q9xWUN0tXSYTBPPY88rytyQM5uJH/JySSgdFhFtbG5IMu4l1+BiFn ZDcjRLBC19WiFjLh8SfuwelMVU03GmHdsSnqOJyihBIcGsvMj/GFUBn1VA7ybevK9XAx 5cGBs4bAUru+HOAUOwf4bCT6Ordqht4uEs4m89N1hnKriagL7QqB2gknF/AAzyTvAM9b Lotpm6y+xK5/9WoKRlkxnqKuocr2fF1j5KF+FtOMqd2V7o51gNEBIVqi54MLMYUay4ar YMeSaDBuA18uOACoatHc78iDKxwwUBevDh4fidQZ2xX9LqrLGsbbBkqtmQfrPPtlBeBU MkJw== 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=xBrdK+BxnsxCqA9prjPkt4S1ap6ujtUJLpnw0nDHYqA=; b=R/ONrb35QfGKybrVuP8ldEPdNgfaPwnq6wsXZDYck7BtzvpiFgo80W/TNXFNXyT8Nx xIXXg8lHLZ03NvVOEQBntKfGwelMFUMWm+q3gpm5l6lAravqxtZ12VZrgdIt2g9Ys7ya IX3fxxUnOtY+bRmOf74ViESL0wFHLJvnDglZNqnTy3dkkhhHobNEwzElQjlTgOtE6KeR YLRF9K40KLJo5mELeO06FdfW32u9teCmDBZGUqwaabsFF8O+oQIFzY2w9hEKXdSQ5bCK kb2LKpEcI1rEREbaHfNne7INYjMRvFt6BgxlmaVSDZhFlo3zKNiy9z+pT2IrHeS7vXdr oi3w== X-Gm-Message-State: AIVw111WeeoymqLhi23UxjqhxwCz7SNmBwsaeBD9pdd+Ah6Bmyu4hfRf m6Glxgc/KTovGg== X-Received: by 10.101.77.6 with SMTP id i6mr12064744pgt.181.1501404260312; Sun, 30 Jul 2017 01:44:20 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.146]) by smtp.gmail.com with ESMTPSA id p126sm40644837pfp.28.2017.07.30.01.44.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 30 Jul 2017 01:44:19 -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 23/29] scsi: fnic: constify pci_device_id. Date: Sun, 30 Jul 2017 14:13:49 +0530 Message-Id: <1501404235-9105-3-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/fnic/fnic_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/fnic/fnic_main.c b/drivers/scsi/fnic/fnic_main.c index aacadbf..b3ab344 100644 --- a/drivers/scsi/fnic/fnic_main.c +++ b/drivers/scsi/fnic/fnic_main.c @@ -53,7 +53,7 @@ LIST_HEAD(fnic_list); DEFINE_SPINLOCK(fnic_list_lock); /* Supported devices by fnic module */ -static struct pci_device_id fnic_id_table[] = { +static const struct pci_device_id fnic_id_table[] = { { PCI_DEVICE(PCI_VENDOR_ID_CISCO, PCI_DEVICE_ID_CISCO_FNIC) }, { 0, } };