From patchwork Sun Jul 30 08:37:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9870251 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 BA2DB604D9 for ; Sun, 30 Jul 2017 08:39:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A779D27CF9 for ; Sun, 30 Jul 2017 08:39:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A5C802852D; Sun, 30 Jul 2017 08:39:01 +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 6D7B728488 for ; Sun, 30 Jul 2017 08:39:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754105AbdG3Ii0 (ORCPT ); Sun, 30 Jul 2017 04:38:26 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:34457 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754059AbdG3IiX (ORCPT ); Sun, 30 Jul 2017 04:38:23 -0400 Received: by mail-pf0-f195.google.com with SMTP id t86so1830403pfe.1; Sun, 30 Jul 2017 01:38:23 -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=LmPE9N9C3f7wV/YxAiz5ioRkb+35TkKrd48azo+F+YY=; b=vDkK/P7mY1w2BQhAvBXkBWyhKYWiLgLJyUInpjYGkFhfmw2rfr2maYWskNnxWqXDaS QGIFQg6F2uMujvprksDvN1MZ1BhVD0dLZGCDHI9Wav7InECcH/LDEMgi7btjaaRkIX/1 QY7YJwh2Rmb5X3HLZYPcZjDSABQb9XgqsPQPaosXSknaN0EgKm3hSDdSLQw1amAAdJ+h C6Y/2ftsfwBlEnw/8aP72mO1E3w/8xGrwNT5F0ceTRH4TBhmFDPo4IC1m56toxN7W2QH BSEwMKFIOpXNLCJzwrqmmgGd5/JWJdnKuZKXKMLFF9AHplHdW98awf/3EhnTcz04G3aA ChdA== 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=LmPE9N9C3f7wV/YxAiz5ioRkb+35TkKrd48azo+F+YY=; b=Fv9Py3ahcHxFRu52QfPmh+FKf/AKdltIb7gfA60X9QcdLZwDuawre7ApCEbbQwFgb3 jTjI3KGK9hdeHFzDh5Rcs12ZT40F1cuLD5RemNpLkLklSKa1aZjdUl8G+reHxHbnVYdz ATaa2fIJxQpLsy73VEBKk3BxJc8SG8oJX/LbTO5e6muvW8YItOEdgtnEgbCjNH24Qq0K TWBAW+GsjN91yM7lUWNjo9i7+1JhaTr648bnJhpsq7e0HtHR9eacx5pz9SoBVYKTdzHm uf+Y0AybDM1cSOwULlH6RlzNOV7Fcs2xVwhxkEyBmK1c0ElFzNhIQnysOXfclH9ozsYp dQgw== X-Gm-Message-State: AIVw1111l2zq2HF7QOMivK8J1geouUTaajRU6R3Xmr9Re9dLW6kt3QXY DXpgqdSPqbESwA== X-Received: by 10.99.233.83 with SMTP id q19mr12403285pgj.205.1501403903358; Sun, 30 Jul 2017 01:38:23 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.146]) by smtp.gmail.com with ESMTPSA id h27sm45996082pfd.34.2017.07.30.01.38.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 30 Jul 2017 01:38:22 -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, yokota@netlab.is.tsukuba.ac.jp, QLogic-Storage-Upstream@cavium.com, jinpu.wang@profitbricks.com Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 10/29] scsi: dpt_i2o: constify pci_device_id. Date: Sun, 30 Jul 2017 14:07:19 +0530 Message-Id: <1501403839-8876-11-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1501403839-8876-1-git-send-email-arvind.yadav.cs@gmail.com> References: <1501403839-8876-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/dpt_i2o.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/dpt_i2o.c b/drivers/scsi/dpt_i2o.c index 256dd67..ba90cc4 100644 --- a/drivers/scsi/dpt_i2o.c +++ b/drivers/scsi/dpt_i2o.c @@ -181,7 +181,7 @@ static u8 adpt_read_blink_led(adpt_hba* host) */ #ifdef MODULE -static struct pci_device_id dptids[] = { +static const struct pci_device_id dptids[] = { { PCI_DPT_VENDOR_ID, PCI_DPT_DEVICE_ID, PCI_ANY_ID, PCI_ANY_ID,}, { PCI_DPT_VENDOR_ID, PCI_DPT_RAPTOR_DEVICE_ID, PCI_ANY_ID, PCI_ANY_ID,}, { 0, }