From patchwork Sun Jul 30 08:43:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9870337 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 C3BFB6038F for ; Sun, 30 Jul 2017 08:45:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B53A82858E for ; Sun, 30 Jul 2017 08:45:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A8C84285E3; Sun, 30 Jul 2017 08:45:38 +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 5F8CD2858E for ; Sun, 30 Jul 2017 08:45:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754092AbdG3Ioj (ORCPT ); Sun, 30 Jul 2017 04:44:39 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:35236 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754078AbdG3Iof (ORCPT ); Sun, 30 Jul 2017 04:44:35 -0400 Received: by mail-pg0-f67.google.com with SMTP id d193so27660087pgc.2; Sun, 30 Jul 2017 01:44:35 -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=ZkVgwUWWoKJwo9NN353QipryZvuCvxS7TlxDpJuGJOI=; b=Nz4/hgz9PSLFJO4TbXyDt86T8d+ny3TcOC7YBIKDxh7L5MxDNOFoB9CjgfBMXEf031 ddQorHU5+xU1wWBqY4OE8qTpWvqQSF7ERdrMquWK9D7J4vnNIKqHL1V9OLyblfQJo57t kW4nPsFKjTGvJPRaJMgsiJJajRhUC2OM/yePtMfEzmpEbbz7xKSg7VxVLSsDjFYbLa7R J3KmkHnMC2fgGxSiErBSNkQxg31mk0bX5m1wZC5ffYDvE4/0hFpeCHqqRGZ6gCl1GPvR K0tgX9Q8Q6yF4Qg7xpu7jU9+wTC7wd5RTvp1PVglDdkQDR+wmpdScH0ZN0Tt1M1F3hmb mrUg== 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=ZkVgwUWWoKJwo9NN353QipryZvuCvxS7TlxDpJuGJOI=; b=Qh3p2Hv3lm06pygVR0e8/8RZ8PQCrt2G8Je4Yc05DM+XyxMgMHgS9Kj46DJDZl2DS6 ddWhvGfgxHtn+ppGeBa8DV4JWiqC+XT5ZAlD6wDAw9S1Xfm2ZfKzprCNEPHW9BWoZsnc QYekj7DwWX0nB/wJGQcsk102lhdGrzl1mkrfXRHn0yWjBcEXZuMv+6JVojVC5T3NA6v8 A/QO9bx1SYqYXtokJHRKJzB8qM6CYb5d/uiVeNRBS9hbC1OKE+nXQhyzHLRc8olkarwS 76QQqgk2m8qyUUKX/gAZbf2RZ32psgHZ9WIDoVO7Zk2oooMXLxLLTacdBjFvWkqg2wRr 0bmA== X-Gm-Message-State: AIVw113nxASn6Nujj24C8oMqgYi25HGjfPuhJautjkyaGOYz8N3u1zo3 eKC/3B5zALOXkA== X-Received: by 10.98.113.71 with SMTP id m68mr12148175pfc.220.1501404275345; Sun, 30 Jul 2017 01:44:35 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.146]) by smtp.gmail.com with ESMTPSA id p126sm40644837pfp.28.2017.07.30.01.44.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 30 Jul 2017 01:44:34 -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 26/29] scsi: a100u2w: constify pci_device_id. Date: Sun, 30 Jul 2017 14:13:52 +0530 Message-Id: <1501404235-9105-6-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/a100u2w.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/a100u2w.c b/drivers/scsi/a100u2w.c index 8086bd0..80c39fd 100644 --- a/drivers/scsi/a100u2w.c +++ b/drivers/scsi/a100u2w.c @@ -1209,7 +1209,7 @@ static void inia100_remove_one(struct pci_dev *pdev) scsi_host_put(shost); } -static struct pci_device_id inia100_pci_tbl[] = { +static const struct pci_device_id inia100_pci_tbl[] = { {PCI_VENDOR_ID_INIT, 0x1060, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0}, {0,} };