Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2520108ybc; Sun, 24 Nov 2019 23:19:49 -0800 (PST) X-Google-Smtp-Source: APXvYqynHHzn4LyG1hW25rs835mFw2wqSCjTEYqJceauZphcaKuYEjR9oNwbJsrpz4WjcxMUqsCS X-Received: by 2002:aa7:cdc6:: with SMTP id h6mr16679707edw.15.1574666388934; Sun, 24 Nov 2019 23:19:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574666388; cv=none; d=google.com; s=arc-20160816; b=c2wVM5lptXMjGPGIy+5XdVbs49fNqJxLxrf08A76B7PCdU59jrhV27tuRi2owABtw3 fKWtA0Zh51O/oEtsGvxBx2RlEKD8vnhXQwg+gV0fLvQbcx3KALif/VDBpLFBJCxQeu0n gEnIn8smUTjZvPfSu5iFHk+dW1vKGz+SUAnGqOePRLNHleWxgaEdItiyTUuHttWQPqd7 7enVYmDASr6ne6ZCMsnVuNnLXXDruu4a24/1kNpQyXPMflUzV4cihduv4Ki/xO2EeCw0 8JYidy9zV0mI4PBDOYHVpMaHfv8NH9cbMeloOWantw1lcKL5lCBKagju1dvsAZaFwFfi olBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:cc:to:user-agent:subject :from:message-id:date; bh=vLtYDq0ByhnUhYzocdrNdwCpM0BL8NOvB99I3Hk+vKM=; b=SrKvjHsKRVttdTBnlfFSPMAt2ZBzoWBeVq3QsRFGYMqrX+Abpisscvghs3zqBujRHS y0NDv2gmNLBTEghMJF2BBl4/iVg8IG+Y0IOyHsCkxIKmIUw1vcjNxEunPlEfcGi3a5e9 uxVgTLW0q+CpqZp84j4oQNBpeOHFivgn+X+oiIRzvT5kHott8tDbMibHnbwRBioe0eoB n2YGUoDXAPm3ASngzNp7EwWzc94JNrnQrgryoANZJcuJiIKx7F1mu8AkQ6ZitKwU7PJ9 JfJT+l9UFfHOK/o0hw3PDRbUsePrugtlkvntxmxO4AcVqSbn9FvV0cPFqhe/mO5MlB19 bEUg== 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 a7si4404915edt.181.2019.11.24.23.19.25; Sun, 24 Nov 2019 23:19: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; 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 S1725924AbfKYHQX (ORCPT + 99 others); Mon, 25 Nov 2019 02:16:23 -0500 Received: from relmlor2.renesas.com ([210.160.252.172]:33785 "EHLO relmlie6.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725535AbfKYHQX (ORCPT ); Mon, 25 Nov 2019 02:16:23 -0500 Date: 25 Nov 2019 16:16:21 +0900 X-IronPort-AV: E=Sophos;i="5.69,240,1571670000"; d="scan'208";a="32367149" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie6.idc.renesas.com with ESMTP; 25 Nov 2019 16:16:21 +0900 Received: from morimoto-PC.renesas.com (unknown [10.166.18.140]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 6251D41BA951; Mon, 25 Nov 2019 16:16:21 +0900 (JST) Message-ID: <877e3oe88q.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH][resend] sh: kgdb: Mark expected switch fall-throughs User-Agent: Wanderlust/2.15.9 Emacs/24.5 Mule/6.0 To: Yoshinori Sato , Rich Felker Cc: Daniel Thompson , Will Deacon , Douglas Anderson , Paul Burton , Christophe Leroy , linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org 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 --- - nothing happen in 1 month... 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