arm: Fix compile warning for psci
authorChristoffer Dall <christoffer.dall@linaro.org>
Tue, 27 May 2014 09:18:17 +0000 (11:18 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 27 May 2014 13:58:49 +0000 (15:58 +0200)
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 <ashwin.chaugule@linaro.org>
Cc: Shawn Guo <shawn.guo@freescale.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/arm/include/asm/psci.h

index b93e34a9fdf1dda7808fb088c3505bbe0339c91a..c25ef3ec6d1f85dc1e259dd1f777ce546d33d97e 100644 (file)
@@ -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
 
This page took 0.02775 seconds and 5 git commands to generate.