powerpc/embedded6xx: Fix no previous prototype for avr_uart_send() etc.
authorMichael Ellerman <mpe@ellerman.id.au>
Tue, 5 Mar 2024 12:34:08 +0000 (23:34 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 6 Mar 2024 13:13:28 +0000 (00:13 +1100)
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
arch/powerpc/platforms/embedded6xx/linkstation.c
arch/powerpc/platforms/embedded6xx/mpc10x.h

index 9c10aac40c7b11ec8812a1f2243ee91801868d88..e265f026eee2a98a813a9263f97215df59a6f101 100644 (file)
@@ -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();
index 5ad12023e56280171238e13cf5136f67df1cc0bc..ebc258fa4858d023bd528d6015e64a2df465166c 100644 (file)
@@ -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 */