Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp176537imm; Tue, 7 Aug 2018 16:27:02 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyQX3LLvxpwpopL8jY1DrbvxW8XgwQ8qQTZez07mRAJHfb/BqUPuib/x8XE/qyY/dciPzLj X-Received: by 2002:a63:2106:: with SMTP id h6-v6mr315917pgh.161.1533684421935; Tue, 07 Aug 2018 16:27:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533684421; cv=none; d=google.com; s=arc-20160816; b=fheDnfWXQMwSCWW2JZhBPm/g5nB9OYXc/je9a3xFVAt5hCiP7okoAb8dqxY9VI4CzA 2HnXuEHV9kugtG1BKrgYhSXaqAA9Ojur3rdPdHYk0E+mZGhJK+O+eYvzoRdMrPVrMEiI 2J6ijWMm+E3QsoMhR1pgcnRKn6ybaTVeNchD1yuh/De2OIHGNk0ONHCwIZ+AUxm8WYD9 488BlI5aq79mvvYH+QXZFlPEArVoKJJ/vaBU+hmd1QU5wrochokPneUypaSZPr4GP/1m a6zHpeb5VASfM0XrqF/+IkizFkeejXD/IZsrVhL1cGJ+18hpJlBhylXRCJ2/Q1ZTVuOW oI8w== 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=9jo9uwaseNgmZuoPD9E8ERb/ChLaEvOQelrfz59+gJk=; b=tfbmA4ChKc0Y16233fs2xDQ+hyffuuWUo2c8cqf2+Pk5PSbgU1auMUjmyvAthkJQTN qsoGZdqsb0cWf/37/4WLsU+M34I826Mop5q7Hbe+Uzm6xZgPMAlULDhzCIWyI9da+rwd fKf0AEUeZg+GBY7oj0dFKK9AMqjiSoottz+UN3T53A1ipVZmJwkuT/td9RzpgJqGuJa9 eCv8D1uiOgsvZrbdnQ85LjVrbpG6uF4GRRBIGhPwbyO9Hh72crl4BtAJIXAtjW5OgMuB ANz79pQ9iKweLU7VoKfyLwbW/fxd2CpUM0PMp7AM7M19gJGMuu0QYGtGSMpqVT6D37hC M/wQ== 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.26.47; Tue, 07 Aug 2018 16:27:01 -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 S1727507AbeHHBmo (ORCPT + 99 others); Tue, 7 Aug 2018 21:42:44 -0400 Received: from gateway22.websitewelcome.com ([192.185.46.233]:25397 "EHLO gateway22.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727025AbeHHBmo (ORCPT ); Tue, 7 Aug 2018 21:42:44 -0400 Received: from cm10.websitewelcome.com (cm10.websitewelcome.com [100.42.49.4]) by gateway22.websitewelcome.com (Postfix) with ESMTP id 238DA1CDA3 for ; Tue, 7 Aug 2018 18:26:00 -0500 (CDT) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id nBMUfjbhIBcCXnBMVfJdaj; Tue, 07 Aug 2018 18:26:00 -0500 X-Authority-Reason: nr=8 Received: from [189.250.73.102] (port=48124 helo=embeddedor) by gator4166.hostgator.com with esmtpa (Exim 4.91) (envelope-from ) id 1fnBMU-001ww8-52; Tue, 07 Aug 2018 18:25:58 -0500 Date: Tue, 7 Aug 2018 18:25:57 -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 25/33] qed: qed_dev: Mark expected switch fall-throughs Message-ID: <3c008dabbd2b659d67259ccd2e736fa85e28506d.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: 1fnBMU-001ww8-52 X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (embeddedor) [189.250.73.102]:48124 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 162 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. Notice that in this particular case, I replaced the code comments with a proper "fall through" annotation, which is what GCC is expecting to find. Addresses-Coverity-ID: 114809 ("Missing break in switch") Addresses-Coverity-ID: 114810 ("Missing break in switch") Signed-off-by: Gustavo A. R. Silva --- drivers/net/ethernet/qlogic/qed/qed_dev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/qlogic/qed/qed_dev.c b/drivers/net/ethernet/qlogic/qed/qed_dev.c index 6a0b46f..2f42df3 100644 --- a/drivers/net/ethernet/qlogic/qed/qed_dev.c +++ b/drivers/net/ethernet/qlogic/qed/qed_dev.c @@ -1709,14 +1709,14 @@ int qed_hw_init(struct qed_dev *cdev, struct qed_hw_init_params *p_params) p_hwfn->hw_info.hw_mode); if (rc) break; - /* Fall into */ + /* Fall through */ case FW_MSG_CODE_DRV_LOAD_PORT: rc = qed_hw_init_port(p_hwfn, p_hwfn->p_main_ptt, p_hwfn->hw_info.hw_mode); if (rc) break; - /* Fall into */ + /* Fall through */ case FW_MSG_CODE_DRV_LOAD_FUNCTION: rc = qed_hw_init_pf(p_hwfn, p_hwfn->p_main_ptt, p_params->p_tunn, -- 2.7.4