Skip to content

Commit

Permalink
arm: Fix compile warning for psci
Browse files Browse the repository at this point in the history
Commit e71246a 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>
  • Loading branch information
Christoffer Dall authored and Paolo Bonzini committed May 27, 2014
1 parent 0409220 commit d6d7a95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/include/asm/psci.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d6d7a95

Please sign in to comment.