Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp177672imm; Tue, 7 Aug 2018 16:28:44 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxd/Ubprw0auz4FkFgkEVP0hqbr1WPBRjlZkK+zZWt2qPIWTnBtyOFp8+u7DxAymCVcxUub X-Received: by 2002:a17:902:6684:: with SMTP id e4-v6mr329153plk.35.1533684524128; Tue, 07 Aug 2018 16:28:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533684524; cv=none; d=google.com; s=arc-20160816; b=HgX/0h4hv4AHYN0hawdOX4TCtDZe8AbHkC4+uD6b2/5hnAfL80xKMABgu9vueRABW2 Fbe1gcdfJPoZiBhH/lXduZAf3DUG6wZenmAvAosZOqvjSWhELZUnV3BbMs+4wv1zUKTZ kuV8Ewe7No/hRWHUxReQ1vtg9hdhp2yZMIq5UqAB8UF5Eu5OJAZaVj6DYCgEsgWyYpjc 90Ltf4oIDi3XAaRiMg6YuHozJn9VkIj3ijUxv3NNk64oP7jmLLp5gXHdElI621nG75x2 i9Sgl3/eV+QVKzaqq/K2hzQ2T5vHxZFSOJpBCapoSyiiwZ8dDZPyHYPUiIjbE9/+OzBa zYww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=tTJgd9Fskj8J6CpPH/rtjNfsiyGnALX1ABPe5tHBUsI=; b=dUuCNTPVagDGWVnX0NkXO//X8fZi6zX3J9zMkbFxTJE3iLcJvYc0p1Za2c4G/TkzNO teTN4Slg6o1SZcwZlJUZXah6Q6BZ5DXV+AbG0aS51Hx/N9JdtC73UvetybIh4G8Wp8rA 48iMfQszwYLi9zfZIdB74BzenHNqu4ja+awCqd4r6+z0R+6Ly410AIGMklgTJCX8lK3z 7pVX1j753nfPe1M979voChGstcdjgaRJlWEOVkLYAAMWhHa7OP/cZwlESe1kFcsX3L7C PZsFra1y0ej3EUBHLwbj9j65SIWZsxcr0CmWby4ME7nvo3wgl4IGEzdCZEAV2Jf4rWvc 8b9w== 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 p187-v6si2905901pfp.27.2018.08.07.16.28.29; Tue, 07 Aug 2018 16:28:44 -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; 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 S1727285AbeHHBoZ (ORCPT + 99 others); Tue, 7 Aug 2018 21:44:25 -0400 Received: from gateway23.websitewelcome.com ([192.185.50.129]:36693 "EHLO gateway23.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726704AbeHHBoY (ORCPT ); Tue, 7 Aug 2018 21:44:24 -0400 Received: from cm10.websitewelcome.com (cm10.websitewelcome.com [100.42.49.4]) by gateway23.websitewelcome.com (Postfix) with ESMTP id 236C01809F for ; Tue, 7 Aug 2018 18:27:38 -0500 (CDT) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id nBO5fjgXIBcCXnBO6fJiPh; Tue, 07 Aug 2018 18:27:38 -0500 X-Authority-Reason: nr=8 Received: from [189.250.73.102] (port=48128 helo=embeddedor) by gator4166.hostgator.com with esmtpa (Exim 4.91) (envelope-from ) id 1fnBO5-001xdh-5f; Tue, 07 Aug 2018 18:27:37 -0500 Date: Tue, 7 Aug 2018 18:27:36 -0500 From: "Gustavo A. R. Silva" To: "David S. Miller" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" Cc: Ariel Elior , everest-linux-l2@cavium.com Subject: [PATCH 27/33] qede: qede_fp: Mark expected switch fall-through Message-ID: <12936b5b7b6b9bc7a029ae761137018cc89bedc4.1533675546.git.gustavo@embeddedor.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator4166.hostgator.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - embeddedor.com X-BWhitelist: no X-Source-IP: 189.250.73.102 X-Source-L: No X-Exim-ID: 1fnBO5-001xdh-5f X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (embeddedor) [189.250.73.102]:48128 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 173 X-Source-Cap: Z3V6aWRpbmU7Z3V6aWRpbmU7Z2F0b3I0MTY2Lmhvc3RnYXRvci5jb20= X-Local-Domain: yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Addresses-Coverity-ID: 1384501 ("Missing break in switch") Addresses-Coverity-ID: 1398869 ("Missing break in switch") Signed-off-by: Gustavo A. R. Silva --- drivers/net/ethernet/qlogic/qede/qede_fp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/qlogic/qede/qede_fp.c b/drivers/net/ethernet/qlogic/qede/qede_fp.c index 6c70239..8c9e95b 100644 --- a/drivers/net/ethernet/qlogic/qede/qede_fp.c +++ b/drivers/net/ethernet/qlogic/qede/qede_fp.c @@ -1119,8 +1119,10 @@ static bool qede_rx_xdp(struct qede_dev *edev, default: bpf_warn_invalid_xdp_action(act); + /* Fall through */ case XDP_ABORTED: trace_xdp_exception(edev->ndev, prog, act); + /* Fall through */ case XDP_DROP: qede_recycle_rx_bd_ring(rxq, cqe->bd_num); } -- 2.7.4