From patchwork Sun Jul 30 08:40:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9870295 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 5091E6032A for ; Sun, 30 Jul 2017 08:42:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4155B28584 for ; Sun, 30 Jul 2017 08:42:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 362D42858E; Sun, 30 Jul 2017 08:42:15 +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=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI 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 158A7285E7 for ; Sun, 30 Jul 2017 08:42:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754141AbdG3Ilh (ORCPT ); Sun, 30 Jul 2017 04:41:37 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:33380 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754055AbdG3Ild (ORCPT ); Sun, 30 Jul 2017 04:41:33 -0400 Received: by mail-pf0-f193.google.com with SMTP id k72so20451053pfj.0; Sun, 30 Jul 2017 01:41:32 -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=129ZKkcmYga+gPK3wNMTZlwDZka5PhjDtBzl9+rbmXQ=; b=QFXpW09BSmsmH/6iS5vUI2ecZmAFlyP/4FWPLU2nC4Os9Pm5igCgaG6oW7Zd+OBFds TkgK1FjoLkJ7oVd09Ir5CIsLo4P279CdkzYaiXZNMYIiRqcYxAIkR/xw452deMD7HfWN V2IaCqxPbngGInbEHf4jYnBneXgfZBnLLeWiZo9PSS2TVH1bAgW4rz4yQhVaczKqzY1K pwSOjjuVkDONqRcZsQ6lL1YgLj2dY2aZ/8jb2gvRt7k1IA3eksJ1s7hvXIlzN6AAUtr7 uaW3HLhJSVtEaJL9JqkCyuQuIItoTNVKZWimpCU1MnEMuK7YmGDndOXiLvHh8+j0mYzT yHPg== 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=129ZKkcmYga+gPK3wNMTZlwDZka5PhjDtBzl9+rbmXQ=; b=fcADFlMtByVBonmOT3jCUpIUeTtBb6mlhNaoK3kalGO2l0KDz/u1eD40m5l5eFYnv1 lq2+Pljiem2OIFYegFDR7boP9cc1U9JPY1jfj4dNW1KAqtwWV7gHVEhZ8lVmXdgnlth4 d78zOdgPvc+PRbr3LE1GhzVwI3boCnNKO4GSIUrUbnryRFYR326IV1r34c1vDL2FvuiZ Gbeu7kOlW+6atjP6KeVFuq/lQX0yFp+bIB0zUcWOyGEiwsob520P7HwMIt9qR0LgOdTM a7YCbriTzHIVcxYklMbWWvjxO7X9975+2zFYT0OmvwbZ5C2Gy2lPX62I5qA8hqKeUXoj AIDQ== X-Gm-Message-State: AIVw111vAfcfKQcOfGqKCGFrXpc+BWiRCRDkXcOH/ccQn1vxSDeG/iJ6 JUsCND1JAXOIhw== X-Received: by 10.99.117.90 with SMTP id f26mr12155912pgn.441.1501404092598; Sun, 30 Jul 2017 01:41:32 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.146]) by smtp.gmail.com with ESMTPSA id b185sm27220522pfa.65.2017.07.30.01.41.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 30 Jul 2017 01:41:32 -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 19/29] scsi: megaraid: constify pci_device_id. Date: Sun, 30 Jul 2017 14:10:35 +0530 Message-Id: <1501404036-9005-9-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/megaraid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/megaraid.c b/drivers/scsi/megaraid.c index 3c63c29..17012c8 100644 --- a/drivers/scsi/megaraid.c +++ b/drivers/scsi/megaraid.c @@ -4652,7 +4652,7 @@ megaraid_shutdown(struct pci_dev *pdev) __megaraid_shutdown(adapter); } -static struct pci_device_id megaraid_pci_tbl[] = { +static const struct pci_device_id megaraid_pci_tbl[] = { {PCI_VENDOR_ID_AMI, PCI_DEVICE_ID_AMI_MEGARAID, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, {PCI_VENDOR_ID_AMI, PCI_DEVICE_ID_AMI_MEGARAID2,