From patchwork Sun Jul 30 08:43:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9870325 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 77B796032A for ; Sun, 30 Jul 2017 08:44:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 695212858E for ; Sun, 30 Jul 2017 08:44:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5E3C8285E3; Sun, 30 Jul 2017 08:44:48 +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 057532858E for ; Sun, 30 Jul 2017 08:44:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753929AbdG3Ior (ORCPT ); Sun, 30 Jul 2017 04:44:47 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:35264 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754170AbdG3Iop (ORCPT ); Sun, 30 Jul 2017 04:44:45 -0400 Received: by mail-pg0-f65.google.com with SMTP id d193so27660296pgc.2; Sun, 30 Jul 2017 01:44:45 -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=JqvGA4UuvYbyrUgAh5ZVfciHFu6FM1IoDtWnoHExBNE=; b=hl3pt5DtKJfd4DOcnee1+tgl29/IJne5BDCFslOu7AO5Gd4gOUZOdV+0OvI9vwhZPD qcY3nFme+B2C+dYI1lOQyMl1fVNJAI6T8rYOfw1JFw8zI+QE9Wm/UB00MVgVwWVz9aGz slBXsWOL0fEgHOfuGdCOs5n6kgFZC3H4br/nymwIS8JsOP5R+9OQ37qwSpqTaZNI0tfK B7dQoPDitO1CASTmVdgo+B23gFVvBIMoZEQcqjVU8JB3Tb6eOyDx/+va/B6KOBxengzP 7JArcDkkWoiFtaQisUMubEecnbnlhg+crAtyb7gZknhFpKQUHwOx2L3t50uPu6mtrekh E/Yw== 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=JqvGA4UuvYbyrUgAh5ZVfciHFu6FM1IoDtWnoHExBNE=; b=YmuUELN/BAm/ugdssWP+MNhUaRDJbYom1YTlZUP/6vMTsJRWkN5/xR8e2BDTyoUxXp zw08hcYIClAMPZJ61dO2e+ZzE0D6tuujjWjtfJ1qFavIG7NHjyQjTlYNHW9p2fbB4s/O 1Fzw/5CiB4qkvW8sYIJzQymgNbRe1mdUGXeO5fiMvEJoSxviYSgT0R9K/ruMPgFqeFdf Iafvh6qaeF4riJassNnmAkPjWIsKyEN2GPG0J91dx3l67C7uO4p4Bf56IpBctZz1JPle 8/bf9EYJaN2njqHfMNCQCtlrGbiz3eWrNg/VyYqdibs9V3qAssIMz3a/9KDI+UPMYx0P SvHQ== X-Gm-Message-State: AIVw111Hkdbvu4m31d/LU+w0ApPMe93OLK0gRYF/NKctWynTK4ELOyqu MMRhMQ3ij2YYqA== X-Received: by 10.98.159.130 with SMTP id v2mr11960539pfk.20.1501404284743; Sun, 30 Jul 2017 01:44:44 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.146]) by smtp.gmail.com with ESMTPSA id p126sm40644837pfp.28.2017.07.30.01.44.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 30 Jul 2017 01:44:44 -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 28/29] scsi: atp870u: constify pci_device_id. Date: Sun, 30 Jul 2017 14:13:54 +0530 Message-Id: <1501404235-9105-8-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/atp870u.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/atp870u.c b/drivers/scsi/atp870u.c index 8b52a9d..70f1bc4 100644 --- a/drivers/scsi/atp870u.c +++ b/drivers/scsi/atp870u.c @@ -1685,7 +1685,7 @@ static struct scsi_host_template atp870u_template = { .max_sectors = ATP870U_MAX_SECTORS, }; -static struct pci_device_id atp870u_id_table[] = { +static const struct pci_device_id atp870u_id_table[] = { { PCI_DEVICE(PCI_VENDOR_ID_ARTOP, ATP885_DEVID) }, { PCI_DEVICE(PCI_VENDOR_ID_ARTOP, ATP880_DEVID1) }, { PCI_DEVICE(PCI_VENDOR_ID_ARTOP, ATP880_DEVID2) },