From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SIGNED_OFF_BY,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1E8F2C43381 for ; Tue, 19 Mar 2019 14:44:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DB6202173C for ; Tue, 19 Mar 2019 14:44:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553006695; bh=j21nQbMkBE6uCg2zjYcRXjtbOjHjqvjXTJZYRXCMpQ0=; h=Subject:To:From:Date:List-ID:From; b=IQ5sNhCasPjz1lmHt7JT7mTW69/TWvK47jDzxtrcQLi/vTEKKltx57Do6orFCvxDo 1Kzm94mpaae6zKhGwKT54qJ5eNFwkNmoefcWP1vuvruHSKm2fHcyK5NqXhAcAZi6lb EnKuQfjnika2FndiiLTjOTOjnioCLxbt6LJ4/pKc= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727399AbfCSOoy (ORCPT ); Tue, 19 Mar 2019 10:44:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:56340 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726857AbfCSOoy (ORCPT ); Tue, 19 Mar 2019 10:44:54 -0400 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 318A72133D; Tue, 19 Mar 2019 14:44:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553006693; bh=j21nQbMkBE6uCg2zjYcRXjtbOjHjqvjXTJZYRXCMpQ0=; h=Subject:To:From:Date:From; b=d21IoNIYi20kVGimt4vOzZUqNSd87kdct8kk7MK/7/9e4+ZSzE9DFSIJjugdU5ovF kvpAnHStBeu/lJVINenM84FfirFI39vlduETqoHtDmNhhVWlhFrU7mPkfREPF9j/iz JEJArV+LbXbU+Id7ft+K2+oD3BlvrML2DPQSSBPo= Subject: patch "tty: serial: qcom_geni_serial: Initialize baud in" added to tty-linus To: natechancellor@gmail.com, gregkh@linuxfoundation.org, ndesaulniers@google.com, stable@vger.kernel.org From: Date: Tue, 19 Mar 2019 15:44:27 +0100 Message-ID: <1553006667241144@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org 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 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. Link: https://github.com/ClangBuiltLinux/linux/issues/395 Suggested-by: Greg Kroah-Hartman Signed-off-by: Nathan Chancellor Reviewed-by: Nick Desaulniers Cc: stable Signed-off-by: Greg Kroah-Hartman --- drivers/tty/serial/qcom_geni_serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/qcom_geni_serial.c b/drivers/tty/serial/qcom_geni_serial.c index 3bcec1c20219..35e5f9c5d5be 100644 --- a/drivers/tty/serial/qcom_geni_serial.c +++ b/drivers/tty/serial/qcom_geni_serial.c @@ -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'; -- 2.21.0