diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2018-11-09 10:24:40 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-11-12 08:31:47 +0100 |
commit | 6621b8916a557a8227c912507ce6e5605235db6b (patch) | |
tree | c353ae87ab9cf4c45b2e98574fa4880053c56545 /arch/arm/cpu/psci.c | |
parent | 5ee7fb90c54b4f25cc5a68e45ef10a007f0a5442 (diff) | |
download | barebox-6621b8916a557a8227c912507ce6e5605235db6b.tar.gz barebox-6621b8916a557a8227c912507ce6e5605235db6b.tar.xz |
ARM: psci: Avoid missing prototypes warning
Avoid missing prototypes warning by adding prototypes. Since these
functions are called from assembly add the prototypes to the C file
directly.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/cpu/psci.c')
-rw-r--r-- | arch/arm/cpu/psci.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/cpu/psci.c b/arch/arm/cpu/psci.c index 1c8197aa3f..c4c8c64cbe 100644 --- a/arch/arm/cpu/psci.c +++ b/arch/arm/cpu/psci.c @@ -156,6 +156,10 @@ static unsigned long psci_system_reset(void) restart_machine(); } +/* Avoid missing prototype warning, called from assembly */ +void psci_entry(u32 r0, u32 r1, u32 r2, u32 r3, u32 r4, u32 r5, u32 r6, + struct arm_smccc_res *res); + void psci_entry(u32 r0, u32 r1, u32 r2, u32 r3, u32 r4, u32 r5, u32 r6, struct arm_smccc_res *res) { @@ -209,6 +213,9 @@ static int of_psci_fixup(struct device_node *root, void *unused) return 0; } +/* Avoid missing prototype warning, called from assembly */ +int psci_cpu_entry_c(void); + int psci_cpu_entry_c(void) { void (*entry)(u32 context); |