From patchwork Thu Feb 8 19:22:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 127733 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp1793876ljc; Thu, 8 Feb 2018 11:24:29 -0800 (PST) X-Google-Smtp-Source: AH8x225TFr51LR9NMFJIs5Rc9G+vu/wwIVdt22QrivTzPB5xWGCqtTrVhSqC5QbEC857qx1bV4j9 X-Received: by 10.107.2.150 with SMTP id 144mr335868ioc.283.1518117869401; Thu, 08 Feb 2018 11:24:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518117869; cv=none; d=google.com; s=arc-20160816; b=SE9G8Dlai3D37FpMSjcOz788wXThwvVg7zHVYAVfRrMUI0RnQMI/FhSR5+rXcpLnrf DpDujxfVre5b0+fgN1oKj8sB3Hx8U+7Kn2sRymL3jTGipe1yNeaZbxuKo09bGGAXnFc0 u9BFas0UA+LllktLfWDGwkV5yfdfyGWv2JoSVvl7yc8jboI42Ou1vHBkyYt+4atOZEzX CA4YhCUpn1W7+gapAbOoLpMMp9NFC9LqX/3Z72N9pXdGR4VpSXsBFGtxjieFn/sf4xnM fXZ1p1zhEsJoBMLhUR0cfD+Qu4Fbe+0e8XUglk7C1pOKHfwF/14OrqoYbQL2FgtfPPHX PRwA== 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=N5G6Sk4ai9h+d2Sy20E1LWBw5XAPh62wkCirwevxRZM=; b=lgpy2vm7QXYkWQCIwgdRz75gaU+bsJpnbxXj6Em/ygxZBm651d9eSL2i4AM7sU4l8N JTaJRX213O4JAEsJ37e/6D9IiaAQoiVaQYJ8xW//eKhGv4NGE/OmtwT1iSq1W2gmd3Yw HxbPWTLkixI3d2WxvUi4OsI3PIwtrrBnOxc2KHq3vHbqEGWsGt3z+I6W5xo2qoRs8vlX Xz4guXHgyiofL1SdZgGf1peguBMAITEHaZpdpk2J2DzjcuSUxxzWRrAVHtzluAswcuWN sHK4CMEd2SSf/b1VIM2c85F6Mdq8693mTddsz2jbzoPNQu2tBqopqNOwBcIBiDbWAGN3 RFpQ== 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 q204si444053itd.36.2018.02.08.11.24.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Feb 2018 11:24:29 -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 1ejrmD-0006UU-RU; Thu, 08 Feb 2018 19:22:33 +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 1ejrmC-0006SR-Pt for xen-devel@lists.xen.org; Thu, 08 Feb 2018 19:22:32 +0000 X-Inumbo-ID: 589e9890-0d05-11e8-ba59-bc764e045a96 Received: from foss.arm.com (unknown [217.140.101.70]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTP id 589e9890-0d05-11e8-ba59-bc764e045a96; Thu, 08 Feb 2018 20:22:04 +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 9754380D; Thu, 8 Feb 2018 11:22:31 -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 8847D3F24D; Thu, 8 Feb 2018 11:22:30 -0800 (PST) From: Julien Grall To: xen-devel@lists.xen.org Date: Thu, 8 Feb 2018 19:22:03 +0000 Message-Id: <20180208192203.9556-16-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180208192203.9556-1-julien.grall@arm.com> References: <20180208192203.9556-1-julien.grall@arm.com> Cc: Julien Grall , sstabellini@kernel.org, volodymyr_babchuk@epam.com, andre.przywara@linaro.org Subject: [Xen-devel] [PATCH v2 15/15] 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 --- 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 = {