From: Julien Grall Date: Fri, 23 Feb 2018 18:57:26 +0000 (+0000) Subject: xen/arm: psci: Prefix with static any functions not exported X-Git-Tag: archive/raspbian/4.11.1-1+rpi1~1^2~66^2~522 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ec46740baef1e4c09ecf28b98f9e5474115574a2;p=xen.git xen/arm: psci: Prefix with static any functions not exported 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 --- diff --git a/xen/arch/arm/psci.c b/xen/arch/arm/psci.c index 6e6980bfe2..94b616df9b 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 = {