diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2024-03-05 23:34:08 +1100 |
---|---|---|
committer | Sasha Levin <sashal@kernel.org> | 2024-03-26 18:18:42 -0400 |
commit | 21c2b3c4d05b1fb70a502b3d9df0fb4b2104ccb8 (patch) | |
tree | 943104ee8c89e81e5c014a43697ec3dc7cc3ae9f /arch/powerpc | |
parent | 6b7509bad3b1bf106e4fb035eda673548baae62a (diff) | |
download | linux-stable-21c2b3c4d05b1fb70a502b3d9df0fb4b2104ccb8.tar.gz linux-stable-21c2b3c4d05b1fb70a502b3d9df0fb4b2104ccb8.tar.bz2 linux-stable-21c2b3c4d05b1fb70a502b3d9df0fb4b2104ccb8.zip |
powerpc/embedded6xx: Fix no previous prototype for avr_uart_send() etc.
[ Upstream commit 20933531be0577cdd782216858c26150dbc7936f ]
Move the prototypes into mpc10x.h which is included by all the relevant
C files, fixes:
arch/powerpc/platforms/embedded6xx/ls_uart.c:59:6: error: no previous prototype for 'avr_uart_configure'
arch/powerpc/platforms/embedded6xx/ls_uart.c:82:6: error: no previous prototype for 'avr_uart_send'
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240305123410.3306253-1-mpe@ellerman.id.au
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/platforms/embedded6xx/linkstation.c | 3 | ||||
-rw-r--r-- | arch/powerpc/platforms/embedded6xx/mpc10x.h | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/arch/powerpc/platforms/embedded6xx/linkstation.c b/arch/powerpc/platforms/embedded6xx/linkstation.c index 9c10aac40c7b..e265f026eee2 100644 --- a/arch/powerpc/platforms/embedded6xx/linkstation.c +++ b/arch/powerpc/platforms/embedded6xx/linkstation.c @@ -99,9 +99,6 @@ static void __init linkstation_init_IRQ(void) mpic_init(mpic); } -extern void avr_uart_configure(void); -extern void avr_uart_send(const char); - static void __noreturn linkstation_restart(char *cmd) { local_irq_disable(); diff --git a/arch/powerpc/platforms/embedded6xx/mpc10x.h b/arch/powerpc/platforms/embedded6xx/mpc10x.h index 5ad12023e562..ebc258fa4858 100644 --- a/arch/powerpc/platforms/embedded6xx/mpc10x.h +++ b/arch/powerpc/platforms/embedded6xx/mpc10x.h @@ -156,4 +156,7 @@ int mpc10x_disable_store_gathering(struct pci_controller *hose); /* For MPC107 boards that use the built-in openpic */ void mpc10x_set_openpic(void); +void avr_uart_configure(void); +void avr_uart_send(const char c); + #endif /* __PPC_KERNEL_MPC10X_H */ |