From d6d7a95c1bdba370e2249efdecfab712c10cfc9b Mon Sep 17 00:00:00 2001 From: Christoffer Dall Date: Tue, 27 May 2014 11:18:17 +0200 Subject: arm: Fix compile warning for psci Commit e71246a23acbc89e9cb4ebf1558d60e65733479f changes psci_init from a function returning a void to an int, but does not change the non CONFIG_ARM_PSCI implementation to return a value, which causes a compile warning. Just return 0. Cc: Ashwin Chaugule Cc: Shawn Guo Signed-off-by: Christoffer Dall Signed-off-by: Paolo Bonzini --- arch/arm/include/asm/psci.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arch/arm/include/asm/psci.h') diff --git a/arch/arm/include/asm/psci.h b/arch/arm/include/asm/psci.h index b93e34a9fdf1..c25ef3ec6d1f 100644 --- a/arch/arm/include/asm/psci.h +++ b/arch/arm/include/asm/psci.h @@ -41,7 +41,7 @@ extern struct smp_operations psci_smp_ops; int psci_init(void); bool psci_smp_available(void); #else -static inline int psci_init(void) { } +static inline int psci_init(void) { return 0; } static inline bool psci_smp_available(void) { return false; } #endif -- cgit v1.2.3