From patchwork Tue Jun 20 05:47:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9798565 X-Patchwork-Delegate: bhelgaas@google.com 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 D294160329 for ; Tue, 20 Jun 2017 05:48:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CC91426223 for ; Tue, 20 Jun 2017 05:48:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C172B28435; Tue, 20 Jun 2017 05:48:43 +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=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI 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 7230026223 for ; Tue, 20 Jun 2017 05:48:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751007AbdFTFsc (ORCPT ); Tue, 20 Jun 2017 01:48:32 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:33225 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750808AbdFTFsa (ORCPT ); Tue, 20 Jun 2017 01:48:30 -0400 Received: by mail-pf0-f193.google.com with SMTP id w12so21010803pfk.0; Mon, 19 Jun 2017 22:48: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; bh=QlXHUH+OrV8Z9XEHkjgjr+JuWN/DTMWA4Sp3ZkPIDN8=; b=F53et2vQRVwKEfEtnco+/PE6TxU7OhBZJf8JNpxz7AfIUYDvikVIzwzygO6OEXDxbx B973nwqrQbwTRQ1DNy8Ll3BxP4QLCjPvuhQnyud2SDqOIricmiOyNq/ZNkd1Uask6Gv6 TBxDYJ3pZVLS2c+m6YrUub90GsyX+PfplnzBV99kXmpkUQiRS4diK2reLFAeWpQB+AOn vPgkGU52UY+6Hu3bhPOBZVE8FZ4blZGFEIiufcBM2jeyEjwQzgdMOShArgoUXb2lcP7U D2lNDCxb2K7iyS10fZDvoAYZYnUCuPPtEQsDPUvhLG7UkqdHJpdWz4sP25SS/w8IZ9VH t1GA== 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; bh=QlXHUH+OrV8Z9XEHkjgjr+JuWN/DTMWA4Sp3ZkPIDN8=; b=BndturY4g8yyog7U3nlYKQzAzMJsC6MK8AJQq5c9hpleNxHlKUrm8qmZgd5N3PWom3 cC30WE0hwokpO0/1qbhS7IZu5PuTfw9QSgv/7pQ7t50yL6lcOUFKDkZn0hAh7ixvUH6s SL/NjIfJYObNKztgVcvf9Erm/yvIHFJcLz9KvV/PtlxCSBp7ivd3AwkRVPYTEJnJ+sMC vShSAHDpsqKGBFVOg4nYkIaQOoG0+c+JXyPSpPxBJtwKghdxNYh26mj61NtwW0PMX1DS ZfDCw+irST+Zc6s6x4R7hVGHrt1r0RLi3fJlINVHdEkFpUKQMOhLYBAzASnk4zRg7lEb AhOA== X-Gm-Message-State: AKS2vOzk2t0BjKKdbdRvVII8tNNoRKgPHLb/Bo0CyN5x5zkmN/qcE/33 MUOtLfWnLUYJ2A== X-Received: by 10.98.204.71 with SMTP id a68mr28797903pfg.59.1497937709609; Mon, 19 Jun 2017 22:48:29 -0700 (PDT) Received: from symbol-HP-Z420-Workstation.zebra.lan ([223.31.70.102]) by smtp.googlemail.com with ESMTPSA id r77sm23579395pfg.95.2017.06.19.22.48.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 19 Jun 2017 22:48:29 -0700 (PDT) From: Arvind Yadav To: bhelgaas@google.com, po.liu@nxp.com, paul.gortmaker@windriver.com, lorenzo.pieralisi@arm.com Cc: linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] PCI: xilinx: make of_device_ids const. Date: Tue, 20 Jun 2017 11:17:48 +0530 Message-Id: <5e1534021d712fa92cc0178313daeeb22e34798d.1497937235.git.arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP of_device_ids are not supposed to change at runtime. All functions working with of_device_ids provided by work with const of_device_ids. So mark the non-const structs as const. File size before: text data bss dec hex filename 195 600 0 795 31b drivers/pci/host/pcie-xilinx.o File size after constify xilinx_pcie_of_match: text data bss dec hex filename 595 184 0 779 30b drivers/pci/host/pcie-xilinx.o Signed-off-by: Arvind Yadav --- drivers/pci/host/pcie-xilinx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/host/pcie-xilinx.c b/drivers/pci/host/pcie-xilinx.c index 2fe2df5..b621cb5 100644 --- a/drivers/pci/host/pcie-xilinx.c +++ b/drivers/pci/host/pcie-xilinx.c @@ -696,7 +696,7 @@ static int xilinx_pcie_probe(struct platform_device *pdev) return err; } -static struct of_device_id xilinx_pcie_of_match[] = { +static const struct of_device_id xilinx_pcie_of_match[] = { { .compatible = "xlnx,axi-pcie-host-1.00.a", }, {} };