Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp175778imm; Tue, 7 Aug 2018 16:25:49 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxXdxi8tVlDMZLtBPwvNoiUtBwny/RofIU6WOOf9HO38FyuwItuLzbZnMU257TXQmWbmKw7 X-Received: by 2002:a62:e511:: with SMTP id n17-v6mr393927pff.210.1533684349758; Tue, 07 Aug 2018 16:25:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533684349; cv=none; d=google.com; s=arc-20160816; b=BWy2uTBYOQk7oxIzT03YWAPe/2oU7EA/epIRxvLXeGL6HVElMbmIekIcMbPhHVKBnU zrbFGkMwycR/R1Dp+XUL9Jj75mh6Mnd0rfib9wtbxDNXExxINslqiIM/phnfUelRTe9M EAZaRygR0j23fy4gOoBzTtNI1dT873Ti3UUuE7wCL9HQcBLVC9nmjYAwsxD6mKI8276u Ojm1UgavcNeBpR8Z6X8Lmr66xtdE8/e2arsG9elBnY0xgVxCfkaXLUJf/JRnSLtjF79p mu6h8h251VfpLlPoKjhfPTFDpr01B2qUIKikmQCWkp9bYCR9aMjQ6FqOsUYWfrpR+gEy aRxQ== 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=vDLJaukaUiM09H7uc6ORKCQwovo6PQwxgJgqzFNdUaE=; b=TuhyMCdoupnVmBpSQXQie3zrnyGsEg2CyYGyhttYsuYc4LxuvPf2rQiaEYGKfVMMiJ Ganq2aY/W3//ExPcLE0I8czawLhrZSedmH5iVG3Ow7eK3Pa3h5N9Qsz/mFbNe/RIlsFd Zwm+h8uKnteGPl7Yx2mNlARYVo/Vp6GGgoUMTEzOHMzUDGiUub0pP35P7QCtQveu2RL5 X8OlxUODvV4TyHvxGOMIrDkw/heMviALuayJwrRgkJWgYnzAuIpe0mjSp7QCyrNk0zxT fgVtO1dOOduI5U1S2gPkgilqIQZHZOjekK93svkrSTNTBKtdMT3S8hn80yccndtUdwhc naUw== 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 c22-v6si2045146plo.271.2018.08.07.16.25.35; Tue, 07 Aug 2018 16:25:49 -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 S1727321AbeHHBl1 (ORCPT + 99 others); Tue, 7 Aug 2018 21:41:27 -0400 Received: from gateway22.websitewelcome.com ([192.185.46.233]:11025 "EHLO gateway22.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727000AbeHHBl0 (ORCPT ); Tue, 7 Aug 2018 21:41:26 -0400 Received: from cm10.websitewelcome.com (cm10.websitewelcome.com [100.42.49.4]) by gateway22.websitewelcome.com (Postfix) with ESMTP id B66391AE25 for ; Tue, 7 Aug 2018 18:24:42 -0500 (CDT) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id nBLDfjXtsBcCXnBLFfJZpn; Tue, 07 Aug 2018 18:24:42 -0500 X-Authority-Reason: nr=8 Received: from [189.250.73.102] (port=48116 helo=embeddedor) by gator4166.hostgator.com with esmtpa (Exim 4.91) (envelope-from ) id 1fnBLC-001wL8-QL; Tue, 07 Aug 2018 18:24:38 -0500 Date: Tue, 7 Aug 2018 18:24:38 -0500 From: "Gustavo A. R. Silva" To: "David S. Miller" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" Cc: Jon Mason Subject: [PATCH 23/33] vxge: Mark expected switch fall-throughs Message-ID: <35840312011d92c056108066810769751722ef9c.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: 1fnBLC-001wL8-QL X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (embeddedor) [189.250.73.102]:48116 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 152 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: 114796 ("Missing break in switch") Addresses-Coverity-ID: 114804 ("Missing break in switch") Addresses-Coverity-ID: 114806 ("Missing break in switch") Signed-off-by: Gustavo A. R. Silva --- drivers/net/ethernet/neterion/vxge/vxge-config.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ethernet/neterion/vxge/vxge-config.c b/drivers/net/ethernet/neterion/vxge/vxge-config.c index a2c0a93..ae81498 100644 --- a/drivers/net/ethernet/neterion/vxge/vxge-config.c +++ b/drivers/net/ethernet/neterion/vxge/vxge-config.c @@ -3783,17 +3783,20 @@ vxge_hw_rts_rth_data0_data1_get(u32 j, u64 *data0, u64 *data1, VXGE_HW_RTS_ACCESS_STEER_DATA0_RTH_ITEM0_ENTRY_EN | VXGE_HW_RTS_ACCESS_STEER_DATA0_RTH_ITEM0_BUCKET_DATA( itable[j]); + /* fall through */ case 2: *data0 |= VXGE_HW_RTS_ACCESS_STEER_DATA0_RTH_ITEM1_BUCKET_NUM(j)| VXGE_HW_RTS_ACCESS_STEER_DATA0_RTH_ITEM1_ENTRY_EN | VXGE_HW_RTS_ACCESS_STEER_DATA0_RTH_ITEM1_BUCKET_DATA( itable[j]); + /* fall through */ case 3: *data1 = VXGE_HW_RTS_ACCESS_STEER_DATA1_RTH_ITEM0_BUCKET_NUM(j)| VXGE_HW_RTS_ACCESS_STEER_DATA1_RTH_ITEM0_ENTRY_EN | VXGE_HW_RTS_ACCESS_STEER_DATA1_RTH_ITEM0_BUCKET_DATA( itable[j]); + /* fall through */ case 4: *data1 |= VXGE_HW_RTS_ACCESS_STEER_DATA1_RTH_ITEM1_BUCKET_NUM(j)| -- 2.7.4