From patchwork Sun Jul 30 08:37:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9870261 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 2C6856032A for ; Sun, 30 Jul 2017 08:39:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1CEAE2656B for ; Sun, 30 Jul 2017 08:39:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 11D772856D; Sun, 30 Jul 2017 08:39:13 +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 AB0262656B for ; Sun, 30 Jul 2017 08:39:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753561AbdG3Ii7 (ORCPT ); Sun, 30 Jul 2017 04:38:59 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:38407 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753947AbdG3IiO (ORCPT ); Sun, 30 Jul 2017 04:38:14 -0400 Received: by mail-pg0-f66.google.com with SMTP id 125so14239736pgi.5; Sun, 30 Jul 2017 01:38:13 -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=LAeAxwbIQpS/qvmzDd6a+iL+HsQq8QY4L/EV9G/jByo=; b=X6TsUqa5m3tkodUJrPPKMmDzUAxyUVHIwqiEloCwo5oKyHe/hjj79KZ3VMpyrm/ZB0 wHK7M17pFYSQpxPnl9Je8LA3VZ+fBxHMZqegi7GkgA3o8SZxfW/ehdNh5957rrrPvxWp uRyG7Mh9CoxDVgV3tnePVCpiB16E4eEfHmkqUREojiqm5s3YLBh4HwHSS4pc+iK3mGT5 CkYMSv+ovdcMKuZ4HBMl170SSWp4IfXVkLg9coe+hQD09VFjfzpam9B9vBFyPa1LpcJc 7Ub4ENXDjpp8srUQBLvi0DP4pQxiVyF0S5KAZEu4LyPU9JgpK917TobizJZh+hhM5bjc bOlw== 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=LAeAxwbIQpS/qvmzDd6a+iL+HsQq8QY4L/EV9G/jByo=; b=C+PMZoZUuGcbkpcibIOQ1wt9tiNaG7E2Gbx4/gASOvpOpUe7KoCM+sN9iXRydkHSva BpTgIrz9tJ2QuuCwlAU1qck4XNh6oxsh/qH6c51Zyw0ioWJgNALMloP0wtNGXHhIbY5m INHJATYoLsvTPvvZmdGhpTT+GUlfB1p0DRgZmq3EJqGHITBrez8Fu5V2jYwo51FNfDfv +D2aoKfaqSNtz1tAvRwQ8S60VttPfuOWUGXc3ibA5gl6AdobYHphs/dNr3oYRhn8iYwe N3P4/OtznAjWB5ERv8x+yDpgfW6por/IQeW9kvvrNjMtfOOX0zB7haCGQ9Xeu9jjGav1 P3nA== X-Gm-Message-State: AIVw110R1ZvPCz3ExPCc8+uPAGiTtLXlDBc7l677SQcJ/+zz2GRsa8Vf E1RfB8ihk5gjFQ== X-Received: by 10.99.8.135 with SMTP id 129mr12158940pgi.273.1501403893565; Sun, 30 Jul 2017 01:38:13 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.146]) by smtp.gmail.com with ESMTPSA id h27sm45996082pfd.34.2017.07.30.01.38.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 30 Jul 2017 01:38:12 -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 08/29] scsi: ipr: constify pci_device_id. Date: Sun, 30 Jul 2017 14:07:17 +0530 Message-Id: <1501403839-8876-9-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/ipr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/ipr.c b/drivers/scsi/ipr.c index b0c68d2..edc7030 100644 --- a/drivers/scsi/ipr.c +++ b/drivers/scsi/ipr.c @@ -10644,7 +10644,7 @@ static void ipr_shutdown(struct pci_dev *pdev) } } -static struct pci_device_id ipr_pci_table[] = { +static const struct pci_device_id ipr_pci_table[] = { { PCI_VENDOR_ID_MYLEX, PCI_DEVICE_ID_IBM_GEMSTONE, PCI_VENDOR_ID_IBM, IPR_SUBS_DEV_ID_5702, 0, 0, 0 }, { PCI_VENDOR_ID_MYLEX, PCI_DEVICE_ID_IBM_GEMSTONE,