Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp849394imm; Wed, 15 Aug 2018 07:15:15 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzR/khwog+yBm1HM3c0tCZKwYH9mC2Rigs8HCeqBJG7I6iSvXRWAllc2CoyTtsAkugO0b0P X-Received: by 2002:a17:902:1a9:: with SMTP id b38-v6mr24318679plb.89.1534342515506; Wed, 15 Aug 2018 07:15:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534342515; cv=none; d=google.com; s=arc-20160816; b=cQWz+ew3LwVHeCtubAqX18+WVTBLl/6+clZYoWOuc3wRpu1JHo3uwWx/Y0Iv1GqP+z rk96YA5xtoG/5dddjmpjriHUXFqzLk2JsM5TXoN/yILxhe97/Br3fB/RjN56bL21Ye+6 MUVogMzyVruIm4AFts1ALD1sSP/stYB8ksJPOKb9AKIDHVFPC9PFPjuI49Jrje2QirZt +M0Mn+hkyiP57j1qCdAFl4FZ1u5gFqHRtoYsNRSRlhxgAT2NW2apKzrqqvNG8Rx5KXzM evq4WfmWQLlReZLNCiWoev9f3EhuR1qJwCYVeTi+ZzwbJDYSmBqX1HJyEcyF/2hzCde2 tQQw== 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:dkim-signature :arc-authentication-results; bh=56xddTHqa+XoWD7cCXyJKuSTx7yHSuzZdKzMW3tAa4M=; b=nKB1upqu0jLE/U6R/lynfTyHNEe/SH464S2528xhxmBCALxBiINdskrfIl2+z4Se7C L96KAi05QRzPm9fuBaCdGgJE3GqngrT8z9c6U4HKIdWkt3socA2l0/uCUKtpFatwftAD RZAdrLWyg+hlJox7UypL1UGQDwSodQ8TgH/20EI3Wjv3BwQE39Fgzo0hTJ/EjT93e2ou 3D1DZr3vXB6W3Miwmt7ZDC2PQDiKwVSjWd0VZHcpK9ZP+HGo3Dd2lLJamKFDDXbwAzg3 dUcKE89aSyRuPN/mHpITpg+u2iPPp89fg5Y+1vnqDJLTsed/tTY2DSHCVIVmmNoS9DK+ 47Xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jWLc6jHp; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h9-v6si25243545pfh.240.2018.08.15.07.14.59; Wed, 15 Aug 2018 07:15:15 -0700 (PDT) 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; dkim=pass header.i=@linaro.org header.s=google header.b=jWLc6jHp; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729311AbeHORFv (ORCPT + 99 others); Wed, 15 Aug 2018 13:05:51 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:38895 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729125AbeHORFv (ORCPT ); Wed, 15 Aug 2018 13:05:51 -0400 Received: by mail-wm0-f65.google.com with SMTP id t25-v6so1478434wmi.3 for ; Wed, 15 Aug 2018 07:13:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=56xddTHqa+XoWD7cCXyJKuSTx7yHSuzZdKzMW3tAa4M=; b=jWLc6jHpMLIS/oU/J7IbaldaTFX2cHXFsSawQ7kj4MAg55m44eN39rAOQkLFHPIRxF LbArGJv/9xFsva/YIbameamG9+JLShWa6YRUGPUOmG/HhlBgSlmvFy7XER26Y3eo1DLW rPTKJ8A81XYcTfzPA7BaZm0j2YP6IOEVoAEkw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=56xddTHqa+XoWD7cCXyJKuSTx7yHSuzZdKzMW3tAa4M=; b=I9FnXU5xdTDJCdHIDgXcqbdjybaFukKt88mQJHjBeGAHfjVAEt03Bt7jXMNUS6XuOQ 1j8xnjRw1n5F4DomqL0De1ePqdvxKcUvxvosWLWEVPVJhJRJSQySowWbkfaeUIrqhPCm NAdrNRJ+m3VLXJPLAV/y0yv4fjyihCMqTDQDwPsUuy9spXphVyLCLOProaOqozE7xVYm 9cveJLrPhkR/tE4kS3Wi29eB8eRmsnhLzfERENL4Egwe/VCjDVenOoFDZh9RBDZr7eUW n8IU0a76LaDzOFyvsTI8PaUXYqKP6QDIPBTvn1sik9D1j4DxfuEQHEefPcWij3wKWtRe hLhQ== X-Gm-Message-State: AOUpUlHtNyjjWnGFTkUCbAuE5PNVERpI7iOgG/Vt5vho0g4TvxbL45Ym +2hQsWBd4TJ6gxulAMsfXA38E1skkjk= X-Received: by 2002:a1c:588c:: with SMTP id m134-v6mr11805530wmb.154.1534342410573; Wed, 15 Aug 2018 07:13:30 -0700 (PDT) Received: from holly.lan (cpc141214-aztw34-2-0-cust773.18-1.cable.virginm.net. [86.9.19.6]) by smtp.googlemail.com with ESMTPSA id e133-v6sm3536581wma.33.2018.08.15.07.13.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Aug 2018 07:13:29 -0700 (PDT) Subject: Re: [PATCH] kdb: kdb_keyboard: mark expected switch fall-throughs To: "Gustavo A. R. Silva" , Jason Wessel Cc: kgdb-bugreport@lists.sourceforge.net, linux-kernel@vger.kernel.org References: <20180805041825.GA20310@embeddedor.com> From: Daniel Thompson Message-ID: <87f7d53a-8349-9fae-695e-c00cd5111161@linaro.org> Date: Wed, 15 Aug 2018 15:13:28 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180805041825.GA20310@embeddedor.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/08/18 05:18, Gustavo A. R. Silva wrote: > In preparation to enabling -Wimplicit-fallthrough, mark switch cases > where we are expecting to fall through. > > Notice that in this particular case, I replaced the code comments with > a proper "fall through" annotation, which is what GCC is expecting > to find. > > Signed-off-by: Gustavo A. R. Silva Reviewed-by: Daniel Thompson > --- > kernel/debug/kdb/kdb_keyboard.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/kernel/debug/kdb/kdb_keyboard.c b/kernel/debug/kdb/kdb_keyboard.c > index 118527a..750497b 100644 > --- a/kernel/debug/kdb/kdb_keyboard.c > +++ b/kernel/debug/kdb/kdb_keyboard.c > @@ -173,11 +173,11 @@ int kdb_get_kbd_char(void) > case KT_LATIN: > if (isprint(keychar)) > break; /* printable characters */ > - /* drop through */ > + /* fall through */ > case KT_SPEC: > if (keychar == K_ENTER) > break; > - /* drop through */ > + /* fall through */ > default: > return -1; /* ignore unprintables */ > } >