Received: by 10.223.164.221 with SMTP id h29csp302971wrb; Fri, 3 Nov 2017 09:21:21 -0700 (PDT) X-Google-Smtp-Source: ABhQp+TSvEC+s0YFWm+vLasv6WxUumQ40KHnDgmcrtj/KjwdxjPXNronra8AEOcoYF3M+QeByrou X-Received: by 10.99.117.74 with SMTP id f10mr7651145pgn.27.1509726081537; Fri, 03 Nov 2017 09:21:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509726081; cv=none; d=google.com; s=arc-20160816; b=H3ygR7Yrrg9oH0Q4BcPcFsj+lKDDRNnQW/lCYX92Gc2+m3u+OrFHX+hf35nCTD8/s0 OpL2TX+ukJkrVZupyrShNUEsWJOS2nCSSJt+LtXeAmOXXqwiw7a189R4Uwros5TbelaR KuckYQybBSQEMtYOLxATQuKAlS/2GJCgZ6bHd4jUL86X3AQA8O8zqfnrdab6dWRpfGn9 R3INzs0rwn4FADBAaoO5klHrozoMkVRHQe/tQfQbM2Ks2UaVHd+9sxiAOvpy7JqIb1qp saNpM3DGrmGWlCIWWjLn090vZYXrbFq1GLvvcVI1kEI/0V3TKWX/yD7Km18cF78oaYAU 4vuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition:mime-version :user-agent:in-reply-to:references:subject:cc:to:from:message-id :date:arc-authentication-results; bh=u9MtR4SdnFJR8PblFmTwQNSktKY7m5hYDW4coJO3A9Y=; b=YULgnJeMRYdWxBzGz9yw67G+iQ4zaiv9m+gf8C09LqghbfwEysVyoPOAZ0X7rmNgX3 1NdsoiqioOdIVxKErzRUaKHgDJLdl7Q+N85SyM2pS1lRJ/kDueELJLIfzzbLyXsCrojo JP9IobrbkcwZYK04XCeffkkdxL4jz5pRFsqRsy0q0wOBjYVaaDMeMsffG23fWOBQZxQA bEYlIJhH5P9t3Yo6U9cVOOdVt7wdItjFjn7tpiWUyud+q4NAOUvFEjclbDP2Vhx9dv6w GgspunZjii8zxre85rqNDx4eEfVTW2XLwZ5LEE4VLnDQEHDDVP6LcdpuKnHVakquWOHt emFQ== 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 p22si5514190plr.207.2017.11.03.09.21.07; Fri, 03 Nov 2017 09:21:21 -0700 (PDT) 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 S1753880AbdKCQU2 (ORCPT + 94 others); Fri, 3 Nov 2017 12:20:28 -0400 Received: from gateway30.websitewelcome.com ([192.185.194.16]:22378 "EHLO gateway30.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752165AbdKCQU1 (ORCPT ); Fri, 3 Nov 2017 12:20:27 -0400 X-Greylist: delayed 1361 seconds by postgrey-1.27 at vger.kernel.org; Fri, 03 Nov 2017 12:20:27 EDT Received: from cm10.websitewelcome.com (cm10.websitewelcome.com [100.42.49.4]) by gateway30.websitewelcome.com (Postfix) with ESMTP id 635548D3E for ; Fri, 3 Nov 2017 10:57:46 -0500 (CDT) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id AeLqeWcIWpOTvAeLqeI0nP; Fri, 03 Nov 2017 10:57:46 -0500 Received: from gator4166.hostgator.com ([108.167.133.22]:33023) by gator4166.hostgator.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.87) (envelope-from ) id 1eAeLq-0029E3-2Z; Fri, 03 Nov 2017 10:57:46 -0500 Received: from 189.145.38.148 ([189.145.38.148]) by gator4166.hostgator.com (Horde Framework) with HTTPS; Fri, 03 Nov 2017 10:57:45 -0500 Date: Fri, 03 Nov 2017 10:57:45 -0500 Message-ID: <20171103105745.Horde.MKbMOaJQkoG4PaLLOWR8qLo@gator4166.hostgator.com> From: "Gustavo A. R. Silva" To: Guenter Roeck Cc: Wim Van Sebroeck , linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] watchdog: pcwd_pci: mark expected switch fall-through References: <20171103144915.GA6243@embeddedor.com> <20171103150423.GA10138@infomag.iguana.be> <20171103155426.GA21990@roeck-us.net> In-Reply-To: <20171103155426.GA21990@roeck-us.net> User-Agent: Horde Application Framework 5 Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes MIME-Version: 1.0 Content-Disposition: inline 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: 108.167.133.22 X-Source-L: Yes X-Exim-ID: 1eAeLq-0029E3-2Z X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: gator4166.hostgator.com [108.167.133.22]:33023 X-Source-Auth: garsilva@embeddedor.com X-Email-Count: 5 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 Quoting Guenter Roeck : > On Fri, Nov 03, 2017 at 04:04:23PM +0100, Wim Van Sebroeck wrote: >> Hi Gustavo, >> >> > In preparation to enabling -Wimplicit-fallthrough, mark switch cases >> > where we are expecting to fall through. >> > >> > Notice that in this particular case I replaced "Fall" with a proper >> > "fall through" comment, which is what GCC is expecting to find. >> > >> > Signed-off-by: Gustavo A. R. Silva >> > --- >> > drivers/watchdog/pcwd_pci.c | 2 +- >> > 1 file changed, 1 insertion(+), 1 deletion(-) >> > >> > diff --git a/drivers/watchdog/pcwd_pci.c b/drivers/watchdog/pcwd_pci.c >> > index c0d07ee..c882252 100644 >> > --- a/drivers/watchdog/pcwd_pci.c >> > +++ b/drivers/watchdog/pcwd_pci.c >> > @@ -545,7 +545,7 @@ static long pcipcwd_ioctl(struct file *file, >> unsigned int cmd, >> > return -EINVAL; >> > >> > pcipcwd_keepalive(); >> > - /* Fall */ >> > + /* fall through */ >> > } >> > >> > case WDIOC_GETTIMEOUT: >> > -- >> > 2.7.4 >> > >> >> Shouldn't the /* fall through */ come after the } ? >> > Good question. This is an unconditional code block needed to declare > a local variable within the case statement. What is correct in that > situation ? > I think it is correct to place the comment outside the code block. I'll send a patch shortly. Thanks -- Gustavo A. R. Silva From 1583062315665798527@xxx Fri Nov 03 16:17:51 +0000 2017 X-GM-THRID: 1583056957567251846 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread