aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/serial_core.h
diff options
context:
space:
mode:
authorDouglas Anderson <dianders@chromium.org>2018-10-30 15:11:06 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-11-09 09:07:17 -0800
commit3e6f88068314ffdba61a19f48ab0118f50424348 (patch)
treede66c543d1658a5583d376d8121a9b9a84235ea7 /include/linux/serial_core.h
parentserial: qcom_geni_serial: Process sysrq at port unlock time (diff)
downloadwireguard-linux-3e6f88068314ffdba61a19f48ab0118f50424348.tar.xz
wireguard-linux-3e6f88068314ffdba61a19f48ab0118f50424348.zip
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>
Diffstat (limited to 'include/linux/serial_core.h')
-rw-r--r--include/linux/serial_core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h
index 78de9d929762..5fe2b037e833 100644
--- a/include/linux/serial_core.h
+++ b/include/linux/serial_core.h
@@ -22,6 +22,7 @@
#include <linux/bitops.h>
#include <linux/compiler.h>
+#include <linux/console.h>
#include <linux/interrupt.h>
#include <linux/circ_buf.h>
#include <linux/spinlock.h>