Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2112152imm; Sat, 4 Aug 2018 19:49:52 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf/hzvmHJXRjr/QYsQBnzFBILkTE8spAOSy5EH44ZCLoIPH6dGuEGDy7ZwkbVsztlecKxNq X-Received: by 2002:a62:6003:: with SMTP id u3-v6mr11291067pfb.114.1533437392154; Sat, 04 Aug 2018 19:49:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533437392; cv=none; d=google.com; s=arc-20160816; b=hj16N2IdQfCIFaLj/ueNHHumqRDnj6JgUymYmUs7QWzvuaavgwB0hvhnhel1icUlLM nKtc/Z2GziGrioYg/c8dxNjTnGoXXweextrK6MshWyvxNP9OIsX1YAfTP4YMJjJKDZsq SQyKFsX+Um3GEVQsNMbgNIiKIbRBEyvcBFK+ZU7mYr8LtAowFxxmuifFcAQrRGHWbm6x E9LlyInpf6yyse9bzJX84hwHH7kJfnwOIti1K1InxHHPnDMYcru1ex97s8se4D3QkTtf XvgMu6kVat1JdHucWJx2DVTOqdESohicXQhbhr5axG4N5RdSsCQoe4G8TCq4wjZtFq5o 3tzA== 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=GubKCDmJDNRLSehgGhixzeAK1SJth5Isq+1YyWd4thU=; b=Rf5gX5Fr8Bup+r+2Mgl4nBNHg2ElB2veDqHhLJGcapGFssd9rjSZ+ETVACoVsfwgQA ETE9XqXd5D31fKpiGHbN49gx0370OuH1q24RVz18bEaSnAnFzLOBnBH4oHGRfZ2CixYJ tLEhVooKiGc5/B9m8qXOpE/UJwb/xM+WKcV2ClXoh9JcKfjddTZV6sFyejcmSD4O0QJv KWEm2SYLtldjhuTncyeOBoE7+U+A2W1wEFUs8P3AECGib4UW6lFraFOthVRXb0Q8XxNA 5uc0hK+GqaydAVt5ZzFetZWAmqHfH9tobeyyh+MPpIKhW4WsnPPWly7jamGT7FlKj0Hh vNsA== 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 j124-v6si9799404pfb.191.2018.08.04.19.49.35; Sat, 04 Aug 2018 19:49:52 -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 S1726110AbeHEEvj (ORCPT + 99 others); Sun, 5 Aug 2018 00:51:39 -0400 Received: from gateway22.websitewelcome.com ([192.185.47.65]:16858 "EHLO gateway22.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725839AbeHEEvj (ORCPT ); Sun, 5 Aug 2018 00:51:39 -0400 Received: from cm16.websitewelcome.com (cm16.websitewelcome.com [100.42.49.19]) by gateway22.websitewelcome.com (Postfix) with ESMTP id 790F47427 for ; Sat, 4 Aug 2018 21:48:45 -0500 (CDT) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id m965ftL6taSeym965fRwan; Sat, 04 Aug 2018 21:48:45 -0500 X-Authority-Reason: nr=8 Received: from [189.250.50.82] (port=39292 helo=embeddedor) by gator4166.hostgator.com with esmtpa (Exim 4.91) (envelope-from ) id 1fm964-0007lR-WB; Sat, 04 Aug 2018 21:48:45 -0500 Date: Sat, 4 Aug 2018 21:48:44 -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_support: mark expected switch fall-throughs Message-ID: <20180805024844.GA15367@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: 1fm964-0007lR-WB X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (embeddedor) [189.250.50.82]:39292 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 20 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_support.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/debug/kdb/kdb_support.c b/kernel/debug/kdb/kdb_support.c index 990b3cc..89ac604 100644 --- a/kernel/debug/kdb/kdb_support.c +++ b/kernel/debug/kdb/kdb_support.c @@ -432,7 +432,7 @@ int kdb_getphysword(unsigned long *word, unsigned long addr, size_t size) *word = w8; break; } - /* drop through */ + /* fall through */ default: diag = KDB_BADWIDTH; kdb_printf("kdb_getphysword: bad width %ld\n", (long) size); @@ -481,7 +481,7 @@ int kdb_getword(unsigned long *word, unsigned long addr, size_t size) *word = w8; break; } - /* drop through */ + /* fall through */ default: diag = KDB_BADWIDTH; kdb_printf("kdb_getword: bad width %ld\n", (long) size); @@ -525,7 +525,7 @@ int kdb_putword(unsigned long addr, unsigned long word, size_t size) diag = kdb_putarea(addr, w8); break; } - /* drop through */ + /* fall through */ default: diag = KDB_BADWIDTH; kdb_printf("kdb_putword: bad width %ld\n", (long) size); -- 2.7.4