Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2162595imm; Sat, 4 Aug 2018 21:19:28 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeJQ3pl8oQt642K1qgtkJTwk0AeVdq9Ci+5PMR2HmCBP6Um1ghMIYzVznhOzLkaC7Td8IfO X-Received: by 2002:a17:902:b401:: with SMTP id x1-v6mr9202784plr.236.1533442768435; Sat, 04 Aug 2018 21:19:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533442768; cv=none; d=google.com; s=arc-20160816; b=zrz4pkFp6tCJdXUce8AZjMh9DDvNc+1MiaXwVTIUKPtu2CeLJ4KbW/AoPuJzTa/NJj HvOHWHlwwrbdOcUAk/BtFEPGqwN152PwCj3+1rMlWZVXMivLYjpbSS3YMGq3Yw/Bzx7V JsRfblABkLoKW5i4+sCW4jFUKA78IR+1/cqUPC67fhH7lFMway/UxLZVk+Ki1lwdjOtV Lfrey6Wp0yOhazEZ0iBItvg3IF6VCzGOJD4gla6yOi9ATWRqOb4oDnjq0q3kDhOYnJMh b4J0dzHFWH12OQT+XpN5bJuMI7Y/GIkCgi67tt+Wff2z9EEwLIkEbpjthB2jX4Xx0CI8 4Z1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date :arc-authentication-results; bh=MeTZrPU68lWa0LSz6M76RVXvt+a9eFcn0faM9fzlCHs=; b=IKWWSB3CMn1jg3GfOk+O7Qu4zHYjZdz/GaN2zFIMo2T5bxReWjrt+s5bO9Uxuy4e3M Ghtlxl/+KfU5/NHOpGC+m6o3Qo0lay562/FVwS+rXkD+Z5LTAXwGb+x0NJkFFe5JXrpf Dmn+cMLPw+Gb5YfQKW5YkgCtNef6eEdNW4Lt2PYWuuyRqDmQm+5jKfqKsPWL4wvLJj/U hqubBAqk9tt9ugsRJ/rvA3J58OA+Fkj1b0iiCg+AZFyBmHRJbUipyAoK+/+qPmLxMLCT 8IvlmbW9kfU2L86w2Qv45b71i3h5WpULWFzuLouao/ICduJMbilmwpTPMEdm3L6VCvY8 lFag== 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 w25-v6si9384992pga.58.2018.08.04.21.19.13; Sat, 04 Aug 2018 21:19:28 -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; 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 S1726181AbeHEGVf (ORCPT + 99 others); Sun, 5 Aug 2018 02:21:35 -0400 Received: from gateway22.websitewelcome.com ([192.185.46.156]:39482 "EHLO gateway22.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725975AbeHEGVf (ORCPT ); Sun, 5 Aug 2018 02:21:35 -0400 Received: from cm15.websitewelcome.com (cm15.websitewelcome.com [100.42.49.9]) by gateway22.websitewelcome.com (Postfix) with ESMTP id 374D9779A for ; Sat, 4 Aug 2018 23:18:26 -0500 (CDT) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id mAUsf8DqAbXuJmAUsfXhLj; Sat, 04 Aug 2018 23:18:26 -0500 X-Authority-Reason: nr=8 Received: from [189.250.50.82] (port=39914 helo=embeddedor) by gator4166.hostgator.com with esmtpa (Exim 4.91) (envelope-from ) id 1fmAUr-000cME-OD; Sat, 04 Aug 2018 23:18:25 -0500 Date: Sat, 4 Aug 2018 23:18:25 -0500 From: "Gustavo A. R. Silva" To: Jason Wessel , Daniel Thompson Cc: kgdb-bugreport@lists.sourceforge.net, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" Subject: [PATCH] kdb: kdb_keyboard: mark expected switch fall-throughs Message-ID: <20180805041825.GA20310@embeddedor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) 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.50.82 X-Source-L: No X-Exim-ID: 1fmAUr-000cME-OD X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (embeddedor) [189.250.50.82]:39914 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 8 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 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 --- 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 */ } -- 2.7.4