From patchwork Sun Jul 30 08:40:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9870301 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 5AF8F6032A for ; Sun, 30 Jul 2017 08:42:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4C7F128584 for ; Sun, 30 Jul 2017 08:42:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4146D285E3; Sun, 30 Jul 2017 08:42:39 +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 EDF4F28584 for ; Sun, 30 Jul 2017 08:42:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753932AbdG3ImY (ORCPT ); Sun, 30 Jul 2017 04:42:24 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:32821 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753969AbdG3IlW (ORCPT ); Sun, 30 Jul 2017 04:41:22 -0400 Received: by mail-pg0-f68.google.com with SMTP id u185so5368959pgb.0; Sun, 30 Jul 2017 01:41:22 -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=1TB0laZYHoaZOMQJu7OErOq8qCJ5A0cYsk2J1LLwGKM=; b=qjHLu66/zo2pK6TCUGz4+h24LKafJ9mY9iljaVfgMK4ioGVgJB39K3p4fp28G3nVB3 LL8CCyk/pZ5SbwgZD+LvB/so+6uixysOD1cpYJbBQ7tUy8W5o3K+WM8ahsOxzPfYMIxo yEd/HAcYyul/xNmNghq8Q8L8u94Czt7kF7Jqn/7b9RwAHySpr6U+GdAxA0i/NoeRcc+c uf72+8UQQ7+Nnkb7n79i5UPix4AVeJB3vwSLuiJk7Eyop4HNaebW+I7Zm5iGPcPR/ymz k2iZasrBQnSl1g7rBJQwAbWUx/iAH/SJ2CbGWKoMnCB1psaVEjoySTiUSIOnCxnGjcNh b9WA== 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=1TB0laZYHoaZOMQJu7OErOq8qCJ5A0cYsk2J1LLwGKM=; b=M0C+4j0SyX9BM4uxpA3YwNItGJZPTCnjHw20snc8m4Pi0ryJ6YR6TvMxM94DW6+paS SGKJZN8xs+LXShOLAdU6aCpq2V/PplqJwkF0YkWzjDVQK/EZDY9NFdxZb2m0/fUksdHT 1jTjKFSRKkivLNOZLklSNGsQiXKo8ddN3nVjy6p5XDJPE0ODDh6yf76n0A84zpKLGOq8 C1oIL4YcMhjwRzkuRbKvdYwZz/sfVs6Sh9cE/hIImnqOznxfzAuNXvV5PYR9sdGXczc0 x9uUjpNphXeuTwML1cT1XfwhHTRt/A2cqr/Iu4NR7sKWLsdasF1fkMx6gtXM1PF6IDx8 xjYw== X-Gm-Message-State: AIVw1129Xo3bqo4UFpDY2bWB3U/67FvIJg5+7ykOPkqPhVYca8C2xJBX wiVTTDqd/SBthw== X-Received: by 10.98.67.82 with SMTP id q79mr12025251pfa.121.1501404082278; Sun, 30 Jul 2017 01:41:22 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.146]) by smtp.gmail.com with ESMTPSA id b185sm27220522pfa.65.2017.07.30.01.41.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 30 Jul 2017 01:41:21 -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 17/29] scsi: qla2xxx: constify pci_device_id. Date: Sun, 30 Jul 2017 14:10:33 +0530 Message-Id: <1501404036-9005-7-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/qla2xxx/qla_os.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c index df57655..2ee8e86 100644 --- a/drivers/scsi/qla2xxx/qla_os.c +++ b/drivers/scsi/qla2xxx/qla_os.c @@ -6494,7 +6494,7 @@ static const struct pci_error_handlers qla2xxx_err_handler = { .resume = qla2xxx_pci_resume, }; -static struct pci_device_id qla2xxx_pci_tbl[] = { +static const struct pci_device_id qla2xxx_pci_tbl[] = { { PCI_DEVICE(PCI_VENDOR_ID_QLOGIC, PCI_DEVICE_ID_QLOGIC_ISP2100) }, { PCI_DEVICE(PCI_VENDOR_ID_QLOGIC, PCI_DEVICE_ID_QLOGIC_ISP2200) }, { PCI_DEVICE(PCI_VENDOR_ID_QLOGIC, PCI_DEVICE_ID_QLOGIC_ISP2300) },