Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3115653imj; Mon, 11 Feb 2019 14:15:58 -0800 (PST) X-Google-Smtp-Source: AHgI3IZGsGp9u5obrVD9IoXl9gSUjk0RftW4DVzjF3wtyF2QZnM0BnoTCplnEwmrTMJL3hOPuS6A X-Received: by 2002:a17:902:622:: with SMTP id 31mr488312plg.171.1549923358264; Mon, 11 Feb 2019 14:15:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549923358; cv=none; d=google.com; s=arc-20160816; b=kAMN9d8+lnHvPcxODQ/cRrDQ7FAqF/qmwpaVC/8HRml9F6GXxic/1PrWYEVD/+AnJU nrDkuui4JwaWo/C/EJZZ5VD0l8MDpQH/E2WjmTGXZIwYxW3oRHt4YTA06DfCpGhDObga /JVXOsKdxGZeceTrNRpvufW1BfUoUWAUuc2LkjjDOqF5czXHiPr4QOI1KgZuBR5ubazL FUoNV1LVOtl0CdfPoH3ybRS+Qv/foTk1GAROjCraKOaFJ5ut04Kcw2vyErW4jHGM9+l1 w3GRr+Mpd9TiU5e7YO53A9A7WQTf2/txy7QX+UlkdC1NCpNbFaBGOsU08KlPPPwRdxAJ l7+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-transfer-encoding :content-disposition:mime-version:message-id:subject:cc:to:from:date; bh=8gxlS8PxA34U/NOlBQBbq9rIg1dN+bdDGw0ON6qsHmU=; b=w5ipgjsYjrOmF/N4/00tOUy0gzpV0RvnPoNmNgdn5WuONzLWf6duhDXkPlvVwq/o36 6nPOXCJlNsjPi3//841ozwUqaZKcysNc1ZmpFzv+2BBg+YvwuPpHih/7NK7gTD4SVGiS uZQi78sr38UtfHjsXlVmThlFEFPUKd3P4AWDad602p7zZNUa0HRwumL4IOmlYThIp/sx /Bdu3A77hpVip/6xl89smOVmFBo3XaVTUfRLdt49hE03uRYSvPFAFJpyo+BxRRwJRsQr J5uJvs5qlI+qY0Ia2UFbgnoA9CoIuch9nSmwr6AkuuqJie/zQe4aCguV2sIWzKW38RRr n/+w== 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 v5si5874899plg.318.2019.02.11.14.15.41; Mon, 11 Feb 2019 14:15:58 -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 S1727257AbfBKWOQ (ORCPT + 99 others); Mon, 11 Feb 2019 17:14:16 -0500 Received: from gateway36.websitewelcome.com ([50.116.126.2]:42002 "EHLO gateway36.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726366AbfBKWOP (ORCPT ); Mon, 11 Feb 2019 17:14:15 -0500 Received: from cm11.websitewelcome.com (cm11.websitewelcome.com [100.42.49.5]) by gateway36.websitewelcome.com (Postfix) with ESMTP id 7CAE640127343 for ; Mon, 11 Feb 2019 15:28:20 -0600 (CST) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id tJqBgIrkMdnCetJqBgIBOn; Mon, 11 Feb 2019 16:14:15 -0600 X-Authority-Reason: nr=8 Received: from [189.250.119.20] (port=59992 helo=embeddedor) by gator4166.hostgator.com with esmtpa (Exim 4.91) (envelope-from ) id 1gtJqA-0046sS-D5; Mon, 11 Feb 2019 16:14:14 -0600 Date: Mon, 11 Feb 2019 16:14:13 -0600 From: "Gustavo A. R. Silva" To: Vitor Soares , Boris Brezillon Cc: linux-i3c@lists.infradead.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" , Kees Cook Subject: [PATCH] i3c: master: dw-i3c-master: mark expected switch fall-through Message-ID: <20190211221413.GA21822@embeddedor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit 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.119.20 X-Source-L: No X-Exim-ID: 1gtJqA-0046sS-D5 X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (embeddedor) [189.250.119.20]:59992 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 14 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. 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) -- 2.20.1