From patchwork Sun Jul 30 08:37:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9870235 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 B0210603B4 for ; Sun, 30 Jul 2017 08:38:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9E4CD285E3 for ; Sun, 30 Jul 2017 08:38:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 92EFC285EE; Sun, 30 Jul 2017 08:38:00 +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=ham 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 4B131285E3 for ; Sun, 30 Jul 2017 08:38:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753994AbdG3Ihv (ORCPT ); Sun, 30 Jul 2017 04:37:51 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:38342 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753947AbdG3Iht (ORCPT ); Sun, 30 Jul 2017 04:37:49 -0400 Received: by mail-pg0-f65.google.com with SMTP id 125so14239190pgi.5; Sun, 30 Jul 2017 01:37:49 -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=xK3O4FwFJ6570QllZH1lDyExHxvLUTL25R7xo0jw4g0=; b=nBLEtvoP3HxLQf8K8UYWr1ihks8qBri2cC7y6qf8W5fTIe2jurEwMG09ZYVoFM00v3 e3PgK0OCciP2G5gSGE737WtdDXqSQF7Z/rUXw9BkTagjMmFo+AZ0FuOE+/HUzIA92oiO IkAEJhk3sflH5a6RXNUAIm/lbj3uLsJ2dWjCZbzqpqEF5z3QAb5OrSNbEf92vjYD9Gxa yGqoEATsSe8pcekPoUz0gEi4HWBToqBlkKmq6RATpj6+HKLvt01uiZOlNTh6J576RYpA 7aX0fa4s9CzwR+Hjo6tAh+89O5t3zYfKbzdmGv++zRrAGr6m+firNI/oY4RgNPcsGZ+P Mfxw== 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=xK3O4FwFJ6570QllZH1lDyExHxvLUTL25R7xo0jw4g0=; b=s+h3qpXCKE4JHD/mk1FEfcMirIDYtiAEnYW7ea5T7F5UCnAMOJg1T39mxfk8OnFsAL lPSnHs1Suh7D0wmAprzEEU4GZViXp6dOE4Oc9TWJYIyMFmTym+V69DQrBhCxaswSa9gA HwwLEpeGGUpdixgY3rPZZW4lJSzQ9YCgdZQvbDqSn9stWlm4ZMCh2j5eqSZ9e/tLhOq4 U2Tji72biNp5ZutHl2kK5fH7FEgA2CNCPH2X2jqGfgU/Gq5uH5E3QCbADSvNEBpxtoyR Utt46W1IZQi7JWlhcNyBkWqwzqId0U7xnvPCpk8CM9VA6jk+Go8nC+D9qRYCrtQtXFVK tViA== X-Gm-Message-State: AIVw113xqj4hpw9hP0iTDpGhekTDtqZzfKWmVia0/fJdttj4HItBtG5g /1EFe2legIjESw== X-Received: by 10.99.183.13 with SMTP id t13mr4304680pgf.66.1501403868814; Sun, 30 Jul 2017 01:37:48 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.146]) by smtp.gmail.com with ESMTPSA id h27sm45996082pfd.34.2017.07.30.01.37.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 30 Jul 2017 01:37:48 -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 03/29] scsi: am53c974: constify pci_device_id. Date: Sun, 30 Jul 2017 14:07:12 +0530 Message-Id: <1501403839-8876-4-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/am53c974.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/am53c974.c b/drivers/scsi/am53c974.c index beea30e..ffc49d0 100644 --- a/drivers/scsi/am53c974.c +++ b/drivers/scsi/am53c974.c @@ -542,7 +542,7 @@ static void pci_esp_remove_one(struct pci_dev *pdev) scsi_host_put(esp->host); } -static struct pci_device_id am53c974_pci_tbl[] = { +static const struct pci_device_id am53c974_pci_tbl[] = { { PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_SCSI, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, { }