From patchwork Sun Jul 30 08:37:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9870253 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 E0E03603B4 for ; Sun, 30 Jul 2017 08:39:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D1E2827CF9 for ; Sun, 30 Jul 2017 08:39:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C680027FB1; Sun, 30 Jul 2017 08:39:01 +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 8DFCF284B5 for ; Sun, 30 Jul 2017 08:39:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754088AbdG3IiV (ORCPT ); Sun, 30 Jul 2017 04:38:21 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:37922 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754059AbdG3IiT (ORCPT ); Sun, 30 Jul 2017 04:38:19 -0400 Received: by mail-pf0-f195.google.com with SMTP id e3so6272081pfc.5; Sun, 30 Jul 2017 01:38:18 -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=DEWQR1oEShuTZ6a2l69j2OdNcL1qjRxPdUWa8C8wWI8=; b=REeGLEuM+LOaRf5fVZS9KwtrFMSxdu85H7pZm5kmhdK1wylNSj/qdf0mLwHmiIZQjZ mPW/iKr90EX2bbj7D2zPD03AQkuuKnqp8s/JfKo35dYF+KAzxf4q3G4CUYwx8Q7wXRO2 3iHmmjiPbSaZ3WDKuzCykQeNDxKEExJ833TCxX5t/CmUO/ieDPX+TzQrizXjvF+Oi3zs g03x49W98fgfKPRMuR6BrZtjoAQj3PyMG7z4MGH9UeKRG6nw7PCXdxYrLd4ezZTnUsAj /hVjAxZ8b2kZMq/oOE0Q6Ntgauwc1mO5enNAl6TnKGX+N81Twj6olgSVrelFev7j/g2d GUrA== 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=DEWQR1oEShuTZ6a2l69j2OdNcL1qjRxPdUWa8C8wWI8=; b=r2i2dEJsk8yJsVjQpgNUExnzCsLeTsUpHzBV9bZqjlmmsJ35gcfawozMS/cxwm+kPG Fr1e+s3kYGLwhwSvUK0cxIyg1Yvrc9NhYTVyLs7GwlizPEZ2ddPqr7Q+ESEvwAITIskO tKe9jQUXWZirkHryZdre1c6iMSUEgDdyqPFhtqn4eFu+1qsHdRRbDPZffFAi+8v/3o7k MfsZRC5w5LDkCOABWo3NIG8qOaWWGoMNJ/Qr+++6azYcfmX7NuvFC3nq+KtFpfMwvwvj uif5o7I0NJqj40a4JtCuqxQ4GrQrmGBR/74Ow35k5djptY20TdRYUbHkVknr2NuGo8v/ QZVw== X-Gm-Message-State: AIVw11017u2a7C9g/UiIhsIh3tEYYnBigRPQXHnAaplMf5P82m1r4+/D 5QafjSUooL5X8A== X-Received: by 10.98.16.68 with SMTP id y65mr12466434pfi.165.1501403898478; Sun, 30 Jul 2017 01:38:18 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.146]) by smtp.gmail.com with ESMTPSA id h27sm45996082pfd.34.2017.07.30.01.38.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 30 Jul 2017 01:38:18 -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 09/29] scsi: arcmsr: constify pci_device_id. Date: Sun, 30 Jul 2017 14:07:18 +0530 Message-Id: <1501403839-8876-10-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/arcmsr/arcmsr_hba.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/arcmsr/arcmsr_hba.c b/drivers/scsi/arcmsr/arcmsr_hba.c index af032c4..392fb07 100644 --- a/drivers/scsi/arcmsr/arcmsr_hba.c +++ b/drivers/scsi/arcmsr/arcmsr_hba.c @@ -141,7 +141,7 @@ static struct scsi_host_template arcmsr_scsi_host_template = { .no_write_same = 1, }; -static struct pci_device_id arcmsr_device_id_table[] = { +static const struct pci_device_id arcmsr_device_id_table[] = { {PCI_DEVICE(PCI_VENDOR_ID_ARECA, PCI_DEVICE_ID_ARECA_1110), .driver_data = ACB_ADAPTER_TYPE_A}, {PCI_DEVICE(PCI_VENDOR_ID_ARECA, PCI_DEVICE_ID_ARECA_1120),