From patchwork Sun Jul 30 08:40:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9870293 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 CA0AD6032A for ; Sun, 30 Jul 2017 08:42:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BBA2028584 for ; Sun, 30 Jul 2017 08:42:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B0910285E4; Sun, 30 Jul 2017 08:42:14 +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 7584E28584 for ; Sun, 30 Jul 2017 08:42:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754064AbdG3Ilb (ORCPT ); Sun, 30 Jul 2017 04:41:31 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:37894 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754055AbdG3Il2 (ORCPT ); Sun, 30 Jul 2017 04:41:28 -0400 Received: by mail-pg0-f65.google.com with SMTP id 125so14243599pgi.5; Sun, 30 Jul 2017 01:41:28 -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=S7ZyG/sYd+jW35zMJ/C05Sf0pTos3q25TTuK4vI9DYk=; b=IA5LKjW9nqnJvikHxwp4lZRRHQdtw5SksiJRyfpafZ2UvJwJ0hLn37NPsjLsSkn3YM sXRsiyBT8NzuBRVOywj/apV/OmyxIGu43TMjdDcf1k8r8rpcZIM/8yMdVq+G1DGp+ZTz 2c86VzOBp5WmrnsqN6QpGhnNBw0Yj3EalnQQMXock7z6vT1JChesVXImBfciLECprkIJ lOIVABcNuYCvUzQ2kv0bk6wHRpi8PeN3xWCY3flgmHpdzwNDtxyDBGlS9CdvB7tubXIG qwFivJUq5UgT3l54+1Myun54R6+d+ORP6U0qm1+IoQDOtnShqd4NaMxUROfgDD34hvWP HWwQ== 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=S7ZyG/sYd+jW35zMJ/C05Sf0pTos3q25TTuK4vI9DYk=; b=qgIDdip7xMAeZ3bOARS84vwcbCEuaWiQbROxkUh8xerSi7tnNuwjELDwFM6tOvuDN0 mNP8cZgRybxA3h2mI9fD/rpqe3/EhAELfX5VuJy7bn7gfJ+xfMyH9dzDIpcVmNMbmoyX ndn6JcgpbUwCSbcUdB/zNfS4XjXk4CHssLDORlg17BimZVXQHMLCAAggl3ftvVtkL4CN IaHybDFKC+2QHUQ50Ti11ddgx4MPryutaSNiiZNmTivjwtBaWiNGyOPTfO8n1CnXVZfv 53nWfPiu9a3PKi37X9ZMSe2mo8ruZU2BaJpBSpao7CjKkhHoLZw//pIep4DWB7vmaxrC OaQw== X-Gm-Message-State: AIVw112Ey63zCsoDIV1SNcDJ3WitLrZB2aaf3s9mYSIK/xKnG21usdeb wmBR79FZmCNTkA== X-Received: by 10.84.167.2 with SMTP id c2mr13062984plb.330.1501404087842; Sun, 30 Jul 2017 01:41:27 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.146]) by smtp.gmail.com with ESMTPSA id b185sm27220522pfa.65.2017.07.30.01.41.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 30 Jul 2017 01:41:27 -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 18/29] scsi: dmx3191d: constify pci_device_id. Date: Sun, 30 Jul 2017 14:10:34 +0530 Message-Id: <1501404036-9005-8-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/dmx3191d.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/dmx3191d.c b/drivers/scsi/dmx3191d.c index 6af3394..805ae59 100644 --- a/drivers/scsi/dmx3191d.c +++ b/drivers/scsi/dmx3191d.c @@ -139,7 +139,7 @@ static void dmx3191d_remove_one(struct pci_dev *pdev) pci_disable_device(pdev); } -static struct pci_device_id dmx3191d_pci_tbl[] = { +static const struct pci_device_id dmx3191d_pci_tbl[] = { {PCI_VENDOR_ID_DOMEX, PCI_DEVICE_ID_DOMEX_DMX3191D, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 4}, { }