Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2066088imj; Fri, 8 Feb 2019 12:00:09 -0800 (PST) X-Google-Smtp-Source: AHgI3IaRAEAUdlVfXozHO4irPiP8/r/IwYJNw9y4Cr/MxI7eAOTyVGwu0FV+b8Ie1y0efW7v8ngP X-Received: by 2002:a17:902:1d4a:: with SMTP id u10mr23487064plu.122.1549656009795; Fri, 08 Feb 2019 12:00:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549656009; cv=none; d=google.com; s=arc-20160816; b=T6NEhz0b3B5fxBjN9frFKCHoP1nguqD+WqhHvMlgOxJnA92LXHCgJ7+20y43yglVOz GVThgvjuzQPyCB2kNk07meJJeE5UpDfVqsh0NLhLeNPR8zWkR+Lb829TBnI4p23SsrHu 8I6OtvS3ww5Rrhc5pQgUPa/yFC81NwL9SH/cznufNXP/HNGqnROiw4OoRP4yHgZXQR+G y3H4E215O7UJeQwfT+noDoZjM2u/5F5EJ2KnTuoLlSYmnutR91e7BNS9BQwyoMg5eluZ WZi3WuYtPC5At35OnI/ED6r8LqzYaJlcedsidF7HCGi+QGjDzwE1cZuQuObPQFVcLMg7 hQqQ== 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-disposition :mime-version:message-id:subject:cc:to:from:date; bh=iyuBQRucfMKaIEjtvNtEPjNTsWEsbPghNsBFfF3w2k4=; b=xTjc5UMQyYzLqbS6G//8R9CKtjjQ7evHLaAY4FJ0T0PnsJZZXjikoxcg8G9g9yNX6T jO5HA00MlT0Ee0m7VAxYn/Td/P5DJd4gvcnMuuUfi5KQSLcYbN8PtWtpHosaDiqoKfWF dLcDrMnUPKqC+L9NT6xk0yMNanLbjiPKyzUZ1gSvVSJesZjuQAD0DA3MICEgp7jPGmfR +ODkFcAdL5aOqPxjkyl3JQ5Meu1HhQlw2lRrmioIj46bPIXF5Y27v77PXpZky30HFTkJ ajjRMGcQEw5r9oAWMXuZRTh/zimfVby08TpnRXFfbSa5BsPuMif3jCmbeZmijDaT9HrW 9vNg== 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 k25si3149837pfe.10.2019.02.08.11.59.53; Fri, 08 Feb 2019 12:00: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 S1727520AbfBHT6n (ORCPT + 99 others); Fri, 8 Feb 2019 14:58:43 -0500 Received: from gateway31.websitewelcome.com ([192.185.143.5]:11892 "EHLO gateway31.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726860AbfBHT6n (ORCPT ); Fri, 8 Feb 2019 14:58:43 -0500 Received: from cm11.websitewelcome.com (cm11.websitewelcome.com [100.42.49.5]) by gateway31.websitewelcome.com (Postfix) with ESMTP id 4524A24ECE for ; Fri, 8 Feb 2019 13:58:42 -0600 (CST) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id sCILgbqtEdnCesCIMgbkyJ; Fri, 08 Feb 2019 13:58:42 -0600 X-Authority-Reason: nr=8 Received: from [189.250.49.191] (port=33594 helo=embeddedor) by gator4166.hostgator.com with esmtpa (Exim 4.91) (envelope-from ) id 1gsCIL-001Aeo-5m; Fri, 08 Feb 2019 13:58:41 -0600 Date: Fri, 8 Feb 2019 13:58:38 -0600 From: "Gustavo A. R. Silva" To: Wei Liu , Paul Durrant , "David S. Miller" Cc: xen-devel@lists.xenproject.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" Subject: [PATCH net-next] xen-netback: mark expected switch fall-through Message-ID: <20190208195838.GA11878@embeddedor> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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.49.191 X-Source-L: No X-Exim-ID: 1gsCIL-001Aeo-5m X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (embeddedor) [189.250.49.191]:33594 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 30 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. Warning level 3 was used: -Wimplicit-fallthrough=3 This patch is part of the ongoing efforts to enabling -Wimplicit-fallthrough. Signed-off-by: Gustavo A. R. Silva --- drivers/net/xen-netback/xenbus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/xen-netback/xenbus.c b/drivers/net/xen-netback/xenbus.c index 2625740bdc4a..330ddb64930f 100644 --- a/drivers/net/xen-netback/xenbus.c +++ b/drivers/net/xen-netback/xenbus.c @@ -655,7 +655,7 @@ static void frontend_changed(struct xenbus_device *dev, set_backend_state(be, XenbusStateClosed); if (xenbus_dev_is_online(dev)) break; - /* fall through if not online */ + /* fall through - if not online */ case XenbusStateUnknown: set_backend_state(be, XenbusStateClosed); device_unregister(&dev->dev); -- 2.20.1