From patchwork Sun Jul 30 08:37:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9870265 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 4F9E96032A for ; Sun, 30 Jul 2017 08:39:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 404AA28584 for ; Sun, 30 Jul 2017 08:39:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 34A49285DA; Sun, 30 Jul 2017 08:39:29 +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 F142428584 for ; Sun, 30 Jul 2017 08:39:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754035AbdG3IiB (ORCPT ); Sun, 30 Jul 2017 04:38:01 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:36315 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753947AbdG3Ih7 (ORCPT ); Sun, 30 Jul 2017 04:37:59 -0400 Received: by mail-pf0-f195.google.com with SMTP id r63so2846649pfb.3; Sun, 30 Jul 2017 01:37: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=gSEF2t5YFUwZJY9ilKOndkkb14vpFyesRUfxpmJaWLk=; b=tb0aWvmLkIfID2K8RHyEXe6jcl9Q0hdvON4KMaBbZy5GuYyZfoi86YsBIFcI1sOjug tDspvMSLc7hzea2H9cTkqX5j4RnRYsN6pfiBD+H+Gp1R1bUhIqwBoESNcfc81KoF96mz VkpF0bwEvqaTa/khf3ml9lKsT/396qbgUyuplqOfZGiNq2ejFLzDxh+GE/0KkJGfMKJr +gMLYLoycdRf6H883C0w5jQRz956oW/hLKk0OOnYdBNXriTKbhLcP5EVYtbrVWu+a7Mt iBKR5EKD1tJpwidb+yBnrbeJ4uPZD0SzreDQPHUpFxLJzK0va15tLBcpX7NfJc3ag/tG Trig== 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=gSEF2t5YFUwZJY9ilKOndkkb14vpFyesRUfxpmJaWLk=; b=XCaMHUCILlyIhjsccsuhI3pPoZkYyiBh4YIuoFMWu0GBRPtIdB6F1Tijd/waALzbXI UjK7kgekFUUykbyOyfNS0gKpNfJj8+8T7IvHAq5rAx6d8UwKit73+cGxcu0rh1RwVJiO fMebGAI4m2ytlNRnJUThprBQFD56mE8dg5lFpo/BdmBiQiln8+08zahRmUrNiuwPv1Ni CP8NOoAn0Ti/M2Mm4qZOu8iP5mAEEI748D+Da87QfpiWxkBnCOz+69raAyaJ7aux5dg+ PI/355mn5rUmrHFdnWTrqDqS3NJ6yDMjwYIfsSkE8Zj8Sda6VNF37l4ikCRndzAK8JZo v8eQ== X-Gm-Message-State: AIVw113Qzo0abwxD9Uq5vKO2/WkMmL1alUJmXi9CsPyjcNnsWEMi5W8R aNEiNyQiMdUTqw== X-Received: by 10.99.1.211 with SMTP id 202mr12344706pgb.311.1501403878613; Sun, 30 Jul 2017 01:37:58 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.146]) by smtp.gmail.com with ESMTPSA id h27sm45996082pfd.34.2017.07.30.01.37.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 30 Jul 2017 01:37: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, 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 05/29] scsi: qla4xxx: constify pci_device_id. Date: Sun, 30 Jul 2017 14:07:14 +0530 Message-Id: <1501403839-8876-6-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/qla4xxx/ql4_os.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/qla4xxx/ql4_os.c b/drivers/scsi/qla4xxx/ql4_os.c index 64c6fa5..41e1027 100644 --- a/drivers/scsi/qla4xxx/ql4_os.c +++ b/drivers/scsi/qla4xxx/ql4_os.c @@ -9793,7 +9793,7 @@ static const struct pci_error_handlers qla4xxx_err_handler = { .resume = qla4xxx_pci_resume, }; -static struct pci_device_id qla4xxx_pci_tbl[] = { +static const struct pci_device_id qla4xxx_pci_tbl[] = { { .vendor = PCI_VENDOR_ID_QLOGIC, .device = PCI_DEVICE_ID_QLOGIC_ISP4010,