From patchwork Sun Jul 30 08:43:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9870345 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 C45CF6038F for ; Sun, 30 Jul 2017 08:46:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B63F82858E for ; Sun, 30 Jul 2017 08:46:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AB02F285E3; Sun, 30 Jul 2017 08:46:15 +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 75A252858E for ; Sun, 30 Jul 2017 08:46:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754004AbdG3IoT (ORCPT ); Sun, 30 Jul 2017 04:44:19 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:38294 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753993AbdG3IoQ (ORCPT ); Sun, 30 Jul 2017 04:44:16 -0400 Received: by mail-pg0-f67.google.com with SMTP id 125so14247147pgi.5; Sun, 30 Jul 2017 01:44:15 -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=G2biHFhH1fb3FQS/D6frLVCLPKC6QwemYE0jbsp9mzU=; b=dB/W4esQA9hWkK3+kXOL2ApjOYBXHgYMJqtTv9VUUeV8q7uAcj1uS9sAG2SbMxPmuI dT9lcp5oo72Ob0ou+BqXgRad+iDUOcjOQqJOMjmDuIAC0r6a9oabfs8eNwrmJaxE991N oL0sgbLY0hMfWgbo5cjJvqATp/6MZOJzYcKvzNp1rkY2RTZ372Pvzl7zte/8Fq/IRV2y rYDphzubt0K1qZYbUhAS4Yo1koMNFIb90wkPGcmQQEv0lxWZkVoz1mUQaa7BFdvgsoM3 0O71ZWKjmZNBIXvHhiuNq1OHc3QymX+tgrB0HPYEbqwpeXtTMbGip85mmmPLBFLSlLH9 GUIA== 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=G2biHFhH1fb3FQS/D6frLVCLPKC6QwemYE0jbsp9mzU=; b=AkKOKVmZAw+VNwE7pdFOkCY3JJ8mCHe7WPg61lwqXOD7WAWgKLZJP/pats8AcWy3X/ 7qkxB1cgFu2qitVp8qnam0X8Nic33l+EUAGYsgrbf04V+6ygYdDNqUrdJndwQSsKLxg3 LQ2ckcEUTfA+LvR5DU2agJB4GM32XVTolrSKiIfI3GasHt38iwYzfFGpBXB3i8F62IoG AUY/4NYy3UWM0bmc7RtnZYlWd7FjipHIG60l3Mc44vh3kNPfTvJ+56RO//ifac7+lzNb 0wNteHK6GDmHlaVTOcH5efMAM9l9wnvJS1rVH6fYXX9DBiCpwS35XfQL58ooZIEBPzcr GqtQ== X-Gm-Message-State: AIVw112vTA76wyY0QfwD3RRE9x0lpq5P7pRNSY1KXOwT/9YmNizAkn7e 2Z/los7DA65p0Q== X-Received: by 10.101.75.131 with SMTP id t3mr11899936pgq.387.1501404255636; Sun, 30 Jul 2017 01:44:15 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.146]) by smtp.gmail.com with ESMTPSA id p126sm40644837pfp.28.2017.07.30.01.44.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 30 Jul 2017 01:44:15 -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 22/29] scsi: pmcraid: constify pci_device_id. Date: Sun, 30 Jul 2017 14:13:48 +0530 Message-Id: <1501404235-9105-2-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/pmcraid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/pmcraid.c b/drivers/scsi/pmcraid.c index 1cc814f..1a9e153 100644 --- a/drivers/scsi/pmcraid.c +++ b/drivers/scsi/pmcraid.c @@ -126,7 +126,7 @@ static struct pmcraid_chip_details pmcraid_chip_cfg[] = { /* * PCI device ids supported by pmcraid driver */ -static struct pci_device_id pmcraid_pci_table[] = { +static const struct pci_device_id pmcraid_pci_table[] = { { PCI_DEVICE(PCI_VENDOR_ID_PMC, PCI_DEVICE_ID_PMC_MAXRAID), 0, 0, (kernel_ulong_t)&pmcraid_chip_cfg[0] },