From patchwork Sun Jul 30 08:37:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9870271 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 7A61F6032A for ; Sun, 30 Jul 2017 08:40:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2941628621 for ; Sun, 30 Jul 2017 08:40:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 15F5E2860D; Sun, 30 Jul 2017 08:40:03 +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 375D4285E7 for ; Sun, 30 Jul 2017 08:40:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753957AbdG3Ihn (ORCPT ); Sun, 30 Jul 2017 04:37:43 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:38306 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753947AbdG3Ihj (ORCPT ); Sun, 30 Jul 2017 04:37:39 -0400 Received: by mail-pg0-f66.google.com with SMTP id 125so14239000pgi.5; Sun, 30 Jul 2017 01:37:39 -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=jfdJ1zQcU6CuLfi4jhgi64+i3yduAVnN9LSp5GdHg2s=; b=eG5KOBfJ7kWTTxgdHFHYh4K+kM1itUOS/D4Ha3oaihhyBiqnhwHHhgLoIT7+P9e/7m dC66fYxCOXtRJJKJ6Tcqiueoc8+AYH5h9htFGomrWkrxDunM0k4PQh21LGraiQuPCHzS deeyz5T8n+fynqKTmJOUpv+rta+msSXDlJohjPFzsjOsrSduoWcEVJARaqQ/latqRkqg 4cqEbNw54owpZ2r2gB3XRPMNL9JTgR17ovmXrNB2ABRASVGDAqlfSQFuiF6QEJTLC9JG GHZbWczXrvzWh2IFn+w9tkXyjx/DMZy4PpYzD+YsaaQuIV99cFBkJizTSKso/tyZO/P0 104A== 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=jfdJ1zQcU6CuLfi4jhgi64+i3yduAVnN9LSp5GdHg2s=; b=LQc4AoBHoU1AYSR6wktIqfZVZkeUf+OBjQiXII6LojQtPm25zA0AtRnhJeefW7AkQQ lPL7OPXVjKJ/R1vp9x+XSgnbCGWBpzVbTgZkBhNU5saGjRzrN3bHMFwoY9rzCAya7mC4 /t61nD/asSkjx6faNi89FQ65lJCqUyYXX45BOhcheE8gNMZXvHcv47zE5F8hcLFp4bTy 2EcGlXN1l3IjaeHBJ50daGBAQygqSKDFBlYzxNmYWizDV03spw4zhOIscNH9Xlr+b+qC HQ/xgRldQjR+qysT42mqAvFJo467swGrEAhWPMPuHBCQ1ykvRr2VYOXDyutyhDOIFfrN UyDg== X-Gm-Message-State: AIVw111HARKtSJz4mFU64wh5MJC+XopZzM+QexqZXY38NU0OhAlDGxzF ae12XHwiYzMo0Q== X-Received: by 10.84.132.13 with SMTP id 13mr13620701ple.42.1501403858984; Sun, 30 Jul 2017 01:37:38 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.146]) by smtp.gmail.com with ESMTPSA id h27sm45996082pfd.34.2017.07.30.01.37.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 30 Jul 2017 01:37:38 -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 01/29] scsi: qla1280: constify pci_device_id. Date: Sun, 30 Jul 2017 14:07:10 +0530 Message-Id: <1501403839-8876-2-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/qla1280.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/qla1280.c b/drivers/scsi/qla1280.c index 8a29fb0..265a65b 100644 --- a/drivers/scsi/qla1280.c +++ b/drivers/scsi/qla1280.c @@ -537,7 +537,7 @@ struct qla_boards { }; /* NOTE: the last argument in each entry is used to index ql1280_board_tbl */ -static struct pci_device_id qla1280_pci_tbl[] = { +static const struct pci_device_id qla1280_pci_tbl[] = { {PCI_VENDOR_ID_QLOGIC, PCI_DEVICE_ID_QLOGIC_ISP12160, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, {PCI_VENDOR_ID_QLOGIC, PCI_DEVICE_ID_QLOGIC_ISP1020,