From patchwork Sun Jul 30 08:40:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9870307 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 1077D6032A for ; Sun, 30 Jul 2017 08:43:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 01D7C28584 for ; Sun, 30 Jul 2017 08:43:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EAC3C285E3; Sun, 30 Jul 2017 08:43:03 +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 A616C28584 for ; Sun, 30 Jul 2017 08:43:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753674AbdG3IlF (ORCPT ); Sun, 30 Jul 2017 04:41:05 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:35727 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750741AbdG3IlD (ORCPT ); Sun, 30 Jul 2017 04:41:03 -0400 Received: by mail-pg0-f68.google.com with SMTP id d193so27655511pgc.2; Sun, 30 Jul 2017 01:41:03 -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=pj6rlk/EhkC/V3ZSAZQesaVzpGMSjYFyHC7iArvvVMs=; b=U1PtxBQvmImO+MT9q+IRPi5VG4WyXYAzuC5UYYNt51WVotgX6kPCR4gnblu5UggfZs +eUxvVIo4Urb56Apv4FX211sXchOl2QtmAhtyuwvHpkIA/AjULXEOVGgzQQP/qjRi75/ wq7fqWztN7Q1Vy5aEFaqPd2Hgk/TRR/+w5c/sqDnCTlBT03KOroBnA/gWIIDseSfzKQN VxPYOXog6liJ76J6KE2WQG3v2dbMO4zkXuejVeXv0S/j5sKgs4pn7SQzol47eZQxmt/O 7hn4rzf1PKD4+yCW9b7VRmL8ZF5j2eXxysRUuQDqAxB9rleDQOyS2sIuVjk73qkZsa+7 Apog== 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=pj6rlk/EhkC/V3ZSAZQesaVzpGMSjYFyHC7iArvvVMs=; b=hDtuT1gROuk5utIMl1IX5Rfa1tDD+BnVQhDcWGi1Ttt3EgkZHwalcGC++iIg5ZnNRQ xk3fKTzD7HEjnDr81XhfwQ+MTCMik9jjQRxnDcSYMVeJD8zVqorquR8gm7ScnQc/ddIx drfZYbeVBDjgACsQ6Ewou6GRLayKTE7cCRipIr83itvD+f0CZ/cIRL+B2cIun4s2m5m0 ZpwAat/6tvFGTIhlHQCinrctlLlL59TYwmfuZ8984uwb5wgTmut54sgjIUmhGkADT1gF l3g2YIFLywPse8vXI8gtFe1RshcwzrhqODP4kCjZ+aUEH0elQtPz3KBTZuLu5ikNmmGn uROQ== X-Gm-Message-State: AIVw1103R/1k/SBgnZwITjaDFZC31wSPMHYZFXgWJ8PIWCuoRkW28NVf jiLd6KIVCG8CcA== X-Received: by 10.98.74.10 with SMTP id x10mr12478770pfa.252.1501404063279; Sun, 30 Jul 2017 01:41:03 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.146]) by smtp.gmail.com with ESMTPSA id b185sm27220522pfa.65.2017.07.30.01.40.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 30 Jul 2017 01:41:02 -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 13/29] scsi: fdomain: constify pci_device_id. Date: Sun, 30 Jul 2017 14:10:29 +0530 Message-Id: <1501404036-9005-3-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/fdomain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/fdomain.c b/drivers/scsi/fdomain.c index b87ab38..d46cbe8 100644 --- a/drivers/scsi/fdomain.c +++ b/drivers/scsi/fdomain.c @@ -1770,7 +1770,7 @@ struct scsi_host_template fdomain_driver_template = { #ifndef PCMCIA #if defined(CONFIG_PCI) && defined(MODULE) -static struct pci_device_id fdomain_pci_tbl[] = { +static const struct pci_device_id fdomain_pci_tbl[] = { { PCI_VENDOR_ID_FD, PCI_DEVICE_ID_FD_36C70, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0UL }, { }