Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp714336imu; Tue, 27 Nov 2018 20:54:20 -0800 (PST) X-Google-Smtp-Source: AFSGD/XoZVz9yUjxGT85oDXDPr0LkoScHZeU0OXFi0Yuc4tt96XwmXhFd0SBQ7B/VFi5wSf9yoyy X-Received: by 2002:a17:902:7d82:: with SMTP id a2mr824828plm.163.1543380860692; Tue, 27 Nov 2018 20:54:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543380860; cv=none; d=google.com; s=arc-20160816; b=FdTcTlzvxLXw7ugEKFlTrCIXgDnbdhMiw6x7cRLz2BS8wQc1vvqNjQdNUGcsh73WKJ mI25LgSiUSk2NLIhOsI5G3OZ5oNT4lx/9qB9cVNL00D4cE7r70iCW1LFh9VtW+RyGB5/ ECHiizLQmsvusKhM8de3b4M8sVDk+rtQ5NsiY1ryfJmi8Fg0+5aSTuN2YBntqEzUl4qB En8bNsJuD4MgNFdtbJCiXgxOFyoYfOB7b9fugH9vnjRf26wuZgMq/PWjOw1I95k9kZ4q YmsDO6t+nug5eAFiMDQBRp96jEjuEOMxpt9pQPDQoDRgSxkDNrsWEqkuDcEmFUhSNYL8 DCdg== 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; bh=3tfaeK2O1rLDMuklVS5iJ4UxC06KugI3wsoPmxqjumc=; b=MapIkb/lU/JHm1TLSJkTf96v3S6w17rWVBmWGCKT9ICax/dg35lGH3zPrf+Zj2HcXJ LGF0OeYQYXlrf78qjSBLuNay/bhanHrFU+rnv08HnkqO3JOUyodfnl346e53ukgZNkG+ 5J2G2KQRyOR1iWGE6YISJRq45V6mvaCLTX3ick0ToJchCNCc49UiDjBp0AGQue2SB6o9 N0yfiawb6IL5ggX7A6T1zK8ranVL/qNBHtdSlJyePOrilW2NMWnA4nC5fOlxoS8GzT4V 8pBx+FHcaSSH8VtWZ70hv3uMk4ImeKVF3KqRzRjkCf6b/YI/7lOQg0BuYEK86s9ylrgu rpCQ== 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 h10si5732937pgd.285.2018.11.27.20.54.04; Tue, 27 Nov 2018 20:54:20 -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 S1727752AbeK1Pvv (ORCPT + 99 others); Wed, 28 Nov 2018 10:51:51 -0500 Received: from gateway36.websitewelcome.com ([192.185.194.2]:26999 "EHLO gateway36.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727062AbeK1Pvu (ORCPT ); Wed, 28 Nov 2018 10:51:50 -0500 X-Greylist: delayed 1356 seconds by postgrey-1.27 at vger.kernel.org; Wed, 28 Nov 2018 10:51:50 EST Received: from cm16.websitewelcome.com (cm16.websitewelcome.com [100.42.49.19]) by gateway36.websitewelcome.com (Postfix) with ESMTP id C214C400C3337 for ; Tue, 27 Nov 2018 21:38:33 -0600 (CST) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id RrTAgzNnuaSeyRrTAgC0n2; Tue, 27 Nov 2018 22:29:00 -0600 X-Authority-Reason: nr=8 Received: from [189.250.78.127] (port=58286 helo=embeddedor) by gator4166.hostgator.com with esmtpa (Exim 4.91) (envelope-from ) id 1gRrT9-001ljK-Nw; Tue, 27 Nov 2018 22:29:00 -0600 Date: Tue, 27 Nov 2018 22:28:57 -0600 From: "Gustavo A. R. Silva" To: Bradley Grove Cc: "James E.J. Bottomley" , "Martin K. Petersen" , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" Subject: [PATCH 14/41] scsi: esas2r: esas2r_init: mark expected switch fall-throughs Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) 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.78.127 X-Source-L: No X-Exim-ID: 1gRrT9-001ljK-Nw X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (embeddedor) [189.250.78.127]:58286 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 120 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. Signed-off-by: Gustavo A. R. Silva --- drivers/scsi/esas2r/esas2r_init.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/esas2r/esas2r_init.c b/drivers/scsi/esas2r/esas2r_init.c index 46b2c83ba21f..950cd92df2ff 100644 --- a/drivers/scsi/esas2r/esas2r_init.c +++ b/drivers/scsi/esas2r/esas2r_init.c @@ -1241,6 +1241,7 @@ static bool esas2r_format_init_msg(struct esas2r_adapter *a, a->init_msg = ESAS2R_INIT_MSG_GET_INIT; break; } + /* fall through */ case ESAS2R_INIT_MSG_GET_INIT: if (msg == ESAS2R_INIT_MSG_GET_INIT) { @@ -1254,7 +1255,7 @@ static bool esas2r_format_init_msg(struct esas2r_adapter *a, esas2r_hdebug("FAILED"); } } - /* fall through */ + /* fall through */ default: rq->req_stat = RS_SUCCESS; -- 2.17.1