From patchwork Tue Jan 17 15:53:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 91685 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp557315qgi; Tue, 17 Jan 2017 07:55:08 -0800 (PST) X-Received: by 10.36.33.135 with SMTP id e129mr10505943ita.9.1484668508006; Tue, 17 Jan 2017 07:55:08 -0800 (PST) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id n67si12705681ith.5.2017.01.17.07.55.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Jan 2017 07:55:08 -0800 (PST) Received-SPF: neutral (google.com: 192.237.175.120 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) client-ip=192.237.175.120; Authentication-Results: mx.google.com; spf=neutral (google.com: 192.237.175.120 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) smtp.mailfrom=xen-devel-bounces@lists.xen.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cTW4n-00020U-91; Tue, 17 Jan 2017 15:53:37 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cTW4l-00020F-O4 for xen-devel@lists.xen.org; Tue, 17 Jan 2017 15:53:35 +0000 Received: from [85.158.137.68] by server-5.bemta-3.messagelabs.com id 16/A5-19998-EFD3E785; Tue, 17 Jan 2017 15:53:34 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrHLMWRWlGSWpSXmKPExsVysyfVTfefbV2 EwfILChZLPi5mcWD0OLr7N1MAYxRrZl5SfkUCa8aaVbtZCi5wVjzZuYqpgfEsexcjF4eQwCZG iXlbbrBCOKcZJY7NuM3WxcjJwSagKXHn8ycmEFtEQFri2ufLjCA2s4CDxJuP91hAbGEBN4lJG zeB1bMIqEosm3YNaBAHB6+Ai8T1v0YgYQkBOYmTxyazTmDkXMDIsIpRozi1qCy1SNfIUi+pKD M9oyQ3MTNH19DAWC83tbg4MT01JzGpWC85P3cTI9Bf9QwMjDsYm/b6HWKU5GBSEuXteFwbIcS XlJ9SmZFYnBFfVJqTWnyIUYaDQ0mCNxvofyHBotT01Iq0zBxg4MCkJTh4lER4Z4CkeYsLEnOL M9MhUqcYFaXEeb1AEgIgiYzSPLg2WLBeYpSVEuZlZGBgEOIpSC3KzSxBlX/FKM7BqCTMmwoyh SczrwRu+iugxUxAi6/rVIMsLklESEk1MIr3uBhLcYvv1i7yO3t7PfO0E9M8X83U2Zsi6pq6oO z/mX/bnkZMXLW69GeiB9eqD5/8HMvt3L6vmt8sdJwlyPmtvWk9E8tSp/OSHPr3xBY9OztrZ/P qwzs77iuEfPp82PfPTYHf3s2nm9RkZOLn/p4aF5tQ9Enad7Wwzt/oiYcmeNXe8pp28JsSS3FG oqEWc1FxIgBozl7TUQIAAA== X-Env-Sender: julien.grall@arm.com X-Msg-Ref: server-16.tower-31.messagelabs.com!1484668414!73422870!1 X-Originating-IP: [217.140.101.70] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 9.1.1; banners=-,-,- X-VirusChecked: Checked Received: (qmail 61599 invoked from network); 17 Jan 2017 15:53:34 -0000 Received: from foss.arm.com (HELO foss.arm.com) (217.140.101.70) by server-16.tower-31.messagelabs.com with SMTP; 17 Jan 2017 15:53:34 -0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B3062707; Tue, 17 Jan 2017 07:53:33 -0800 (PST) Received: from e108454-lin.cambridge.arm.com (e108454-lin.cambridge.arm.com [10.1.218.32]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 21FD13F3D6; Tue, 17 Jan 2017 07:53:33 -0800 (PST) From: Julien Grall To: xen-devel@lists.xen.org Date: Tue, 17 Jan 2017 15:53:24 +0000 Message-Id: <1484668404-26796-1-git-send-email-julien.grall@arm.com> X-Mailer: git-send-email 1.9.1 Cc: Julien Grall , sstabellini@kernel.org Subject: [Xen-devel] [PATCH] xen/arm: bootfdt.c is only used during initialization X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" This file contains data and code only used at initialization. Mark the file as such in the build system and correct kind_guess. Signed-off-by: Julien Grall Reviewed-by: Stefano Stabellini --- xen/arch/arm/Makefile | 2 +- xen/arch/arm/bootfdt.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/arch/arm/Makefile b/xen/arch/arm/Makefile index 59b3b53..cf67bbe 100644 --- a/xen/arch/arm/Makefile +++ b/xen/arch/arm/Makefile @@ -5,7 +5,7 @@ subdir-$(CONFIG_ARM_64) += efi subdir-$(CONFIG_ACPI) += acpi obj-$(CONFIG_HAS_ALTERNATIVE) += alternative.o -obj-y += bootfdt.o +obj-y += bootfdt.init.o obj-y += cpu.o obj-y += cpuerrata.o obj-y += cpufeature.o diff --git a/xen/arch/arm/bootfdt.c b/xen/arch/arm/bootfdt.c index d130633..cae6f83 100644 --- a/xen/arch/arm/bootfdt.c +++ b/xen/arch/arm/bootfdt.c @@ -168,7 +168,7 @@ static void __init process_multiboot_node(const void *fdt, int node, const char *name, u32 address_cells, u32 size_cells) { - static int kind_guess = 0; + static int __initdata kind_guess = 0; const struct fdt_property *prop; const __be32 *cell; bootmodule_kind kind;