Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp1621580img; Wed, 27 Feb 2019 02:34:18 -0800 (PST) X-Google-Smtp-Source: AHgI3IYLpE6JwnjGFUhshtr3tgk6SPtshxaJ94VdYBLfkJt0uPFuJJXqTjnjtQt2j519iE+eES62 X-Received: by 2002:a63:4509:: with SMTP id s9mr2267848pga.420.1551263658112; Wed, 27 Feb 2019 02:34:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551263658; cv=none; d=google.com; s=arc-20160816; b=Mi+NOth8SGuqSCvLpMg+UCOCx7BXvAYBrPg/zdY/SJkM0dxDEMYzYeH4LpvEyatShM jQbT2BFUHEhnOZ6V7y3cdqafIooWG6z7C1RjqAsvSqnSOlQMiORf+TFuyFFr+ItGaqLn 1lb/2RW4rhe7TydYEmGqDEhOVTu7eS2S0QNFuv96kESlc9dd5/r/8/EMCkt2VwAtLqdX 6BRbzMkANMeOpLmpHoYIL2BgWHlHGQXZAfN0JRNkpcEn01MB74SnZghUxEcTulW8pY3y XQtiZXod5QBDjYlVnMcm8EABLl2r/7EZAKCA9NW8DNxPC60eyu19yQTA9r6AF47LcoCQ G7ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=DY5ChgNgLObON86vTqHc8RcxMhRT1Al2b6DpBQuuTjc=; b=IriEto4AymfRoegW8HwYwk/DCTjtdanaAV8rthV9dKqoj9kwD+NH0W7L52+pD0HfdL 4qUEiuKfv34/Ipf4U/VAlDMW2nRhW7ULhkbU9mkZqIIxIR1u22i9icuWfBCWZFUMj2Ou EY+4Twnrr8M4rwNkxttw9Ve7M5Z1SlmsGUv5Fn+5HS9cEJ1v9BkAMcf9W2MVSexrHxUu RzOR/0I6XGXSVu7cVXgXDISU++l2ZcTFngVrQ2Z323dX2MnPCg6HMYgIXuOGU8haqh7t /H7j1Gt0tQSsZ2KzvdBUtd3FudPj8AoPrl4Hnv2AFwmqfCW/Pi+oDcFS7YKHg/PRJYQe pbeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=QVkXwNiB; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1si13121917ply.232.2019.02.27.02.34.02; Wed, 27 Feb 2019 02:34:18 -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; dkim=pass header.i=@synopsys.com header.s=mail header.b=QVkXwNiB; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729848AbfB0KdP (ORCPT + 99 others); Wed, 27 Feb 2019 05:33:15 -0500 Received: from us01smtprelay-2.synopsys.com ([198.182.60.111]:52764 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725993AbfB0KdP (ORCPT ); Wed, 27 Feb 2019 05:33:15 -0500 Received: from mailhost.synopsys.com (dc2-mailhost1.synopsys.com [10.12.135.161]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtprelay.synopsys.com (Postfix) with ESMTPS id A68A210C10DA; Wed, 27 Feb 2019 02:33:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1551263594; bh=7fW13SS4AFOQkasAkFki8wa5dUGNFVXdIIMrd447xng=; h=Subject:To:CC:References:From:Date:In-Reply-To:From; b=QVkXwNiBUxlmy0R+63pJuU7S14UwwXlz1cWkH4Y/nLNqZAICIuCPAcVYfi7H0Dgyo 68nHwCqGZ7m+nKvijnIQC+va1d8ghqQqFg6o9xUK+PKZIPUMRHsTcawR0Cp4UALbxD FgZPHrk2IYP2r1A9HR5y7WIDiIqlm0Yc212+jSxDpF9yDS+Irw96kHTGsqifTri2BL JhtoQKgkjG2P9Lv/lZ0LJ18QDQVdfaIKsjWD0cJpb82YHGeklnCfC0T1FW0pjhtfdk OIOIA62HZJabYLGWuENh0A2czZZum6cGV72bWMK8QElhDRBh3I44JZLX2xkOphpiTZ JfxkecjCj6sGg== Received: from us01wehtc1.internal.synopsys.com (us01wehtc1-vip.internal.synopsys.com [10.12.239.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mailhost.synopsys.com (Postfix) with ESMTPS id 2AF33A0093; Wed, 27 Feb 2019 10:33:14 +0000 (UTC) Received: from DE02WEHTCA.internal.synopsys.com (10.225.19.92) by us01wehtc1.internal.synopsys.com (10.12.239.231) with Microsoft SMTP Server (TLS) id 14.3.408.0; Wed, 27 Feb 2019 02:33:14 -0800 Received: from DE02WEHTCB.internal.synopsys.com (10.225.19.94) by DE02WEHTCA.internal.synopsys.com (10.225.19.92) with Microsoft SMTP Server (TLS) id 14.3.408.0; Wed, 27 Feb 2019 11:33:11 +0100 Received: from [10.0.2.15] (10.107.25.89) by DE02WEHTCB.internal.synopsys.com (10.225.19.80) with Microsoft SMTP Server (TLS) id 14.3.408.0; Wed, 27 Feb 2019 11:33:11 +0100 Subject: Re: [PATCH] i3c: master: dw-i3c-master: mark expected switch fall-through To: "Gustavo A. R. Silva" , Vitor Soares , Boris Brezillon CC: , , Kees Cook References: <20190211221413.GA21822@embeddedor> <87e0a8c9-82f6-3f41-bdb6-162a4c264132@embeddedor.com> From: vitor Message-ID: <0edcc5fb-6b7b-65cf-227d-af510cabc29c@synopsys.com> Date: Wed, 27 Feb 2019 10:33:07 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <87e0a8c9-82f6-3f41-bdb6-162a4c264132@embeddedor.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Content-Language: en-US X-Originating-IP: [10.107.25.89] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Gustavo, Sorry for the delay. On 27/02/19 03:53, Gustavo A. R. Silva wrote: > Hi all, > > Friendly ping: > > Who can ack or review this, please? > > Thanks > -- > Gustavo > > On 2/11/19 4:14 PM, Gustavo A. R. Silva wrote: >> In preparation to enabling -Wimplicit-fallthrough, mark switch >> cases where we are expecting to fall through. >> >> This patch fixes the following warning: >> >> drivers/i3c/master/dw-i3c-master.c: In function ‘dw_i3c_master_bus_init’: >> drivers/i3c/master/dw-i3c-master.c:603:6: warning: this statement may fall through [-Wimplicit-fallthrough=] >> if (ret) >> ^ >> drivers/i3c/master/dw-i3c-master.c:605:2: note: here >> case I3C_BUS_MODE_PURE: >> ^~~~ >> >> Warning level 3 was used: -Wimplicit-fallthrough=3 >> >> This patch is part of the ongoing efforts to enable >> -Wimplicit-fallthrough. >> >> Signed-off-by: Gustavo A. R. Silva >> --- >> drivers/i3c/master/dw-i3c-master.c | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/drivers/i3c/master/dw-i3c-master.c b/drivers/i3c/master/dw-i3c-master.c >> index bb03079fbade..59279224e07f 100644 >> --- a/drivers/i3c/master/dw-i3c-master.c >> +++ b/drivers/i3c/master/dw-i3c-master.c >> @@ -602,6 +602,7 @@ static int dw_i3c_master_bus_init(struct i3c_master_controller *m) >> ret = dw_i2c_clk_cfg(master); >> if (ret) >> return ret; >> + /* fall through */ >> case I3C_BUS_MODE_PURE: >> ret = dw_i3c_clk_cfg(master); >> if (ret) >> Acked-by: Vitor Soares Best regards, Vitor Soares