From patchwork Wed Aug 2 17:29:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9877293 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 0544D6035F for ; Wed, 2 Aug 2017 17:31:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E81B5287BD for ; Wed, 2 Aug 2017 17:31:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DCCBE28807; Wed, 2 Aug 2017 17:31:04 +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 A55F2287BD for ; Wed, 2 Aug 2017 17:31:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752731AbdHBR3p (ORCPT ); Wed, 2 Aug 2017 13:29:45 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:35223 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752369AbdHBR31 (ORCPT ); Wed, 2 Aug 2017 13:29:27 -0400 Received: by mail-pg0-f66.google.com with SMTP id l64so7090790pge.2; Wed, 02 Aug 2017 10:29:26 -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=ZkKVBP5jVXcnlkp+iDHRyZcvMAXDVhf/Y2V6SukSS+A=; b=jGsTaMghwdJ72cBw5q3dsiP/qxmTSt9sgVeqxi/4XeA4JJ7LgaV1vNbbLGt0PvygzX nqgidTNrRsUSGM+ABZqRv9De8AQ/CCrFvBfNoQnwcDS/40j9YP7JAAGch1PgJv2mxrgn 3tOOyvN8GEi2yvHuwzXW3qWP0R638Sw4ry9CkhHJ4xaf8KQTr1GmFCxf18dp2afyj+j/ +wJ17tY36kkZPlo7OZDcsbueuzvrjFjqFsWlSS21qlLP9ROHj5eA+uRBLJP/sc7IesXs +sCO/4mIs0+wOx40K6hZeZK+4ew1BN6aj1K/0ZRbas01rPUXYhv64UlPnT7HWgF7KOZ1 kGBg== 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=ZkKVBP5jVXcnlkp+iDHRyZcvMAXDVhf/Y2V6SukSS+A=; b=pBo5vkH0Weh6ikPOf0t9TjkKrZNaTh149SFPm0/zF32/MDAyfczmeF6NU2YwLifzpe Rzdy82+zgdQGJ5FKobtHaWNRbgPMZOnENot6r4ofloaOC2G713vAHE4R1tP0TVzmrdqz 29pscaL8+AmhpPhfqdG4WaIb1IpGsGI6aa9wRlHB4sESsfZfDengQKfckW8+dXm4/2MC qPGIPTs+BmTO+RL66QUiP46Yx4oLTHXTkUbKIgIaF2YGaSqj0ilKtbJfK4Wwq7gqEt52 GeEi1FZKkDqFHeMG8hQOHdbfGPzJLHaUzwD8mTNkpjRrmgfoe8kGBCoAVLvlEbCelXKu BTZQ== X-Gm-Message-State: AIVw111UjjyuysTB6KsgQOsiYpkynQXD8gG1g1tIN/pzpQnfEN68c/dr QNgiBXWOoyiFMA== X-Received: by 10.101.70.137 with SMTP id h9mr22825859pgr.50.1501694966683; Wed, 02 Aug 2017 10:29:26 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.78]) by smtp.gmail.com with ESMTPSA id q3sm17566741pfl.89.2017.08.02.10.29.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 02 Aug 2017 10:29:26 -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 3/3] scsi: mptsas: constify pci_device_id. Date: Wed, 2 Aug 2017 22:59:05 +0530 Message-Id: <1501694945-18061-4-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/mptsas.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/message/fusion/mptsas.c b/drivers/message/fusion/mptsas.c index f6308ad..8604573 100644 --- a/drivers/message/fusion/mptsas.c +++ b/drivers/message/fusion/mptsas.c @@ -5358,7 +5358,7 @@ static void mptsas_remove(struct pci_dev *pdev) mptscsih_remove(pdev); } -static struct pci_device_id mptsas_pci_table[] = { +static const struct pci_device_id mptsas_pci_table[] = { { PCI_VENDOR_ID_LSI_LOGIC, MPI_MANUFACTPAGE_DEVID_SAS1064, PCI_ANY_ID, PCI_ANY_ID }, { PCI_VENDOR_ID_LSI_LOGIC, MPI_MANUFACTPAGE_DEVID_SAS1068,