From patchwork Sun Jul 30 08:40:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9870289 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 AA77E603B4 for ; Sun, 30 Jul 2017 08:42:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9B6742858E for ; Sun, 30 Jul 2017 08:42:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8F6DE285EE; Sun, 30 Jul 2017 08:42:14 +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=ham 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 35A882858E for ; Sun, 30 Jul 2017 08:42:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754037AbdG3Ilw (ORCPT ); Sun, 30 Jul 2017 04:41:52 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:35810 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754140AbdG3Ilh (ORCPT ); Sun, 30 Jul 2017 04:41:37 -0400 Received: by mail-pg0-f67.google.com with SMTP id d193so27656237pgc.2; Sun, 30 Jul 2017 01:41:37 -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=9/hxD4h0L1ETIXin7sctBe/JoRz2Zf17DFbf5rnlfjg=; b=q8ieuToTYIdteEGyLI+hPUShkgER2WP0w3xauUhrxpOKiFH7ajz7wOGlbCCOdgnQaL mhcanBwu0rhlNydJnL6HKHSyuZAbemfBKQTIyNQ+JPFTsBt3Re+9xqqZv3FUIb8NA051 wJORdUjJjqIwG90e4MjsR7hw1dSguMHqwlFHiHtqjTFMCE/cJeoIynigIBtA68/CrDnE saQqraxcrDfiEeUwMptvgB6+oGK8F/EbdgwDd36ViqDor1cFAcE0P115c7XdzASZUt1i u8xDeXjetMGZ4oSZE8/HxwMf9cmIGdhChaCpV5eTJJhPHRiYvnf+YsBNf/1Gipzm888S tLiQ== 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=9/hxD4h0L1ETIXin7sctBe/JoRz2Zf17DFbf5rnlfjg=; b=joKay030d+F1W3Kow/s5wuypQvAh0IaGoZCGTR4yEqpIdwiG+68Uab5ZR7m6o3PlJl jXPylrvSGVvS+l5Bkzp0QZF8ryKt9SH09lIi+OUBkLE7Qljc+O0mH1Rrf4X8cjtPw06q cWV5ddoKKbjl8nNtMZAUmK94NAbHiRSw5CR/OSn5ewea2NZZoLBzZk8wLaNdYti0WrYU Nbot4tjcdHOWh0H7ZOf8d4HICsS8jpFajzTrOtx1gH7eqIcLPEeQTVKbwZJ0LADsszx+ m2oB3LXZFsdIK/EUjfovseGHSkZd5UkDC1PErnzdtC10kjAQc/NBwfZ9eEk2vB5Wdx76 Vhyw== X-Gm-Message-State: AIVw111VeJ5D+PhmP9zuhwsOfZJB8LmZ7Om+4xcaUp+4dPPGIzO0HBUD 7gTyjKV3RQAFCA== X-Received: by 10.84.211.79 with SMTP id b73mr13695089pli.462.1501404097284; Sun, 30 Jul 2017 01:41:37 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.146]) by smtp.gmail.com with ESMTPSA id b185sm27220522pfa.65.2017.07.30.01.41.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 30 Jul 2017 01:41:36 -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 20/29] scsi: cxlflash: constify pci_device_id. Date: Sun, 30 Jul 2017 14:10:36 +0530 Message-Id: <1501404036-9005-10-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/cxlflash/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/cxlflash/main.c b/drivers/scsi/cxlflash/main.c index 077f62e..88bd551 100644 --- a/drivers/scsi/cxlflash/main.c +++ b/drivers/scsi/cxlflash/main.c @@ -3155,7 +3155,7 @@ static struct dev_dependent_vals dev_briard_vals = { CXLFLASH_MAX_SECTORS, /* * PCI device binding table */ -static struct pci_device_id cxlflash_pci_table[] = { +static const struct pci_device_id cxlflash_pci_table[] = { {PCI_VENDOR_ID_IBM, PCI_DEVICE_ID_IBM_CORSA, PCI_ANY_ID, PCI_ANY_ID, 0, 0, (kernel_ulong_t)&dev_corsa_vals}, {PCI_VENDOR_ID_IBM, PCI_DEVICE_ID_IBM_FLASH_GT,