Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp873184imm; Wed, 15 Aug 2018 07:38:11 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyzXYgqhgRmZ2fH8iaXoFTg9wECTLCugZHI7gK0rlK77RdUWnYCCC2u2ttOywnciYK0Mn/S X-Received: by 2002:a63:db4f:: with SMTP id x15-v6mr25275331pgi.214.1534343891871; Wed, 15 Aug 2018 07:38:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534343891; cv=none; d=google.com; s=arc-20160816; b=raDOEsIqTv0aZQQophb+vdQe0aFNNFdM/PjUV47YKyGXnWs1w9heYOFAfFZt+IfU2s 36iwPOJvUC/pby2P/y3No4xgszj2utsDvi+Q64wplQx+lXQz7eLmqwHyaFJ15HYQTuh5 +M/q9HHe0LsUR+yYS8Kb9z8vqdKL/Rdy4uRVjVZmMDjGyTLgFKujkjwL5/fw46IiEhZL 6yOzn+uNCBpMp1SOjeoLt8LYfN4rSG6RhY37SvrxKY+f9LWZHN6psMd5xik98JZXaV8v zB3HTE8YD+aWdWQbm+aFHQSxDeTvEA+y936HZryEEDDBqs9J6CmSsdJYNo7gZw0ZDKFY tQlQ== 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=YLuXi23+ArSCZlOug6tM1PTKrq5zEYiQnVLNIr15KSw=; b=hYiHKk0v19dXMd8K0tYfZLlXYzHNG2VgY7U9i3Hz/LnxXFcMRlyk3Jh/HQSE31O7C9 bMH5nxPH9bPcpODh2konmahdw5t37HcJioRgKHB3Q7YAjnAQAXhd4tOoneC5Ao5Wu4Ib XbkfdfdchNzqwUnolWlPQtN7NdqLKLR3FBQ8yk++f6crUtDNIJFIYT12Qbk09SmIub4U fwO29Mjc3tr3HgYYYHKsTdQSGzfGDsYq2NHZzmR7mnYKEQHXsChs2LdVByKM6h4kVoYo JTixI+VvWPVdfkdu4UoxtM6n4LpFG1lWz4WH4LtKjkWpM0L+YfYRDkxfHfqg6vDc/Bfe C1UQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="XoZGA/V1"; 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 g1-v6si18534576pld.79.2018.08.15.07.37.56; Wed, 15 Aug 2018 07:38:11 -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="XoZGA/V1"; 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 S1729466AbeHOR1V (ORCPT + 99 others); Wed, 15 Aug 2018 13:27:21 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:34827 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729265AbeHOR1U (ORCPT ); Wed, 15 Aug 2018 13:27:20 -0400 Received: by mail-wr1-f67.google.com with SMTP id g1-v6so1328621wru.2 for ; Wed, 15 Aug 2018 07:34:56 -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=YLuXi23+ArSCZlOug6tM1PTKrq5zEYiQnVLNIr15KSw=; b=XoZGA/V1TsRXjtenjJ5/0O/571VWTDDXIzRv76qPkrW2BH5U3kvVDT+nTKYZMmYy1w qQrjT+Pk3xHtNzmBALNZieOy/VXaElzeNL1vYQyj0dQelzbbfhJgPX9kQIITVdpEY5wa Bs6FI1429yqjZqOLUIR6fUWXY+yympU15L5YA= 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=YLuXi23+ArSCZlOug6tM1PTKrq5zEYiQnVLNIr15KSw=; b=QEmeg3Lalu0bZanXdtbc/wNppVG+/xE2Vz1GkP1YUVh+f3ojopoHWzqp4MrQ5q20Zq wQ6C642ZlL/4P6cMVhqH5hGGSWKL11gfX2VscP2E7/tWXd7MOen5w9rAegt5cdV1ApaQ yVbi0L+y5GPBTw8KX4Akv+nqOmAaU3NzihsoatbD9Ml3Wfg+H3S/ySXJS5qKebK/vAx8 l7P6GlVLsnNSbOoyDD6t+xA4rCWW+CqsW3boKVeXgvgUtEXBovyftzsEe8WxShnCzpou jcqmoh8ueH+GwiwDrqWxK4pQgznUDw1RWJXvra7vpbDqmHxKMcybeQhf9kF6uCjqwINv BGRg== X-Gm-Message-State: AOUpUlEq0XeZWPBzZCwgz33QfbyvT1S30wEdI7qsM+VdADPOPYTbisGA jQDNQwzUNgSY+yFzfH9HQ2P5I6JT6vM= X-Received: by 2002:a5d:61ca:: with SMTP id q10-v6mr17025552wrv.33.1534343695058; Wed, 15 Aug 2018 07:34:55 -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 185-v6sm3790187wmy.38.2018.08.15.07.34.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Aug 2018 07:34:54 -0700 (PDT) Subject: Re: [PATCH] kdb: kdb_support: mark expected switch fall-throughs To: "Gustavo A. R. Silva" , Jason Wessel Cc: kgdb-bugreport@lists.sourceforge.net, linux-kernel@vger.kernel.org References: <20180805024844.GA15367@embeddedor.com> From: Daniel Thompson Message-ID: <4b9d2140-7e9b-82a1-ebbb-fa66a513087a@linaro.org> Date: Wed, 15 Aug 2018 15:34:53 +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: <20180805024844.GA15367@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 03:48, 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_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); >