Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp713635imu; Tue, 27 Nov 2018 20:53:09 -0800 (PST) X-Google-Smtp-Source: AFSGD/WioQARJrDim19cRTUn0el/SfB31WIqLQBkFH6ZCTnU8ApAlbBrwuySlpRGyaxPcTeoqOrp X-Received: by 2002:a17:902:968d:: with SMTP id n13mr35945077plp.109.1543380789177; Tue, 27 Nov 2018 20:53:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543380789; cv=none; d=google.com; s=arc-20160816; b=C0GAtr2J4o6LzbLPiUrK7OIjB7GoOC8cbEHmRboAvrtCywjBRXda0OC0JJBMhTeSQz 83V1jJYDULvbb6Sa4hHvY/kYgtBprwdjL6xvYNZszzstQDPYjK8JppQgiSseuPZ8pR7m BltRfHNZa2un7pxMMh6o4ZGwYsPPxT75CR3By8CSDAYZLWQpCAtUawY1P277V2eaE0YD aYjFdQ5CL0Fi4NnBAdgxV/CEVZgUOh0SzjzLPDLow8DI2Wl2ZZkGHr5DAmXCs2cP7fVc gWRfVqOWZLkeD1Z0dWi0si1NBROC6nE3KzlqDiiVoN4OzfQSI7Upe3JcJqSgrP83UDRU 7Q/Q== 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=j/6rrNwpADAc/aEtQhRe03O9W/Yu00XqnYA9eOCJrto=; b=Zgx93osx80eH8h8qOlmumShdnn6qHPMg6YLdShKSHyxfJQrnKr48i1dq08YshkTAGR MmeTwRyJK37Emkvv/6ICTgLHJKRXy1zBNRgq3YaoDKhc1Rq+tt6Zel5mE0d/oOkkkvxD HG6BpFUc9Y7NzgaYBeNlKygcV5ma/etHFjcrJAq27BXqx0tDqfZgi3bn8WfamUXdwpo0 gHEXgU5D25yPMB3hZXd6rPW91GSno4h34TvVN830LKiWBSaalzQY3B3iwT0Kgzh/+erz 6dAplbSRw2RBo0YTOKEdHZSjIz/8d+/Q+yAxTkrnVNd76QpGo0rSM/lNyAtp4gDvdY4P Id5A== 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 j5si5689990pgq.82.2018.11.27.20.52.54; Tue, 27 Nov 2018 20:53:09 -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 S1727638AbeK1PvI (ORCPT + 99 others); Wed, 28 Nov 2018 10:51:08 -0500 Received: from gateway21.websitewelcome.com ([192.185.45.250]:26668 "EHLO gateway21.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727261AbeK1PvI (ORCPT ); Wed, 28 Nov 2018 10:51:08 -0500 Received: from cm13.websitewelcome.com (cm13.websitewelcome.com [100.42.49.6]) by gateway21.websitewelcome.com (Postfix) with ESMTP id 03D2140112A66 for ; Tue, 27 Nov 2018 22:30:07 -0600 (CST) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id RrUEgJJvJ957pRrUFg2duN; Tue, 27 Nov 2018 22:30:07 -0600 X-Authority-Reason: nr=8 Received: from [189.250.78.127] (port=58306 helo=embeddedor) by gator4166.hostgator.com with esmtpa (Exim 4.91) (envelope-from ) id 1gRrUD-001mdp-4f; Tue, 27 Nov 2018 22:30:06 -0600 Date: Tue, 27 Nov 2018 22:30:01 -0600 From: "Gustavo A. R. Silva" To: Intel SCU Linux support , Artur Paszkiewicz Cc: "James E.J. Bottomley" , "Martin K. Petersen" , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" Subject: [PATCH 18/41] scsi: isci: remote_device: 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: 1gRrUD-001mdp-4f X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (embeddedor) [189.250.78.127]:58306 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 142 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, a dash is added as a token in order to separate the "fall through" annotations from the rest of the comment on the same line, which is what GCC is expecting to find. Signed-off-by: Gustavo A. R. Silva --- drivers/scsi/isci/remote_device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/isci/remote_device.c b/drivers/scsi/isci/remote_device.c index cc51f38b116d..9d29edb9f590 100644 --- a/drivers/scsi/isci/remote_device.c +++ b/drivers/scsi/isci/remote_device.c @@ -310,7 +310,7 @@ static void isci_remote_device_not_ready(struct isci_host *ihost, /* Kill all outstanding requests for the device. */ sci_remote_device_terminate_requests(idev); - /* Fall through into the default case... */ + /* Fall through - into the default case... */ default: clear_bit(IDEV_IO_READY, &idev->flags); break; @@ -593,7 +593,7 @@ enum sci_status sci_remote_device_event_handler(struct isci_remote_device *idev, break; } - /* Else, fall through and treat as unhandled... */ + /* fall through - and treat as unhandled... */ default: dev_dbg(scirdev_to_dev(idev), "%s: device: %p event code: %x: %s\n", -- 2.17.1