From patchwork Sun Jul 30 08:43:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9870339 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 DCFAA6038F for ; Sun, 30 Jul 2017 08:45:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CE6932858E for ; Sun, 30 Jul 2017 08:45:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C3667285E3; Sun, 30 Jul 2017 08:45:46 +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 8AFC92858E for ; Sun, 30 Jul 2017 08:45:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754093AbdG3Iod (ORCPT ); Sun, 30 Jul 2017 04:44:33 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:35225 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754089AbdG3Iob (ORCPT ); Sun, 30 Jul 2017 04:44:31 -0400 Received: by mail-pg0-f66.google.com with SMTP id d193so27660001pgc.2; Sun, 30 Jul 2017 01:44:30 -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=iwJnDY64EcFkL6WbpIWepKN3ilXpI+LQWmhQL1E8wq8=; b=Jk6BLVUDrfbydoWhbC0QXotM569M3p8WWAKOCCSc/d9DvrN8y0C3AIKtID8MjRqeyZ KK++lncMyetyiOSeJpGH/G78x36/YJdnMxKwOZ0oNvYYtHYC1c/L+wc4YDz7jx8AzPSM D12M2IgeCQ2b0tSSaKW3aNU1wjzP2DQhVF+hp1sb/gObtHuqs6Zzs6P9/eNaqa/Yu1Ew qWxMp/xRumEm33401ZANiSd8ABHi6T+9n4QQVlv8osp0LvPO4zr8DMXhtsPZzbNeZQaA K6WwjX3AR1XQw/4/fTDG2/9amIFaz5pXGAOqs2NUtPDOryNp3l8HBIylAPP+slVb8vtu nhag== 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=iwJnDY64EcFkL6WbpIWepKN3ilXpI+LQWmhQL1E8wq8=; b=s6urUdxhLVX+zrncFqAsUKeg3/5ziVU/tEOQxMt2jiVfHTt5TB854LOoJ5rEozWU5B ZlwLhEEahadJJhbAdTdZmKukPmZaZGgKr2SFftW/7o88WNdV9zE60K+zcpxxjqtqfwDT 7fBNTzI2Z1crb+VEfZhXNIVPvafQon4nh+bEnqbc0itDTdk+WuGKUnOy/T6fKheNp26Y HSZC4oMS0/YSxdvM7/koRn+wbECW7Zcehs8fVAXoV+Wm/dBDxaCNtwnbvIQxnfSDoVyS 9q6NrxLrQSYtg3pKxHDNtkcTZlbkXr+crRJot1m91kfqCL1rjgVXWMwESICxuNb419Dc zHEA== X-Gm-Message-State: AIVw110XupIKlzWheENgnuu1aR9WEAmNb0Ati0eIEIeXU09AgJ29zeVb jl0hXYMPlAxR9g== X-Received: by 10.99.173.2 with SMTP id g2mr12164703pgf.309.1501404270713; Sun, 30 Jul 2017 01:44:30 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.146]) by smtp.gmail.com with ESMTPSA id p126sm40644837pfp.28.2017.07.30.01.44.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 30 Jul 2017 01:44:30 -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 25/29] scsi: megaraid: constify pci_device_id. Date: Sun, 30 Jul 2017 14:13:51 +0530 Message-Id: <1501404235-9105-5-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/megaraid/megaraid_sas_base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c b/drivers/scsi/megaraid/megaraid_sas_base.c index 316c3df..ed2acda 100644 --- a/drivers/scsi/megaraid/megaraid_sas_base.c +++ b/drivers/scsi/megaraid/megaraid_sas_base.c @@ -124,7 +124,7 @@ static int megasas_get_target_prop(struct megasas_instance *instance, /* * PCI ID table for all supported controllers */ -static struct pci_device_id megasas_pci_table[] = { +static const struct pci_device_id megasas_pci_table[] = { {PCI_DEVICE(PCI_VENDOR_ID_LSI_LOGIC, PCI_DEVICE_ID_LSI_SAS1064R)}, /* xscale IOP */