Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4764553ybl; Mon, 9 Dec 2019 16:29:35 -0800 (PST) X-Google-Smtp-Source: APXvYqyF2+bM8vbS9w6NnZ272A1uQaTriQOk5AwzKYbWjYF0/t4wikWbaNWwQZz4wNMGwuiSsUsN X-Received: by 2002:a9d:1e88:: with SMTP id n8mr24814386otn.369.1575937775135; Mon, 09 Dec 2019 16:29:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575937775; cv=none; d=google.com; s=arc-20160816; b=PcSNLHP2rO+lMeVL6neAVQPP55A/ulS5a8RDOGINrtze7BqDXveoC4gTgBFtMrrQTS PzQw8a9irfuXtC9dVNr4eeyDOtw1nHeUwCVdP/9JE8PnMKafI7T7eOeykgH91ZHbp6fY Szy8dlN+DCj7M2H1HhjNg/JP9WmYs5zC4Exx3v5yhgWGXN6cW33ekMGUDtGxEgqwEVyO 6R75ZBsC02QCiUaxPWU8j0olOOIExXphno8aEksr6cZxCcUJnmuHGfEo7gs7m+z/4nE8 D91D/etNWKzDgwFXRAbptGAGXaXJkz9+9WurN47yK+r6wv7NOWmfTWhsCAZjY3/9KmqE cx4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to:cc:to :user-agent:subject:from:message-id:date; bh=QlU8HkPlSF00JXCLSU0Zv9oxTA0VDduR/LulGFX8PaQ=; b=HOuNlEdOABy78FsUFeoiwTxYsfWO0Jgs0OwxVp+hD1gpi6uL2WimiES6bfAcBa02I5 GmptcwpNL3cZ+KmHq8eTd6BdEWvY2KeUoa09vfOTo9sNCNY1LYCMuFkcXjIIhV2zHnA0 7ab2o2pSyE9IPAHVO7m2G+bW2tYNPs2AO7QOBW0cGltVdaftM89pePSuyl7iKjfyKO/V wm70NCygYVGZ3P8hF3C54MTglBvxVB6ssk/i4zSsli3kalZxgJZy1tTJQObpWmhSfEge aD0kGV0dRtgIklIBI0fK+0jlPNahsYveB69jXJqiGbrLohx+FyYuqKwgCfNJfXPKjIyp YcWg== 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 81si906239otj.236.2019.12.09.16.29.22; Mon, 09 Dec 2019 16:29:35 -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; 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 S1727385AbfLJA1r (ORCPT + 99 others); Mon, 9 Dec 2019 19:27:47 -0500 Received: from relmlor1.renesas.com ([210.160.252.171]:32472 "EHLO relmlie5.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726495AbfLJA1q (ORCPT ); Mon, 9 Dec 2019 19:27:46 -0500 Date: 10 Dec 2019 09:27:45 +0900 X-IronPort-AV: E=Sophos;i="5.69,297,1571670000"; d="scan'208";a="33933015" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie5.idc.renesas.com with ESMTP; 10 Dec 2019 09:27:45 +0900 Received: from morimoto-PC.renesas.com (unknown [10.166.18.140]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 7783B4002643; Tue, 10 Dec 2019 09:27:45 +0900 (JST) Message-ID: <87lfrlyqgu.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH] sh: kgdb: Mark expected switch fall-throughs User-Agent: Wanderlust/2.15.9 Emacs/24.5 Mule/6.0 To: Greg Kroah-Hartman Cc: Yoshinori Sato , Rich Felker , Daniel Thompson , Will Deacon , Douglas Anderson , Paul Burton , Christophe Leroy , linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org, Daniel Thompson In-Reply-To: <87muc1yqip.wl-kuninori.morimoto.gx@renesas.com> References: <87muc1yqip.wl-kuninori.morimoto.gx@renesas.com> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 */ case 'D': case 'k': atomic_set(&kgdb_cpu_doing_single_step, -1); -- 2.7.4