Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tty: serial: 8250: 8250_port: Move prototypes to shared location

Fixes the following W=1 kernel build warning(s):

drivers/tty/serial/8250/8250_port.c:349:14: warning: no previous prototype for ‘au_serial_in’ [-Wmissing-prototypes]
drivers/tty/serial/8250/8250_port.c:359:6: warning: no previous prototype for ‘au_serial_out’ [-Wmissing-prototypes]

Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Jiri Slaby <jirislaby@kernel.org>
Cc: Mike Hudson <Exoray@isys.ca>
Cc: linux-serial@vger.kernel.org
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20201112105857.2078977-3-lee.jones@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Lee Jones and committed by
Greg Kroah-Hartman
a609c580 1f78ae99

+5 -3
-3
drivers/tty/serial/8250/8250_early.c
··· 204 204 205 205 #ifdef CONFIG_SERIAL_8250_RT288X 206 206 207 - unsigned int au_serial_in(struct uart_port *p, int offset); 208 - void au_serial_out(struct uart_port *p, int offset, int value); 209 - 210 207 static int __init early_au_setup(struct earlycon_device *dev, const char *opt) 211 208 { 212 209 dev->port.serial_in = au_serial_in;
+5
include/linux/serial_8250.h
··· 187 187 (int port, struct uart_port *up, 188 188 u32 *capabilities)); 189 189 190 + #ifdef CONFIG_SERIAL_8250_RT288X 191 + unsigned int au_serial_in(struct uart_port *p, int offset); 192 + void au_serial_out(struct uart_port *p, int offset, int value); 193 + #endif 194 + 190 195 #endif