summaryrefslogtreecommitdiffstats
path: root/drivers/tty/tty_buffer.c
diff options
context:
space:
mode:
authorSoren Brinkmann2013-10-22 01:41:00 +0200
committerGreg Kroah-Hartman2013-10-29 17:26:11 +0100
commitd3641f64bc71765682754722fd42fae24366bb3a (patch)
tree59b2273f71fbc91dbf4ba1d13338d45562f6edd4 /drivers/tty/tty_buffer.c
parenttty: xuartps: Fix "may be used uninitialized" build warning (diff)
downloadkernel-qcow2-linux-d3641f64bc71765682754722fd42fae24366bb3a.tar.gz
kernel-qcow2-linux-d3641f64bc71765682754722fd42fae24366bb3a.tar.xz
kernel-qcow2-linux-d3641f64bc71765682754722fd42fae24366bb3a.zip
tty: xuartps: Fix build error due to missing forward declaration
If CONFIG_PM_SLEEP is enabled and CONFIG_SERIAL_XILINX_PS_UART_CONSOLE is not, a forward declaration of the uart_driver struct is not included, leading to a build error due to an undeclared variable. Fixing this by moving the definition of the struct uart_driver before the definition of the suspend/resume callbacks. Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com> Reported-by: kbuild test robot <fengguang.wu@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/tty_buffer.c')
0 files changed, 0 insertions, 0 deletions