Skip to content

Commit 2093353

Browse files
committed
powerpc/embedded6xx: Fix no previous prototype for avr_uart_send() etc.
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
1 parent 83bc680 commit 2093353

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

arch/powerpc/platforms/embedded6xx/linkstation.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,6 @@ static void __init linkstation_init_IRQ(void)
9999
mpic_init(mpic);
100100
}
101101

102-
extern void avr_uart_configure(void);
103-
extern void avr_uart_send(const char);
104-
105102
static void __noreturn linkstation_restart(char *cmd)
106103
{
107104
local_irq_disable();

arch/powerpc/platforms/embedded6xx/mpc10x.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,4 +156,7 @@ int mpc10x_disable_store_gathering(struct pci_controller *hose);
156156
/* For MPC107 boards that use the built-in openpic */
157157
void mpc10x_set_openpic(void);
158158

159+
void avr_uart_configure(void);
160+
void avr_uart_send(const char c);
161+
159162
#endif /* __PPC_KERNEL_MPC10X_H */

0 commit comments

Comments
 (0)