From patchwork Thu Feb 15 15:02:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 128471 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp1847189ljc; Thu, 15 Feb 2018 07:05:57 -0800 (PST) X-Google-Smtp-Source: AH8x225Nu1bmg3cE5rG7P4xOn+YXdiI0O7VDZAuWXpYQCkJGCCcz/UQnL0KLG55Q2kDg6HMHMGfy X-Received: by 10.36.94.199 with SMTP id h190mr3471552itb.21.1518707157602; Thu, 15 Feb 2018 07:05:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518707157; cv=none; d=google.com; s=arc-20160816; b=0/59b5hfCcEDoI53LHJzAucVcKSWq8IiMfOosUQnYVbqDMZ05LBTrYcbRJPe7FZ7eM eFZcpwPSnXevUx375ieBf2BTtJRdRf52JmqkI8tTgoTHfHVif3Q3soNPsr7OY2RATU5M 3YQiiCbpRJ2VI5KL1Rn7FvnrWZHbbLSqr0BdKgkoIndMQ/p+48lcFcZLd0M/3mAzu8Md 3sE+c3EVkwyto52A7M1rL1q1wf3DbKu9gyF8MUd30oOq4D8yTRA4ZHGNUvdt5b5JRYF2 jrZQ+XdAXw9Bw40ToVLEX0roQ4u697/UCo/p8/sI/zlHX5KvZXMH58gLUJVKFwEFchz3 HWmQ== 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 :list-subscribe:list-help:list-post:list-unsubscribe:list-id :precedence:subject:cc:references:in-reply-to:message-id:date:to :from:arc-authentication-results; bh=KXwCV7soUHAjALcgZzeY07UPq0gNOctBsqmp24pApgs=; b=Ei0eLOjNwzKFUcYW/UJ+fDiFPJ9PM+2rUrUG79n9J9i6ibDo/NGnF9dhiXAOvPwzSf 6MgyBTag291H9re/Vs4fx6ESsyjF4tmN7eomAoZnZFJ1hSqYZs+0GQHvkuSC6xCKbaS2 tFc6r7JMgHazLG6sm9tZa5VYkZtiC5AJiJS/uurbtTQNJ8wo6Zs/GIW/LRMAXDC9hbNn pNR7rbhTL2NMf3h5D4vKkyLKyYaoPkjYR9sLvtIYsMxH1QBKUgnNPcO1aOk7mAlMggYi GGMijUT1/LcPa8HYi79KophSonT9DLP7dLUKQ+2BAIHHtI9ans16uGnotn+DVvtiKcdC rwIg== 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 135si24672itp.149.2018.02.15.07.05.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Feb 2018 07:05:57 -0800 (PST) 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.84_2) (envelope-from ) id 1emL4C-00024O-HM; Thu, 15 Feb 2018 15:03:20 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emL4B-000239-FS for xen-devel@lists.xen.org; Thu, 15 Feb 2018 15:03:19 +0000 X-Inumbo-ID: 447669e2-1261-11e8-ba59-bc764e045a96 Received: from foss.arm.com (unknown [217.140.101.70]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTP id 447669e2-1261-11e8-ba59-bc764e045a96; Thu, 15 Feb 2018 16:02:40 +0100 (CET) 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 0173415BF; Thu, 15 Feb 2018 07:03:18 -0800 (PST) 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 E650A3F41F; Thu, 15 Feb 2018 07:03:16 -0800 (PST) From: Julien Grall To: xen-devel@lists.xen.org Date: Thu, 15 Feb 2018 15:02:45 +0000 Message-Id: <20180215150248.28922-15-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180215150248.28922-1-julien.grall@arm.com> References: <20180215150248.28922-1-julien.grall@arm.com> Cc: Julien Grall , sstabellini@kernel.org, volodymyr_babchuk@epam.com, andre.przywara@linaro.org Subject: [Xen-devel] [PATCH v3 14/17] xen/arm: psci: Prefix with static any functions not exported X-BeenThere: xen-devel@lists.xenproject.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.xenproject.org Sender: "Xen-devel" A bunch of PSCI functions are not prefixed with static despite no one is using them outside the file and the prototype is not available in psci.h. Signed-off-by: Julien Grall Reviewed-by: Volodymyr Babchuk Acked-by: Stefano Stabellini --- Changes in v2: - Patch added --- xen/arch/arm/psci.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xen/arch/arm/psci.c b/xen/arch/arm/psci.c index 7a8cf54e6d..5d94a9a9ae 100644 --- a/xen/arch/arm/psci.c +++ b/xen/arch/arm/psci.c @@ -66,7 +66,7 @@ static int __init psci_features(uint32_t psci_func_id) return call_smc(PSCI_1_0_FN32_PSCI_FEATURES, psci_func_id, 0, 0); } -int __init psci_is_smc_method(const struct dt_device_node *psci) +static int __init psci_is_smc_method(const struct dt_device_node *psci) { int ret; const char *prop_str; @@ -109,7 +109,7 @@ static void __init psci_init_smccc(void) SMCCC_VERSION_MAJOR(smccc_ver), SMCCC_VERSION_MINOR(smccc_ver)); } -int __init psci_init_0_1(void) +static int __init psci_init_0_1(void) { int ret; const struct dt_device_node *psci; @@ -139,7 +139,7 @@ int __init psci_init_0_1(void) return 0; } -int __init psci_init_0_2(void) +static int __init psci_init_0_2(void) { static const struct dt_device_match psci_ids[] __initconst = {