patch "tty: serial: qcom_geni_serial: Initialize baud in" added to tty-linus
This is a note to let you know that I've just added the patch titled
tty: serial: qcom_geni_serial: Initialize baud in
to my tty git tree which can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git
in the tty-linus branch.
The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.)
The patch will hopefully also be merged in Linus's tree for the next -rc kernel release.
If you have any questions about this process, please let me know.
From c5cbc78acf693f5605d4a85b1327fa7933daf092 Mon Sep 17 00:00:00 2001
From: Nathan Chancellor <[email protected]>
Date: Fri, 8 Mar 2019 11:37:44 -0700
Subject: tty: serial: qcom_geni_serial: Initialize baud in
qcom_geni_console_setup
When building with -Wsometimes-uninitialized, Clang warns:
drivers/tty/serial/qcom_geni_serial.c:1079:6: warning: variable 'baud' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
It's not wrong; when options is NULL, baud has no default value. Use 9600 as that is a sane default.
--- drivers/tty/serial/qcom_geni_serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/tty/serial/qcom_geni_serial.c +1 -1
@@ -1050,7 +1050,7 @@ static int __init qcom_geni_console_setup(struct console *co, char *options) {struct uart_port *uport;struct qcom_geni_serial_port *port; -int baud; +int baud =9600 ;int bits =8 ;int parity ='n' ;int flow ='n' ;
Signature · 1 line
2.21.0