From patchwork Mon Jul 2 16:19:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 140832 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp139993ljj; Mon, 2 Jul 2018 09:21:39 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeC43njt+gR3HAFUu/rVHAGcbRvRlkgaWlqKTFp52vdaZuB4Tsu9jSyRN6egGMAU2s3tEH1 X-Received: by 2002:a24:1848:: with SMTP id 69-v6mr6149698itr.57.1530548499549; Mon, 02 Jul 2018 09:21:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530548499; cv=none; d=google.com; s=arc-20160816; b=RPL8uy4rTb5yqvrEo8UetpMe34Ul96Wqqy7QH+D23QaWmTh2en29TF1SrMRuHRkQ2v PT4E78HhDIiMOz7+6GKm+snMkw7T9uYHxpD3HpfChjsIa9MeT6fiew9AURRlBHUI0z6d 6cps2WhwzzcyFSnBGXRInCo8OhDUEtixAWSRyud9u95AcbMgnewEU7hnZKnD5o0e8vqB dwmWgasJmV3VjhAGN68AfBbFnPCS58P6vbTgceOpUenrzNB+5V5qOaxM0VlYvV0opq7x DY5CT1I5JJ0w4uVhECFJF3bVAdfANb0gnexakNVBbOuf1v1oddO10tZ1n01qPvHrVZSz x2ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-unsubscribe:list-id :precedence:subject:references:in-reply-to:message-id:date:to:from :arc-authentication-results; bh=/QNKfLx2q50CW5CK0wDNw/vyZL/BMrqjIDK/VpMQRPU=; b=l1izIRZ2T5ptA2R3nawbji/ZmjnQ+FqLoUnuqEJTEzg6BX94VlkVb+82Mk/Diovguz mrDztuiwpEeX20msbrJ9HdLz8gb/54R0N4JoytvAwbhvRrRnnULeStpB7fvDqo3NPH2a ZON5f3/JcbfVUnpSkEvOKMYwI6sUDrNzyjwjPOhW2ghm00GEb99lTEjsHjY7IUU4wZWi mhmAlroVxff7BVt0ljwafN8BTdQAgi0cW+sMiL48KpH9pHftVTWsHyTcPyCHebnc29Kq qzfTB8kFhkahpE056AO4Y7Xg9D3AidhhqQzMJnj/NJ87Guc+I5/LPzpLz+JOocf2I5we qSTg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id c203-v6si11808320ioc.170.2018.07.02.09.21.39 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 02 Jul 2018 09:21:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1fa1Y2-0006tt-DJ; Mon, 02 Jul 2018 16:19:30 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1fa1Y0-0006sO-89 for xen-devel@lists.xen.org; Mon, 02 Jul 2018 16:19:28 +0000 X-Inumbo-ID: b2774e13-7e13-11e8-ba45-cfc176a5991c Received: from foss.arm.com (unknown [217.140.101.70]) by us1-amaz-eas1.inumbo.com (Halon) with ESMTP id b2774e13-7e13-11e8-ba45-cfc176a5991c; Mon, 02 Jul 2018 16:19:29 +0000 (UTC) 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 DDE361682; Mon, 2 Jul 2018 09:19:26 -0700 (PDT) Received: from e108454-lin.cambridge.arm.com (e108454-lin.cambridge.arm.com [10.1.206.53]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 231DC3F5BA; Mon, 2 Jul 2018 09:19:25 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xen.org Date: Mon, 2 Jul 2018 17:19:10 +0100 Message-Id: <20180702161910.2013-8-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180702161910.2013-1-julien.grall@arm.com> References: <20180702161910.2013-1-julien.grall@arm.com> Subject: [Xen-devel] [PATCH v2 7/7] xen/arm: setup: Move in init code only used at boot in setup.c X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Julien Grall , Stefano Stabellini MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Some of the functions implemented in setup.c are only used at boot but not yet marked as such. Signed-off-by: Julien Grall Reviewed-by: Stefano Stabellini --- Changes in v2: - Add Stefano's reviewed-by --- xen/arch/arm/setup.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/xen/arch/arm/setup.c b/xen/arch/arm/setup.c index 1d6f6bf37e..fe7384fd30 100644 --- a/xen/arch/arm/setup.c +++ b/xen/arch/arm/setup.c @@ -175,7 +175,7 @@ static void __init processor_id(void) check_local_cpu_errata(); } -void dt_unreserved_regions(paddr_t s, paddr_t e, +void __init dt_unreserved_regions(paddr_t s, paddr_t e, void (*cb)(paddr_t, paddr_t), int first) { int i, nr = fdt_num_mem_rsv(device_tree_flattened); @@ -201,9 +201,9 @@ void dt_unreserved_regions(paddr_t s, paddr_t e, cb(s, e); } -struct bootmodule *add_boot_module(bootmodule_kind kind, - paddr_t start, paddr_t size, - const char *cmdline) +struct bootmodule __init *add_boot_module(bootmodule_kind kind, + paddr_t start, paddr_t size, + const char *cmdline) { struct bootmodules *mods = &bootinfo.modules; struct bootmodule *mod; @@ -434,7 +434,7 @@ static paddr_t __init get_xen_paddr(void) return paddr; } -static void init_pdx(void) +static void __init init_pdx(void) { paddr_t bank_start, bank_size, bank_end;