Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3994265imu; Mon, 14 Jan 2019 12:53:09 -0800 (PST) X-Google-Smtp-Source: ALg8bN7nwlXV6BQQfj3BTuOgl91PZsbHkbjtI+jAQn4alAfgsG7KtPLibmesvC8VgQBWnicXrI04 X-Received: by 2002:a17:902:d83:: with SMTP id 3mr404285plv.43.1547499189365; Mon, 14 Jan 2019 12:53:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547499189; cv=none; d=google.com; s=arc-20160816; b=D2KsPu0s353o5UKtr7cQWizr4el98QbWTh6X90yUoqSlh9qmOboKnAbgu+R6w8rYtH IVSSD0YuwVKwECmT8wkY+e25/0c+ZbKGANLgMgVyRHgix3awKVI6ZReMFlAn7i5DCnLH ioSRJIPNkculk1KDbRgG+n8AmaJOg6N1jzfQo0o/lkD8nEtIHEBkZeCrFhAzwmZFOIjD 37Xiy1nsaPLCAgrMp0ka6qweUZZNdpqQo5utLH9AgcQU461T+9MLl/rEvlQV5IMPucZ+ eM5BEtRyxD5iASn8Lehn3ukCqPe3IHv2NFC1TEPzPuztlg3qpPnPHnfGq5+8VbfICrhD XUlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=VL6ZS+HNWvv1gtXl5vV3OS11Lfk5GGzita7bS0u9Xpc=; b=NJ3j8ks3LGEJaznltb3GfHBwzIHMCGd6NttPiwH2Bim4EYEB1CyAf5v8Tke5Vgt1mt Vt4+k1lKsBfr7YUoAAFUq2fXs5Kz8Fp0izPV/DYOLzYKYA+9CvgrzhCUX4/13aBPVN5y bPw5/2eOSvktIjUNRToHc2IXwK+2UjHZB2amMTWasSt/diEZpkrUFbKgh44DXX+Im/Sp 5UtUmY3Coa/Cc0sdeBcnlJ1cNHRdavtNRkhYqGtuC++O/Ob3wzljohMdZAPhsZe4zQX7 5Yv8cmnuDW0iKr2lkaNbjr/has19awXfyVTrvs1saP0jM/BCGlOm9KxiztvlK4y9niQg BCXg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r18si1162822pls.115.2019.01.14.12.52.53; Mon, 14 Jan 2019 12:53:09 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726863AbfANUuT (ORCPT + 99 others); Mon, 14 Jan 2019 15:50:19 -0500 Received: from gateway32.websitewelcome.com ([192.185.145.122]:45578 "EHLO gateway32.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726767AbfANUuT (ORCPT ); Mon, 14 Jan 2019 15:50:19 -0500 Received: from cm14.websitewelcome.com (cm14.websitewelcome.com [100.42.49.7]) by gateway32.websitewelcome.com (Postfix) with ESMTP id 566CFCB37 for ; Mon, 14 Jan 2019 14:50:18 -0600 (CST) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id j9BagKNlX2qH7j9Bagy9JM; Mon, 14 Jan 2019 14:50:18 -0600 X-Authority-Reason: nr=8 Received: from [189.250.130.205] (port=50824 helo=[192.168.43.131]) by gator4166.hostgator.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91) (envelope-from ) id 1gj9BZ-000SQK-Ln; Mon, 14 Jan 2019 14:50:18 -0600 Subject: Re: [PATCH] vt: annotate implicit fall throughs To: Mathieu Malaterre , Greg Kroah-Hartman Cc: Jiri Slaby , linux-kernel@vger.kernel.org References: <20190114204114.20814-1-malat@debian.org> From: "Gustavo A. R. Silva" Message-ID: <287bad0a-ec15-aeac-618a-48673b6bf5f2@embeddedor.com> Date: Mon, 14 Jan 2019 14:50:11 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20190114204114.20814-1-malat@debian.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator4166.hostgator.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - embeddedor.com X-BWhitelist: no X-Source-IP: 189.250.130.205 X-Source-L: No X-Exim-ID: 1gj9BZ-000SQK-Ln X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: ([192.168.43.131]) [189.250.130.205]:50824 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 7 X-Source-Cap: Z3V6aWRpbmU7Z3V6aWRpbmU7Z2F0b3I0MTY2Lmhvc3RnYXRvci5jb20= X-Local-Domain: yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/14/19 2:41 PM, Mathieu Malaterre wrote: > There is a plan to build the kernel with -Wimplicit-fallthrough and > these places in the code produced warnings (W=1). Fix them up. > > This commit remove the following warning: > > drivers/tty/vt/vt.c:2112:6: warning: this statement may fall through [-Wimplicit-fallthrough=] > drivers/tty/vt/vt.c:2237:6: warning: this statement may fall through [-Wimplicit-fallthrough=] > > Signed-off-by: Mathieu Malaterre Acked-by: Gustavo A. R. Silva Thanks, Mathieu. -- Gustavo > --- > drivers/tty/vt/vt.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c > index 41ec8e5010f3..e4f8caed26af 100644 > --- a/drivers/tty/vt/vt.c > +++ b/drivers/tty/vt/vt.c > @@ -2111,6 +2111,7 @@ static void do_con_trol(struct tty_struct *tty, struct vc_data *vc, int c) > lf(vc); > if (!is_kbd(vc, lnm)) > return; > + /* fall through */ > case 13: > cr(vc); > return; > @@ -2236,6 +2237,7 @@ static void do_con_trol(struct tty_struct *tty, struct vc_data *vc, int c) > vc->vc_ques = (c == '?'); > if (vc->vc_ques) > return; > + /* fall through */ > case ESgetpars: > if (c == ';' && vc->vc_npar < NPAR - 1) { > vc->vc_npar++; >