From patchwork Sun Jul 30 08:40:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9870303 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 1B09B6032A for ; Sun, 30 Jul 2017 08:42:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0CD2A28584 for ; Sun, 30 Jul 2017 08:42:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 01C58285E3; Sun, 30 Jul 2017 08:42:45 +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 AFE3428584 for ; Sun, 30 Jul 2017 08:42:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754090AbdG3IlS (ORCPT ); Sun, 30 Jul 2017 04:41:18 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:36106 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753969AbdG3IlN (ORCPT ); Sun, 30 Jul 2017 04:41:13 -0400 Received: by mail-pg0-f65.google.com with SMTP id y129so27708805pgy.3; Sun, 30 Jul 2017 01:41:13 -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=33CoS6rjtGtDRteOE1bjOUN8X9uAPM0lZ73OwM+YKeI=; b=ugyVAic4XqIPJUtvpxIFtT0wV6mFAK4dFLTNkOS+kSKsp3txnBf/D58Ah6/pUFKS6z E0wLgxaobNcwIywJZlvCii7xelV70rv8ugNnAzzgI+BxSEEZn+5Uygh6BRR+Zed+MhyO yKe6C32xuB4bOL/nBXdSVm6YSKHrXlIRB/Q+IsGYCkNNRewHx4kw26q8cBcWzgXb/zmJ H+omzxzpD6igGSphkyK0sTQ9ZTpaE2eWJkFmoZ185NzAX5aNmsrF+HkTHL2K7b958P3f vBwTuWk57cbu+ry9a4B/u2T5nZYBeiM7Vs/LmQsL4QuUkUOjwINlj6sicKCL3AzICS3c IyQw== 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=33CoS6rjtGtDRteOE1bjOUN8X9uAPM0lZ73OwM+YKeI=; b=gAuWtgroLw3HHsxrRmjsy17ma3BX9HUQEjY9be84o/9sh/ODqcCC+O8pf1VNQgrZ5Q sWOS7D1tvbi/c5ixW3Ztq/zB42wR8ublB2mpo2JdIGEddxyKF5MY0knl0Tmpr48+9hiZ dka+Koi2kCl8J97J3ZCbi/9PGvPLI5e86TCBGL2cX56sAv1UFg5uc4A58SOs6n8kod5m JsFqgSEX1/wcNRlTEfzZDqz66ZDDRWFew9u5n4zyvZ2l4bFvzvRV+uJCA539wDxcUm3i OuyyDJbV7JkaXC1qv3HJ8dyuVCka8NrOBgWEo3BKfj38/p6Rr1WNNLqdznC6EN5B1V4i wjXQ== X-Gm-Message-State: AIVw111vr0bSibufUMID1PsJ30JGJDeGu8q+9ThkPiOmG618C0iVdkL1 rxB15ljcFD0orA== X-Received: by 10.98.7.9 with SMTP id b9mr11545216pfd.92.1501404072754; Sun, 30 Jul 2017 01:41:12 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.146]) by smtp.gmail.com with ESMTPSA id b185sm27220522pfa.65.2017.07.30.01.41.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 30 Jul 2017 01:41:12 -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 15/29] scsi: sym53c8xx_2: constify pci_device_id. Date: Sun, 30 Jul 2017 14:10:31 +0530 Message-Id: <1501404036-9005-5-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 --- drivers/scsi/sym53c8xx_2/sym_glue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/sym53c8xx_2/sym_glue.c b/drivers/scsi/sym53c8xx_2/sym_glue.c index d32e3ba..6934265 100644 --- a/drivers/scsi/sym53c8xx_2/sym_glue.c +++ b/drivers/scsi/sym53c8xx_2/sym_glue.c @@ -2000,7 +2000,7 @@ static struct spi_function_template sym2_transport_functions = { .get_signalling = sym2_get_signalling, }; -static struct pci_device_id sym2_id_table[] = { +static const struct pci_device_id sym2_id_table[] = { { PCI_VENDOR_ID_LSI_LOGIC, PCI_DEVICE_ID_NCR_53C810, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0UL }, { PCI_VENDOR_ID_LSI_LOGIC, PCI_DEVICE_ID_NCR_53C820,