From: Peter Hurley Date: Sat, 11 Apr 2015 15:02:36 +0000 (-0400) Subject: serial: core: Fix unused variable warnings from uart_console() X-Git-Tag: omap-for-v4.2/wakeirq-drivers-v2^2~126 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b3cddccf4eec0883feb065aea28dd9770bb17d0;p=pandora-kernel.git serial: core: Fix unused variable warnings from uart_console() If CONFIG_SERIAL_CORE_CONSOLE=n, build warnings are generated by uart_console() macro expansion: drivers/tty/serial/of_serial.c: In function ‘of_serial_suspend_8250’: drivers/tty/serial/of_serial.c:262:20: warning: unused variable ‘port’ [-Wunused-variable] struct uart_port *port = &port8250->port; ^ drivers/tty/serial/of_serial.c: In function ‘of_serial_resume_8250’: drivers/tty/serial/of_serial.c:272:20: warning: unused variable ‘port’ [-Wunused-variable] struct uart_port *port = &port8250->port; Signed-off-by: Peter Hurley Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed