From patchwork Tue Aug 30 12:01:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Liu X-Patchwork-Id: 9305283 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 DD545607F0 for ; Tue, 30 Aug 2016 12:10:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CBCE028B9E for ; Tue, 30 Aug 2016 12:10:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BC73F28BA5; Tue, 30 Aug 2016 12:10:09 +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=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2B16728B9E for ; Tue, 30 Aug 2016 12:10:06 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1behkY-0002l8-Et; Tue, 30 Aug 2016 12:02:42 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1behkW-0002kr-QW for xen-devel@lists.xenproject.org; Tue, 30 Aug 2016 12:02:40 +0000 Received: from [193.109.254.147] by server-5.bemta-6.messagelabs.com id EA/9C-29563-0E575C75; Tue, 30 Aug 2016 12:02:40 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupnkeJIrShJLcpLzFFi42JxWrohUvdO6dF wg2Pf1S2+b5nM5MDocfjDFZYAxijWzLyk/IoE1oyZO+sLnnJUbJs7l62B8QR7FyMnh4SAv8TP Wa9YQWw2AWWJn529bCC2iICeRNOB54xdjBwczAIlErdb/EHCwgIeEpMXbGMCsVkEVCUm/HoDN oZXwFniyrV2FoiRchLnj/9kBrE5BVwkTi5pBqsRAqrpXj+NCcJWkOiYfowJoldQ4uTMJ2C9zA ISEgdfvGCGmMMtcfv0VOYJjHyzkJTNQlK2gJFpFaNGcWpRWWqRrqGlXlJRZnpGSW5iZo6uoYG ZXm5qcXFiempOYlKxXnJ+7iZGYEAxAMEOxh/LAg4xSnIwKYnyTo0/Ei7El5SfUpmRWJwRX1Sa k1p8iFGGg0NJgvd2ydFwIcGi1PTUirTMHGBow6QlOHiURHj3g6R5iwsSc4sz0yFSpxgVpcR52 0ASAiCJjNI8uDZYPF1ilJUS5mUEOkSIpyC1KDezBFX+FaM4B6OSMO99kCk8mXklcNNfAS1mAl pccOcwyOKSRISUVANjz5/7rCEXbCrWS8V5XBYzt1ujr3jRL+ZBxKYd4coSMleM7ATYf59iemf rOnmb5VqZpn3SH+8F1Rzhfd+uI3XzYvbOKBu2idt2GfocjV71Q5bHsFJq66NuK/1p1gEZDUV1 S++0x357rPVs3y4Xu4JfnnOXhO7tyOrZs/Uqu8Fm08D/zoeDnt9QYinOSDTUYi4qTgQA7pJq/ KICAAA= X-Env-Sender: prvs=043708e8b=wei.liu2@citrix.com X-Msg-Ref: server-14.tower-27.messagelabs.com!1472558554!44017260!1 X-Originating-IP: [66.165.176.89] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni44OSA9PiAyMDMwMDc=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 8.84; banners=-,-,- X-VirusChecked: Checked Received: (qmail 52982 invoked from network); 30 Aug 2016 12:02:36 -0000 Received: from smtp.citrix.com (HELO SMTP.CITRIX.COM) (66.165.176.89) by server-14.tower-27.messagelabs.com with RC4-SHA encrypted SMTP; 30 Aug 2016 12:02:36 -0000 X-IronPort-AV: E=Sophos;i="5.30,256,1470700800"; d="scan'208";a="375203557" From: Wei Liu To: Xen-devel Date: Tue, 30 Aug 2016 13:01:29 +0100 Message-ID: <1472558492-22273-2-git-send-email-wei.liu2@citrix.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1472558492-22273-1-git-send-email-wei.liu2@citrix.com> References: <1472558492-22273-1-git-send-email-wei.liu2@citrix.com> MIME-Version: 1.0 X-DLP: MIA2 Cc: Julien Grall , Stefano Stabellini , Wei Liu Subject: [Xen-devel] [PATCH 1/4] arm: acpi/boot.c is only used during initialisation 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: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP That file should contain code and data used during initialisation only. Mark it as such in build system and correctly annotate enabled_cpus. This is required to enable gcov support on ARM. Signed-off-by: Wei Liu Reviewed-by: Julien Grall --- Cc: Stefano Stabellini Cc: Julien Grall --- xen/arch/arm/acpi/Makefile | 2 +- xen/arch/arm/acpi/boot.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/arch/arm/acpi/Makefile b/xen/arch/arm/acpi/Makefile index 196c40a..23963f8 100644 --- a/xen/arch/arm/acpi/Makefile +++ b/xen/arch/arm/acpi/Makefile @@ -1,2 +1,2 @@ obj-y += lib.o -obj-y += boot.o +obj-y += boot.init.o diff --git a/xen/arch/arm/acpi/boot.c b/xen/arch/arm/acpi/boot.c index 28b3450..c3242a0 100644 --- a/xen/arch/arm/acpi/boot.c +++ b/xen/arch/arm/acpi/boot.c @@ -37,7 +37,7 @@ #include /* Processors with enabled flag and sane MPIDR */ -static unsigned int enabled_cpus = 1; +static unsigned int __initdata enabled_cpus = 1; static bool __initdata bootcpu_valid; /* total number of cpus in this system */