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

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>

authored by

Douglas Anderson and committed by
Greg Kroah-Hartman
3e6f8806 336447b3

+1
+1
include/linux/serial_core.h
··· 22 22 23 23 #include <linux/bitops.h> 24 24 #include <linux/compiler.h> 25 + #include <linux/console.h> 25 26 #include <linux/interrupt.h> 26 27 #include <linux/circ_buf.h> 27 28 #include <linux/spinlock.h>