From patchwork Thu Apr 22 05:16:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 1468976 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2001:8b0:10b:1:d65d:64ff:fe57:4e05; helo=desiato.infradead.org; envelope-from=linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=desiato.20200630 header.b=FqS2Fb4I; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=casper.20170209 header.b=v+a4qYbJ; dkim-atps=neutral Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FQlzc5b3Gz9sWH for ; Thu, 22 Apr 2021 15:17:28 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=w3H6yq67HTo57LF/96kmCobFYPnXUf63NXhzXL+FSvQ=; b=FqS2Fb4Iu3NlH0oGNAQuRp5Kqm S9j2+MxFlhHCEPJaIPccA57Azjs9lMk7J2CwLZosF1uL5LQizKMZJNkkk6PZda12L3e4QLUntcfFy AaUmE9f2Y9kB04wZMVesCKNhxLTR652mtkL07/1JtcX5/yG2mcSbHviC5/M8ydA7X2qFjwKjiZCUa 7nqwATrXzmEX4+GoO3nU687hjByB9wa3M3TCrh51H711MN/RRkBv8rvJPX0t4i1luCK600oeWWPuI YeFLqs3M34D3xBQ+cJC7VROsOnYd3OVud3Xhi3Dd73OiiUfiYt5GbMcIcffhe24f3/CEIfBO7Qc7b OxhJpksQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lZRiP-00Ftn2-Fp; Thu, 22 Apr 2021 05:17:25 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lZRiJ-00Ftmp-Sk for linux-snps-arc@desiato.infradead.org; Thu, 22 Apr 2021 05:17:20 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=nXccVF0VLMZZqdk7lBuIpC5btmCdWymL750DLlWAg2U=; b=v+a4qYbJcGUkAzXdGc2gUyofE8 2nPvYlXPhSOLZ9RTyLrSUgCS5S1V77rxhQU5vwocNJRytdpuRsRA/DYP2nFA8Vu8+2SSRvy5YW/+n sCNcWpYXsbVJLutejf2O/VtM5EuQxra9W3WUK+UcVDc64oPy9ncE4CA5/pvoPtDth4oluTsN5a17I UhWs5ZZLsjsEtiVQc5O3IINv5tHGoeFBU+ybFMQiNBQYElJbQrW8mL8rZ7cdVQYGXHjZp2hglO3Qe 2QZuxdmDw834j48rVSrwawFxfpvwOVzjvk9mETisPd0P+m6BXmgL0LMekv3BrWYZd/27v+YmLc3oA WE3fEhJg==; Received: from [2601:1c0:6280:3f0::df68] (helo=smtpauth.infradead.org) by casper.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1lZRhw-00HSwO-KM; Thu, 22 Apr 2021 05:17:01 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Vineet Gupta , linux-snps-arc@lists.infradead.org Subject: [PATCH] ARC: kgdb: add 'fallthrough' to prevent a warning Date: Wed, 21 Apr 2021 22:16:53 -0700 Message-Id: <20210422051653.23078-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Use the 'fallthrough' macro to document that this switch case does indeed fall through to the next case. ../arch/arc/kernel/kgdb.c: In function 'kgdb_arch_handle_exception': ../arch/arc/kernel/kgdb.c:141:6: warning: this statement may fall through [-Wimplicit-fallthrough=] 141 | if (kgdb_hex2long(&ptr, &addr)) | ^ ../arch/arc/kernel/kgdb.c:144:2: note: here 144 | case 'D': | ^~~~ Signed-off-by: Randy Dunlap Cc: Vineet Gupta Cc: linux-snps-arc@lists.infradead.org --- arch/arc/kernel/kgdb.c | 1 + 1 file changed, 1 insertion(+) --- linux-next-20210420.orig/arch/arc/kernel/kgdb.c +++ linux-next-20210420/arch/arc/kernel/kgdb.c @@ -140,6 +140,7 @@ int kgdb_arch_handle_exception(int e_vec ptr = &remcomInBuffer[1]; if (kgdb_hex2long(&ptr, &addr)) regs->ret = addr; + fallthrough; case 'D': case 'k':