From patchwork Sun Jul 30 08:40:32 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9870297 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 B98D96032A for ; Sun, 30 Jul 2017 08:42:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AB0792858E for ; Sun, 30 Jul 2017 08:42:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9FB0D28584; Sun, 30 Jul 2017 08:42:23 +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 58FB228584 for ; Sun, 30 Jul 2017 08:42:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754060AbdG3IlY (ORCPT ); Sun, 30 Jul 2017 04:41:24 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:36119 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754064AbdG3IlS (ORCPT ); Sun, 30 Jul 2017 04:41:18 -0400 Received: by mail-pg0-f66.google.com with SMTP id y129so27708900pgy.3; Sun, 30 Jul 2017 01:41:17 -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=5h90J90j+j4mbM8SIU1HozWbohZZgwRmK9Ws9SjgpRU=; b=Fenel+8OB+S0G/r1qR70UCxjVkPsXGSqIoZaATzUN8EAB8cuh9lb+OAfWh2YZo3rFa xe5hAugdWA0GCU5D7IjivfT3l9EOc3b4uEWGhAFp2YjAS6gisocoSnb8EAbF3nwCDQix lzZnoKqSpaY/T6bhuBmk4S40cdFMzQeeKRObDmha3wQAV/fZL9+XxPwkyxEK3KrEu56z SUv0+YSkNrW9IQ9eBsTQNFXtXNLecIm7/T9yfll/7zST0JfQzCNq9sL5AOuLB0BtdMML mhdW7XI3O3w9PedsTNRfzywdEXZLFG8enT8/EnHPSeNgAzCwMmCvrYg/dU4xh/Vgef7O YvTg== 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=5h90J90j+j4mbM8SIU1HozWbohZZgwRmK9Ws9SjgpRU=; b=IUF89ci1CxetdHwbDGLxDu1cYUAn8J4vzI9QLMfvCgYinpsqx3iqJofMbKU6n1E03d 7Tq6pk3aRK2yrHMoUiLDFkB+erU6WJrOuejDfJosYAvM+ZB29Yz4oY1+PBnmuBx0Lj+6 KIiw3ykWuYysBXCYLVjRtqKIj72LbDFseA9L0OP/JS5f+Ooo2n9BOF5F/8vEQi02+RDo mjJxok7Jn1AXQuJiBxo3/7mdM0TM5V8C1OxOPDcKyMVmBO675tuIlav6cwNwL9nPzUO1 5vARFD/p57gdAsvJmPZOCv/ZpQaio0hlD2An4JGIgj4JULOAsbpwKkmznrOBqkutiHWK +OLQ== X-Gm-Message-State: AIVw1124T9zXZLHldpfm3Qej1l5ovsNszRocCKUKceJT+ZuTC3H739J9 jsUm1Uhjf59rgQ== X-Received: by 10.98.77.6 with SMTP id a6mr12139672pfb.221.1501404077521; Sun, 30 Jul 2017 01:41:17 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.146]) by smtp.gmail.com with ESMTPSA id b185sm27220522pfa.65.2017.07.30.01.41.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 30 Jul 2017 01:41:17 -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 16/29] scsi: esas2r: constify pci_device_id. Date: Sun, 30 Jul 2017 14:10:32 +0530 Message-Id: <1501404036-9005-6-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 Acked-by: Bradley Grove --- drivers/scsi/esas2r/esas2r_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/esas2r/esas2r_main.c b/drivers/scsi/esas2r/esas2r_main.c index f2e9d8a..81f226b 100644 --- a/drivers/scsi/esas2r/esas2r_main.c +++ b/drivers/scsi/esas2r/esas2r_main.c @@ -309,7 +309,7 @@ MODULE_PARM_DESC(interrupt_mode, "Defines the interrupt mode to use. 0 for legacy" ", 1 for MSI. Default is MSI (1)."); -static struct pci_device_id +static const struct pci_device_id esas2r_pci_table[] = { { ATTO_VENDOR_ID, 0x0049, ATTO_VENDOR_ID, 0x0049, 0,