From patchwork Sun Jul 30 08:40:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9870305 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 DD8656032A for ; Sun, 30 Jul 2017 08:42:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CF23A28584 for ; Sun, 30 Jul 2017 08:42:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C3E0C285E3; Sun, 30 Jul 2017 08:42:54 +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 76D0A28584 for ; Sun, 30 Jul 2017 08:42:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753982AbdG3IlK (ORCPT ); Sun, 30 Jul 2017 04:41:10 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:37402 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753969AbdG3IlI (ORCPT ); Sun, 30 Jul 2017 04:41:08 -0400 Received: by mail-pg0-f66.google.com with SMTP id k190so11978638pgk.4; Sun, 30 Jul 2017 01:41:08 -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=FQUz1YHqZD3LdtfF20ms0rzbMDte1Ptv040YbG9UP4w=; b=JtRJ0FcfQ2U1ws6tGAA7GC7BbZfAD06iopm/M6E8Ge/gfc6aTqCjsQk2yN47hjm7Jc wAvHvw0zgXObAFbkYLXl3PjWFdhuqZLkewKziYmImbbEve3zRaprJ4CZnDkkjmUYBIzN A4M87s6gYSrpwmIw5zo99y/w+LlFriZXibfthLXDXpAAyYrRBHUHr3DGEJOrE7GKG8Gi 6n2xYZsZYIBQ97HFzjacF7H72bYzKzC2JW/rMrib6b9XHa3kgnXMu39cQw6hNQHwbEHJ aeXRS51C/CpI0IUQNUP8QFA6+RA6gpNvvQUZ84IeC8quWRrk7JFlEEpe3NwNaXZ5YgdD eTJw== 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=FQUz1YHqZD3LdtfF20ms0rzbMDte1Ptv040YbG9UP4w=; b=HCbIbmt779UOX9U0vzPCrbqTT9lPcoyvSPutTPyRv245WcfYK7FP8YupBD0qve5jNY ovf02gQCS5EMCXJxDfEwUj+FfAd6FvVd5fvGIckhXNOmCzQn8a6YcNP5BMV/WGmOYT0S CLPD2BgLx732d7u/nX80IaeIzB4NFvKBOlu5JZRrhlyzbCRfXnSiN7YnDeT+9/1efSn1 4wSF4ZWN+uIY75oj0B9YDi7sKJF9O77oKGRLI+L2+3dvHSJNf+vwTNRWAnI/LUWW7LFe RoYMFyOq2txZOi6M9EhfrFkglI9Qvvtsh8mF4LNwHy/T41M4OAGvRqmnuf4ObATe1oxN GPWw== X-Gm-Message-State: AIVw112bfyzmv0SQCx6jcGBH6EWr5XRaNgz3JR4u6zR95x7HXgWNXnMU nnWqw9aWsKY8pQ== X-Received: by 10.98.100.20 with SMTP id y20mr12014852pfb.11.1501404067994; Sun, 30 Jul 2017 01:41:07 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.146]) by smtp.gmail.com with ESMTPSA id b185sm27220522pfa.65.2017.07.30.01.41.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 30 Jul 2017 01:41:07 -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 14/29] scsi: snic: constify pci_device_id. Date: Sun, 30 Jul 2017 14:10:30 +0530 Message-Id: <1501404036-9005-4-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/snic/snic_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/snic/snic_main.c b/drivers/scsi/snic/snic_main.c index 7cf70aa..74031e4 100644 --- a/drivers/scsi/snic/snic_main.c +++ b/drivers/scsi/snic/snic_main.c @@ -35,7 +35,7 @@ #define PCI_DEVICE_ID_CISCO_SNIC 0x0046 /* Supported devices by snic module */ -static struct pci_device_id snic_id_table[] = { +static const struct pci_device_id snic_id_table[] = { {PCI_DEVICE(0x1137, PCI_DEVICE_ID_CISCO_SNIC) }, { 0, } /* end of table */ };