Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp814041ybl; Wed, 11 Dec 2019 07:55:49 -0800 (PST) X-Google-Smtp-Source: APXvYqyOvJSk+D4heqOve3OH3C/u4WCIbXwABWRQ0FGY2ehMfLNitd7eZA3Tbfsf/UPmpmn0SoDT X-Received: by 2002:aca:c715:: with SMTP id x21mr3191640oif.146.1576079748982; Wed, 11 Dec 2019 07:55:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576079748; cv=none; d=google.com; s=arc-20160816; b=AT8nG4fGExkAxhcP+HF5jl7wQB1B7RfMD+qQNe39Mhud4yGuMLsV+KD/o8SYgRPYru ZJ0sUTxb39kttPPhg3+FnAs6FQXPRg829JxUzCklzZ8KYi1fBQ1+qKek1h62EdIBWdf1 ZDTUCB+Vkn19jWTNlrNgYnIn7eiLffDRMHBjrcG2UM/gzdQ5hiGmvO1Tiz/zrSSfWIWi fnna8FZoxIv7P1Edoz38ZyneLJWCwpV94HinsjSfFVjxGTzHuvw2i9PCuMS0ter0wd8n zmcGUiNgpkY8fK/95LKu0edcCRpJ38ls/NLDgkQRs75e/gnxp7GpSSUmN4eKpqxL8blL QS9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=qbeJjKW4nbf0Chq8HrmirNCO/t8cTX+VWEBs6JApRCM=; b=r33cVh23gXiRep5UkC9V0poL7cGZ4SNP7uzGlaqzSiEVN4IAAlqF0UBCwGHSi3HodF nonfARyfk8yZkZGbuyUFT5lmWKejFp0mxYTXaYnLakrT3pMDWgAwOSs1GfcxzjiAYnqs MrfNFHUYpHZLkxnuOPOkhqCUroQZv19TwDXseq+3Ssfzu1pOzCQ2784ZH3H+mVWi616V GazsZlCVstIMGVW6hfpRV18A/AsTT+OBKzIZPTTdkMzQTWiXJosrE2DmrgoU06Cm0TQA MfFBwAMkWHl/vnvOEng4Y63ExzLOIyv9T7aPolEcFRClE216YwrePdWFyXgVfqNeqOS9 KR3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sIxKfhz7; 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 v9si1398308oic.251.2019.12.11.07.55.37; Wed, 11 Dec 2019 07:55:48 -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; dkim=pass header.i=@linaro.org header.s=google header.b=sIxKfhz7; 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 S1731925AbfLKPxg (ORCPT + 99 others); Wed, 11 Dec 2019 10:53:36 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:39782 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731780AbfLKPTA (ORCPT ); Wed, 11 Dec 2019 10:19:00 -0500 Received: by mail-wm1-f67.google.com with SMTP id d5so5836071wmb.4 for ; Wed, 11 Dec 2019 07:18:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=qbeJjKW4nbf0Chq8HrmirNCO/t8cTX+VWEBs6JApRCM=; b=sIxKfhz7W+XGG4A+6rFofyi3ZHJBmXvcd0/Lmofb8xlLjnFgZ0CEgeCNzsjg9nLaZm 2HJpmBkNxcmbYYlRemzPJyHRp2BtaBvLcbHeA5L3tTBIgIzquuFqTfjhMVTnuEu4yVei iFR5wcNTGEO4KVaGnW3ezQ5vkRDCyqrAE0WiGgo+Yx/5sD316WPFgmqypIV1utZrCclf jwvV6hs/7mEZilmGoyybo9f5s41Mf7FCQdiiBWnIyygYpvCyBqO5rrDLcsJfGQTQ8dZY Rpi1NmEz6cDl/RUWtlIL8Zdon43y26OrmdUdlZFz/LpYffsTTpNz4e9QoACgaFzjJ159 NnVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=qbeJjKW4nbf0Chq8HrmirNCO/t8cTX+VWEBs6JApRCM=; b=S77GG2cdwE1btWectwSMrh+PNFxq/Gi+3Y86Y6xHLXorSwxcMrWD8/p/77c+iF8CvD ZESW4TxYw58ZsmyrR1+Ho9xetzgUwtigir41EdI6L6FwGFtR6bjwk0ClDWyKVAOsFNB9 xkOjvsYXKfeTa8uVoeXb2NNrsQ6slsbW5lwjHOfiA89x3zjuR+UYI+5merQJzANyja3E H116qQN2ilDZUz1HIeTnv5GNhMJzFdYm+SETaJ+v3beaX7rua8s/bnAq6YyLpx3RbpBj ZbdKaHcD6bTbrXDMirgJORf+7pvgqH9eC8FWIKT7pXWpHvfNdp/04Dlk1iEz7SZZz5of QZnQ== X-Gm-Message-State: APjAAAWmgYQbAW3RZgEoshdyDcTq7f7DZsvt2PirC5G3S+iao+Gg7Yo0 PMs1JtajxblDqZ4eolyl4GmJNA== X-Received: by 2002:a7b:cb15:: with SMTP id u21mr354499wmj.25.1576077539024; Wed, 11 Dec 2019 07:18:59 -0800 (PST) Received: from holly.lan (cpc141214-aztw34-2-0-cust773.18-1.cable.virginm.net. [86.9.19.6]) by smtp.gmail.com with ESMTPSA id x132sm6891747wmg.0.2019.12.11.07.18.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Dec 2019 07:18:58 -0800 (PST) Date: Wed, 11 Dec 2019 15:18:56 +0000 From: Daniel Thompson To: Kuninori Morimoto Cc: Andrew Morton , Greg Kroah-Hartman , Yoshinori Sato , Rich Felker , Will Deacon , Douglas Anderson , Paul Burton , Christophe Leroy , linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] sh: kgdb: Mark expected switch fall-throughs Message-ID: <20191211151856.krh7jbrl5vsa7imq@holly.lan> References: <87o8wgy3ra.wl-kuninori.morimoto.gx@renesas.com> <87muc0y3q4.wl-kuninori.morimoto.gx@renesas.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87muc0y3q4.wl-kuninori.morimoto.gx@renesas.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 10, 2019 at 05:39:00PM +0900, Kuninori Morimoto wrote: > > From: Kuninori Morimoto > > Mark switch cases where we are expecting to fall through. > > This patch fixes the following error: > > LINUX/arch/sh/kernel/kgdb.c: In function 'kgdb_arch_handle_exception': > LINUX/arch/sh/kernel/kgdb.c:267:6: error: this statement may fall through [-Werror=implicit-fallthrough=] > if (kgdb_hex2long(&ptr, &addr)) > ^ > LINUX/arch/sh/kernel/kgdb.c:269:2: note: here > case 'D': > ^~~~ > > Signed-off-by: Kuninori Morimoto > Acked-by: Daniel Thompson > --- > arch/sh/kernel/kgdb.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/sh/kernel/kgdb.c b/arch/sh/kernel/kgdb.c > index 6d61f8c..0d5f3c9 100644 > --- a/arch/sh/kernel/kgdb.c > +++ b/arch/sh/kernel/kgdb.c > @@ -266,6 +266,7 @@ int kgdb_arch_handle_exception(int e_vector, int signo, int err_code, > ptr = &remcomInBuffer[1]; > if (kgdb_hex2long(&ptr, &addr)) > linux_regs->pc = addr; > + /* fallthrough */ Since v5.5-rc1 there is the fallthrough pseudo keyword to document these cases: https://elixir.bootlin.com/linux/v5.5-rc1/source/Documentation/process/coding-style.rst#L59 Daniel. > case 'D': > case 'k': > atomic_set(&kgdb_cpu_doing_single_step, -1); > -- > 2.7.4 >