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: 9798567 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 D768160329 for ; Tue, 20 Jun 2017 05:49:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CFF6626223 for ; Tue, 20 Jun 2017 05:49:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C3F8128435; Tue, 20 Jun 2017 05:49: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=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4A85626223 for ; Tue, 20 Jun 2017 05:49:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=sQOEcKXGs7nCV0B/kQnHEk+ux/A9rtZ27oQWtqB97FM=; b=NGE ZZtPnSdP2CMgUguE+4PqYVZb1xd6ew1qYozn4Ijea6pmXUveJ+7GQbbtE04U88x/jS7gGwnTVFWI9 vKXiGHLiXo8M92P9IheprLKBrUCfZrNGGrw+npDgGmYRnECjvUdxJ+I6B4qxguwtYu8QtA81IwE9j 2gw3nk9WgzvIoQ2bTUX5edj/ihGPXSDNdfc31PkqghLkOf8ktm9PJeo0tToW9619WZO75avoGWDFD BGc3FQ6Pd660zdr80BHCWj4jylt8S3znn6SFLsl0CamMwedWnH926zrusQKxMGwb1CEr6Vz+wTmAW /znHe5DXkd32h1enH7kqBTDqt32yPUA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dNC24-0007e3-Cz; Tue, 20 Jun 2017 05:48:56 +0000 Received: from mail-pf0-x242.google.com ([2607:f8b0:400e:c00::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dNC1z-0007cg-HV for linux-arm-kernel@lists.infradead.org; Tue, 20 Jun 2017 05:48:53 +0000 Received: by mail-pf0-x242.google.com with SMTP id d5so21008429pfe.1 for ; 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=ecQ2+q5n1b4SmAXYVGx8HDNBgZSjeFxt8AvghQswJo/nnxtO+kCeCKs4/O42n7Yll4 pk8Jtzh6tQ+2cju+Q9N7bcLuHG2/vXqooKLP7y7PrGugJbDha35MDR1x/e3LDM2Bquz5 oIaiyWnsy/TolhRJQ6bey1pUIQR2pu5YAP+yqzuQQuPjjHfhpHDT5U7O6s8XLC/etzS/ qsPTDeYjpCWWtoN4/UYBulunqZIaq6c1MtvmXXQH7pxjNhBfIMYkvBU+27Bu8BeB1tox X83FBTZWnQ7k8jMeJo1w95jL0iNLouOytVJziLLFkgqinXvVxxhu78Xkd3jQ2xpO9fxn t7dA== X-Gm-Message-State: AKS2vOwkjuYJv/VuNrZl0UZY6bCOnUKXeon2A3qpy0b3xw6Ahx2ndkxX 9bgJhHuWjXNev9q7ZKE= 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170619_224851_627433_7993E979 X-CRM114-Status: UNSURE ( 9.99 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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", }, {} };