From: Douglas Anderson Date: Tue, 30 Oct 2018 22:11:06 +0000 (-0700) Subject: serial: core: Include console.h from serial_core.h X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=3e6f88068314ffdba61a19f48ab0118f50424348;p=linux.git serial: core: Include console.h from serial_core.h In the static inline function uart_handle_break() in serial_core.h we dereference port->cons. That gives an error unless console.h is also included. This error hasn't shown up till now because everyone who has defined SUPPORT_SYSRQ has also included console.h, but it's a bit ugly to make this requirement. Let's make the include explicit. Signed-off-by: Douglas Anderson Signed-off-by: Greg Kroah-Hartman --- diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h index 78de9d929762f..5fe2b037e8335 100644 --- a/include/linux/serial_core.h +++ b/include/linux/serial_core.h @@ -22,6 +22,7 @@ #include #include +#include #include #include #include