Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp255508imu; Wed, 19 Dec 2018 17:58:01 -0800 (PST) X-Google-Smtp-Source: AFSGD/VTpW9M2e5qVrDzKSP5wWsraJ77mh5pwT8Jo4vXoqbQGU8G3m3ej94vlY9IAi2JocxGNcA0 X-Received: by 2002:a63:a16:: with SMTP id 22mr4975005pgk.318.1545271081292; Wed, 19 Dec 2018 17:58:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545271081; cv=none; d=google.com; s=arc-20160816; b=VGEb7QOuus1xt41yX9J/94fORrwuxdD3jXJEFMrFlNzglNm1klJ5/gnBli6oGt0obh gN1P6f0rcQ1QodRSa25tfkwSA+CA1MVx1vsKgZuhCNyWKg6VDctiVE2aLPyczpXazacJ GJDybccHhjTQEFj87/lKKTeRPWpLB4y1styfOB6vLKY2LsoB1eg3xv20sOwGO8rZuzei f4R5EWzjWqGQXk/Leg4HSzcVJRpoR5MQUjH/NETuBcVkgOLHXHLu78apQiOJR64f2a9D HfKO5tvmHuJQnOt8a5ewNnUPYCbLiS8Pdt+LjLwXblwBU7ETEPHe9bbbOeaKGikSfPdM gFGw== 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=rS09a+iEVFrwTYhSkYGi7viLS4RMQz9fnRjetL9AX8w=; b=HbC/3zIeYhSWC3aoEgKe8dJRakKf9Vn7BWG139hyM6h4x0RDl5pqn06ddA8GBuRxxT 4XC3XAKRrXEH+Ksx7nwsgtN+RIEBkeTa01MHa5nNG55BkOX+DP6CTvf2z27ETUaojcM5 pW2khnBlUyYJCKuCOGlH7Xuibyr0BAPepJMfbRemkTWLe61yRAc1WhoXHt3uRSYh1oAG BnzMTGdF5yvloyE3NXrUvNFrKrZ6fFz8sx/rE/A3RY4sAyD5QKl6yaY2WL1cX+DLOwSb xz1Xz1OxIjAEQeT6crjbU3SI+Rt3xTHGXI1CuI+b89jBDSFSVOrsEggBhYtkeYxGY7Id wXJQ== 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 33si14818931pls.408.2018.12.19.17.57.45; Wed, 19 Dec 2018 17:58:01 -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 S1730365AbeLTAHb (ORCPT + 99 others); Wed, 19 Dec 2018 19:07:31 -0500 Received: from gateway24.websitewelcome.com ([192.185.51.31]:30440 "EHLO gateway24.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727589AbeLTAHa (ORCPT ); Wed, 19 Dec 2018 19:07:30 -0500 Received: from cm17.websitewelcome.com (cm17.websitewelcome.com [100.42.49.20]) by gateway24.websitewelcome.com (Postfix) with ESMTP id EACE5251E for ; Wed, 19 Dec 2018 18:07:29 -0600 (CST) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id Zls9gitas90onZls9gGw4p; Wed, 19 Dec 2018 18:07:29 -0600 X-Authority-Reason: nr=8 Received: from [189.250.106.44] (port=50514 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 1gZls9-0015Ir-Iz; Wed, 19 Dec 2018 18:07:29 -0600 Subject: Re: [PATCH 33/41] scsi: osd: osd_initiator: mark expected switch fall-throughs To: Boaz Harrosh Cc: "James E.J. Bottomley" , "Martin K. Petersen" , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org References: <09026c2661bf3c4bcf41dbb265cf1dae2c3487fd.1543374820.git.gustavo@embeddedor.com> From: "Gustavo A. R. Silva" Message-ID: Date: Wed, 19 Dec 2018 18:07:28 -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: <09026c2661bf3c4bcf41dbb265cf1dae2c3487fd.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: 1gZls9-0015Ir-Iz X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: ([192.168.1.76]) [189.250.106.44]:50514 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 25 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:32 PM, Gustavo A. R. Silva wrote: > In preparation to enabling -Wimplicit-fallthrough, mark switch cases > where we are expecting to fall through. > > Signed-off-by: Gustavo A. R. Silva > --- > drivers/scsi/osd/osd_initiator.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/scsi/osd/osd_initiator.c b/drivers/scsi/osd/osd_initiator.c > index 60cf7c5eb880..cb26f26d5ec1 100644 > --- a/drivers/scsi/osd/osd_initiator.c > +++ b/drivers/scsi/osd/osd_initiator.c > @@ -1849,6 +1849,7 @@ int osd_req_decode_sense_full(struct osd_request *or, > 32, 1, dump, sizeof(dump), true); > OSD_SENSE_PRINT2("response_integrity [%s]\n", dump); > } > + /* fall through */ > case osd_sense_attribute_identification: > { > struct osd_sense_attributes_data_descriptor > @@ -1879,7 +1880,7 @@ int osd_req_decode_sense_full(struct osd_request *or, > attr_page, attr_id); > } > } > - /*These are not legal for OSD*/ > + /* fall through - These are not legal for OSD */ > case scsi_sense_field_replaceable_unit: > OSD_SENSE_PRINT2("scsi_sense_field_replaceable_unit\n"); > break; >