serial: core: Include console.h from serial_core.h
authorDouglas Anderson <dianders@chromium.org>
Tue, 30 Oct 2018 22:11:06 +0000 (15:11 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Nov 2018 17:07:17 +0000 (09:07 -0800)
commit3e6f88068314ffdba61a19f48ab0118f50424348
treede66c543d1658a5583d376d8121a9b9a84235ea7
parent336447b3298c5d5cda31270af716ad67ac4c7267
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 <dianders@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/serial_core.h