From patchwork Sun Jul 30 08:43:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9870335 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 549606032A for ; Sun, 30 Jul 2017 08:45:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 45AAE2858E for ; Sun, 30 Jul 2017 08:45:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3A72B285E3; Sun, 30 Jul 2017 08:45:27 +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 0522E2858E for ; Sun, 30 Jul 2017 08:45:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754152AbdG3Ioo (ORCPT ); Sun, 30 Jul 2017 04:44:44 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:37471 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754078AbdG3Iok (ORCPT ); Sun, 30 Jul 2017 04:44:40 -0400 Received: by mail-pf0-f195.google.com with SMTP id 72so3362213pfl.4; Sun, 30 Jul 2017 01:44:40 -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=XVggKtwh//yHI0QCeTkW3FqjkPRABRWyVHy4zmKK7xg=; b=Uzq5q1x+jYLrbYOUYENuGNkEkk9o+htyqx/XCy5kBAxGCJ86v4ThbGY89Z+dSjSKJx AGMmHlGtFOO2gact3+0MYLe+e9GGGIXa9NACX1i5q47k3Uj/35c5N2kOZGljCo2m2a7f IcRjjEZfULhBHZCWfGcbr8NDdq2vLQFwuGyR3Myqq+0uSCHFhuFuJueOBvC7u+J1Z8WE 8FN4D06owy7nVMZwgNUS2FYQmtEzRNwvafZXhoVFWeKgDG3rRiNgeFHcZdEmA8PV5fOK XsOpQn2MDhakoSAQckveXdUvXP6MGFbAwGcbyxAawZ5e1Es7NRpoQnphLJXJ0FBe/JzC +v0g== 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=XVggKtwh//yHI0QCeTkW3FqjkPRABRWyVHy4zmKK7xg=; b=qn5fE5ph7DvDKwxC0OCUOhKlb8TzSgPJz2g8KxRAI87g87wycvPOfeQapMgj8dAyom 6EU3IOAXJ5JzB1KO2uBun97GFsMIlZ8aQCaOWvqoKXI/QJhTN9srOqcqfoZxbREQf6hT EiO4akaA/IAA/jg+kVmmvLs8Vcs/DM4DPxg0Bp5HIkYMTmxrvz0b3tUSeu3Ve5og5xAu zRktIHM22o9jkeCoPDaiVi4qHc8y2CDO8cfssOT5tqyqabBl9NMfezKOFTFwZYTGdbG9 EUa3r27fb4Rd5KO3t+lCd5sTAcuToeGJjDjXGWXCBYQbTL5/MbCLGs699fpIwkVXUdRx MqSg== X-Gm-Message-State: AIVw111yqNmwXIQMEnbOkO6dLtgCs/dPLs7evZ+Kl13xkWP8CFoW6ciH TGRNPeOG+Ho2LQ== X-Received: by 10.98.220.27 with SMTP id t27mr12455565pfg.32.1501404279988; Sun, 30 Jul 2017 01:44:39 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.146]) by smtp.gmail.com with ESMTPSA id p126sm40644837pfp.28.2017.07.30.01.44.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 30 Jul 2017 01:44:39 -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 27/29] scsi: advansys: constify pci_device_id. Date: Sun, 30 Jul 2017 14:13:53 +0530 Message-Id: <1501404235-9105-7-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1501404235-9105-1-git-send-email-arvind.yadav.cs@gmail.com> References: <1501404235-9105-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/advansys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/advansys.c b/drivers/scsi/advansys.c index 24e57e7..350070f 100644 --- a/drivers/scsi/advansys.c +++ b/drivers/scsi/advansys.c @@ -11714,7 +11714,7 @@ static struct eisa_driver advansys_eisa_driver = { }; /* PCI Devices supported by this driver */ -static struct pci_device_id advansys_pci_tbl[] = { +static const struct pci_device_id advansys_pci_tbl[] = { {PCI_VENDOR_ID_ASP, PCI_DEVICE_ID_ASP_1200A, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, {PCI_VENDOR_ID_ASP, PCI_DEVICE_ID_ASP_ABP940,