From patchwork Sun Jul 30 08:40:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9870309 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 A254D6032A for ; Sun, 30 Jul 2017 08:43:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 939C328584 for ; Sun, 30 Jul 2017 08:43:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 888D7285E3; Sun, 30 Jul 2017 08:43:15 +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 43C0628584 for ; Sun, 30 Jul 2017 08:43:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751866AbdG3IlB (ORCPT ); Sun, 30 Jul 2017 04:41:01 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:37114 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750741AbdG3Ik7 (ORCPT ); Sun, 30 Jul 2017 04:40:59 -0400 Received: by mail-pf0-f194.google.com with SMTP id 72so3359141pfl.4; Sun, 30 Jul 2017 01:40:58 -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=arLMvBpw8n/91T6lLl7LmqCUr1JACYLj83f9x2zJIdY=; b=jsW6SuYOHZ3D7N4lv9rzgxHfGMLZz6n35UoC3hrvoerixIT8Xr1Qqaw5g9ZzL/6FrQ KeEcMfjalEHUwXZ92yiEbhC4O0Zf7ClFhstULm9P7528Tp5XYTNDF05gdX+ASZjDob+8 AjaOfXlaDTs0Rv8WxNcH4fJN6XOCvvtoTaqjE5ZXibFhO9PVCdiUDgyADf6m/SC3oiaQ Atqs9yt7iMEEzEEwhzpA06K+jwHp+UAs4t6vc+xZkdzrscF+Ohz1cjAv2vOy69mUXkfj DIwHvgD03H2f1AFVfCsSx0Vm7d45nQXGAv6gxsYW5tUHZX8HnjPj/8gJOzca6wB1kcH4 vLhQ== 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=arLMvBpw8n/91T6lLl7LmqCUr1JACYLj83f9x2zJIdY=; b=KhcfemJAPcPQNfvGIkKDRU85SdUV2AhaqAAWUf8G98OO1qvYFLXqGjIEQyNeraMRRs VvMB+5/4vzTL6GSixf33hayPdk2GJd6v9dH0IjbloWUgLIX/MOo5vrKis7VpekYbOADL gXeYdDnwp0fwr3SA2DKm7zKUwF5RpuGvNTwQD7LNERf2tsRhjcu4eZ5u7n/efwa1CvtU MTuiyv9+s27x+x0pGp3atM/2OzSTYWBPLXaByE/aUSg9lZVJ601VGJCWwKa8lR5yXnhU NuBJ/MBrOMUAhXBVgTyVoovAPm/sdgxbmZAH85cWX583oGKPmBd/Hg0Q+zbW2rB2gRnZ lznw== X-Gm-Message-State: AIVw112VWnkl9FF7xqubUJgKp2Ws/YkNrX78GzVQ5brKY5+LnAj/6x5i eWUj41Rw89uFMA== X-Received: by 10.99.54.9 with SMTP id d9mr12227098pga.195.1501404058534; Sun, 30 Jul 2017 01:40:58 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.146]) by smtp.gmail.com with ESMTPSA id b185sm27220522pfa.65.2017.07.30.01.40.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 30 Jul 2017 01:40:58 -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 12/29] scsi: hptiop: constify pci_device_id. Date: Sun, 30 Jul 2017 14:10:28 +0530 Message-Id: <1501404036-9005-2-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1501404036-9005-1-git-send-email-arvind.yadav.cs@gmail.com> References: <1501404036-9005-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/hptiop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/hptiop.c b/drivers/scsi/hptiop.c index 7226226..31415b8 100644 --- a/drivers/scsi/hptiop.c +++ b/drivers/scsi/hptiop.c @@ -1647,7 +1647,7 @@ static struct hptiop_adapter_ops hptiop_mvfrey_ops = { .host_phy_flag = cpu_to_le64(1), }; -static struct pci_device_id hptiop_id_table[] = { +static const struct pci_device_id hptiop_id_table[] = { { PCI_VDEVICE(TTI, 0x3220), (kernel_ulong_t)&hptiop_itl_ops }, { PCI_VDEVICE(TTI, 0x3320), (kernel_ulong_t)&hptiop_itl_ops }, { PCI_VDEVICE(TTI, 0x3410), (kernel_ulong_t)&hptiop_itl_ops },