From patchwork Wed Aug 2 17:29:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9877299 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 74DA560390 for ; Wed, 2 Aug 2017 17:31:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 63F94287B8 for ; Wed, 2 Aug 2017 17:31:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 58AAB287E8; Wed, 2 Aug 2017 17:31:28 +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 12360287BD for ; Wed, 2 Aug 2017 17:31:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752380AbdHBR3X (ORCPT ); Wed, 2 Aug 2017 13:29:23 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:38639 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752314AbdHBR3V (ORCPT ); Wed, 2 Aug 2017 13:29:21 -0400 Received: by mail-pf0-f195.google.com with SMTP id e3so6613517pfc.5; Wed, 02 Aug 2017 10:29:21 -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=k/frwrq2xV3NU8rkXWfS0WVlWcgfHP8zFDmbGqojm6o=; b=FG48PEDO2CoiFnwu9r1AOtOJjggLVSFNtJolSEzBL7gD3SR034Le6jiR6uFpSWg0RD K1A+JFRRHZIekhXO9DDg5at9x3Gnhhtcj8RMODsqxpmH9PZqPg7xXr5fF9iNe/z/xhmb wMvBLu45Vk+4CqBM8VLKJ6t25m4kG4F1vapRnHh+CEchdN4a/xvWDrDREh+NgDCxMdTy EqYCccmst/pCS3fvxJYZg67/3nmsuU7SnCsMLqlTgrK25C0RhuaClH0nCZbfmQpuTduq GwKpiTsCa6fus87B+7u9CVadx+o+kUL7qRP29vq5p2J6154DMXKwQwww83dj4/JHfTjg ZUWg== 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=k/frwrq2xV3NU8rkXWfS0WVlWcgfHP8zFDmbGqojm6o=; b=f9ojb6aaWRIKg2kBNv4djjSzFJOtUsh3hRfeVb9GnC6v8XABosgmkkg698kg1vwSlS nVTiLWhNjdgp7oUQbfMPDZa3k/Yhshlo9oboUc7X9CKnUiDNjfMwNd0KHk/XVE46UMOV 4QL5rxp7qiW55Ql+dOjLJlVo+47q0iphtmBaJiYBC1ku3gC8NDO4tzqVjrgVexfmivEa Erii65EBmrOO+9ZNUoo0JyzUqdKWZEIrk1PiiUAIHQYcsNQSCqHoS+LOW4fyRY5QBMI3 Zyop9Ag04p5VpIj2TY9g2KJGqd8gUsM8Frv5e/UZSWuNw8v5xju5TymAHMibbCpFxJMB R7SA== X-Gm-Message-State: AIVw110RIF1Mey7o9+FPx7eHu9wjXh9qJKfHVk42OspiWid9s0+cSqTM fTxT1MLkEfBMiA== X-Received: by 10.98.12.78 with SMTP id u75mr23107686pfi.18.1501694961193; Wed, 02 Aug 2017 10:29:21 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.78]) by smtp.gmail.com with ESMTPSA id q3sm17566741pfl.89.2017.08.02.10.29.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 02 Aug 2017 10:29:19 -0700 (PDT) From: Arvind Yadav To: sathya.prakash@broadcom.com, chaitra.basappa@broadcom.com, suganath-prabu.subramani@broadcom.com Cc: MPT-FusionLinux.pdl@broadcom.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] scsi: mptfusion: constify pci_device_id. Date: Wed, 2 Aug 2017 22:59:03 +0530 Message-Id: <1501694945-18061-2-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1501694945-18061-1-git-send-email-arvind.yadav.cs@gmail.com> References: <1501694945-18061-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/message/fusion/mptspi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/message/fusion/mptspi.c b/drivers/message/fusion/mptspi.c index 9a336a1..f9823bb 100644 --- a/drivers/message/fusion/mptspi.c +++ b/drivers/message/fusion/mptspi.c @@ -1243,7 +1243,7 @@ static struct spi_function_template mptspi_transport_functions = { * Supported hardware */ -static struct pci_device_id mptspi_pci_table[] = { +static const struct pci_device_id mptspi_pci_table[] = { { PCI_VENDOR_ID_LSI_LOGIC, MPI_MANUFACTPAGE_DEVID_53C1030, PCI_ANY_ID, PCI_ANY_ID }, { PCI_VENDOR_ID_ATTO, MPI_MANUFACTPAGE_DEVID_53C1030,