Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp114993imu; Wed, 19 Dec 2018 14:45:48 -0800 (PST) X-Google-Smtp-Source: AFSGD/USOaHjbhsYOI2U0EJYSdv+k74Rl5qTQreOtrYa7mFZrLiGrvuzHHMcB9ARWvMAR61yICIW X-Received: by 2002:a17:902:9a98:: with SMTP id w24mr22082082plp.213.1545259548020; Wed, 19 Dec 2018 14:45:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545259547; cv=none; d=google.com; s=arc-20160816; b=lTtP0VNqb5rV1T6ZK5s+tJyoXCCcZirlv0o6cR1rvDWrfNkln1tcq12zjg92P/QXb8 oFOrPgrKwK0YsbnSRcBqzICUReXFpzbfrZBzZCSB7OZFkJfxSZ0ZQnDUO7Qe00bno6bL s7IIbZJZBbXL1GPe0yzEJ66sw+NQgCHuEmEVzZ0Ra9lHeLJnI+JedYRPe7zG3PKhVS3u PI/t4gq5382vBT2vdTBuBhdEDN3jTDkbgSUwuNvLMOEJrkGSHNjNotuT2rAEN9WLeEkN wmPrMm2UNqPTLzsZ5IL9lmh0ZcSBlXjMdPBl/dPDz7TCLUGXwag8Zj9945rsOEYNVTb4 Gzgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=vJMO/MHN8ePDh56XDjnmxDJ0JClDMuDrF6fi7rGKypU=; b=aQbUsWQCg8PJQinMqosueWw1TUycpla2ZtnrrqML4lSjNqLqXV4O1pcyfRexjxJVGl +ZFDi3uoNBygxrPdxPCa29NJigRb7ge8UHdePTn1hJNDay0E7AMgFnnvC96JOunx/Jef soafl0nUZMMsM4pzu+gqlP0UiFNWfy6nIwSOCXc7ktBvpfdxDgLbk8X6s6IFmThzrNvO RRsitk1DllDXDIkIbyC/lK/9fGASk2jH05Zwum9X/PknsviTgGS1eX0zjPtggJVaeFC3 l+69Jq/Tjwu3Rnw0Sl3rdPBf6BPAGkS6VbATlfVWtZuqorf9jUW2KPWXXSGxzPV8zF85 PHHQ== 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 d4si12478573pls.348.2018.12.19.14.45.32; Wed, 19 Dec 2018 14:45:47 -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 S1729800AbeLSW1k (ORCPT + 99 others); Wed, 19 Dec 2018 17:27:40 -0500 Received: from gateway31.websitewelcome.com ([192.185.144.80]:28856 "EHLO gateway31.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727990AbeLSW1j (ORCPT ); Wed, 19 Dec 2018 17:27:39 -0500 Received: from cm17.websitewelcome.com (cm17.websitewelcome.com [100.42.49.20]) by gateway31.websitewelcome.com (Postfix) with ESMTP id 2739FF8D1 for ; Wed, 19 Dec 2018 16:27:38 -0600 (CST) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id ZkJWghfqC90onZkJWgFj4s; Wed, 19 Dec 2018 16:27:38 -0600 X-Authority-Reason: nr=8 Received: from [189.250.106.44] (port=47216 helo=[192.168.1.76]) by gator4166.hostgator.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91) (envelope-from ) id 1gZkJW-000DiS-7I; Wed, 19 Dec 2018 16:27:38 -0600 Subject: Re: [PATCH 24/41] scsi: lpfc: lpfc_hbadisc: Mark expected switch fall-throughs To: James Smart , Dick Kennedy Cc: "James E.J. Bottomley" , "Martin K. Petersen" , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org References: <8db99b2700dd1589b8cf5ddb6b3de84dfe1e9f82.1543374820.git.gustavo@embeddedor.com> From: "Gustavo A. R. Silva" Message-ID: <1d7a5578-e917-edad-cb47-cbb907897292@embeddedor.com> Date: Wed, 19 Dec 2018 16:27:37 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <8db99b2700dd1589b8cf5ddb6b3de84dfe1e9f82.1543374820.git.gustavo@embeddedor.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit 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.106.44 X-Source-L: No X-Exim-ID: 1gZkJW-000DiS-7I X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: ([192.168.1.76]) [189.250.106.44]:47216 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 46 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 Hi, Friendly ping: Who can ack or review this patch, please? Thanks -- Gustavo On 11/27/18 10:31 PM, Gustavo A. R. Silva wrote: > In preparation to enabling -Wimplicit-fallthrough, mark switch cases > where we are expecting to fall through. > > Notice that, in this particular case, I replaced "Drop thru" with a > "fall through" annotation, which is what GCC is expecting to find. > > Addresses-Coverity-ID: 114976 ("Missing break in switch") > Addresses-Coverity-ID: 114977 ("Missing break in switch") > Signed-off-by: Gustavo A. R. Silva > --- > drivers/scsi/lpfc/lpfc_hbadisc.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/drivers/scsi/lpfc/lpfc_hbadisc.c b/drivers/scsi/lpfc/lpfc_hbadisc.c > index 6c2fb55d739b..1a61806739ff 100644 > --- a/drivers/scsi/lpfc/lpfc_hbadisc.c > +++ b/drivers/scsi/lpfc/lpfc_hbadisc.c > @@ -4645,9 +4645,11 @@ lpfc_check_sli_ndlp(struct lpfc_hba *phba, > case CMD_GEN_REQUEST64_CR: > if (iocb->context_un.ndlp == ndlp) > return 1; > + /* fall through */ > case CMD_ELS_REQUEST64_CR: > if (icmd->un.elsreq64.remoteID == ndlp->nlp_DID) > return 1; > + /* fall through */ > case CMD_XMIT_ELS_RSP64_CX: > if (iocb->context1 == (uint8_t *) ndlp) > return 1; > @@ -5791,7 +5793,7 @@ lpfc_disc_timeout_handler(struct lpfc_vport *vport) > > case LPFC_LINK_UP: > lpfc_issue_clear_la(phba, vport); > - /* Drop thru */ > + /* fall through */ > case LPFC_LINK_UNKNOWN: > case LPFC_WARM_START: > case LPFC_INIT_START: >