Received: by 10.223.164.221 with SMTP id h29csp265733wrb; Fri, 3 Nov 2017 08:48:43 -0700 (PDT) X-Google-Smtp-Source: ABhQp+RK2JDcOWQvq32wIgmmUxnGTPbSriJ5skWg/PPTigYQEzlO6jk/+LmCzvzxcPziHE4gZhlg X-Received: by 10.99.96.7 with SMTP id u7mr7397916pgb.183.1509724123671; Fri, 03 Nov 2017 08:48:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509724123; cv=none; d=google.com; s=arc-20160816; b=wko/BXf48LMxXqykWkc+XsIHCz1uCuCcCfnkqA69MJiaMJ/hvLxHVYLTEXJE7IY/Xn ZDL/HS2ZqWR4Ycm99cxfnM9fQTgsgdq/AdJ/SjAF/9zXfEXDYE5LGaZcCeGrNbye8Hne TPMGxw66KNE7zsnceY8zj8A2rrfwv20StoRt5MZGIBzyt8dfMBwAJbK2f14Q7bW46eN3 fLx/+tr4Ceej9GI4PvZPppoKYRpE/3uW2+37Glv7Pfh83xHIvj55VlKsMIDSkV2wjHif D+proNPc4PcZkNmuT+KM5iGZk3QGpk2R4V2UNOKMN8zmHJoxnq4FRLNChK5dYch2/KFZ DAeQ== 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=bxscO420FBCHlMQfczqVF5U4DKOLN74EqmBl2EYDkP8=; b=xKGxZgwH4FtDs4oe0IpPXTNdW9XUw9jBmroeedouc4RDfUVeKdrUUpsVdVpQ/4UnLB vadWc9mxsrN5FsqoHc6gY5D7sKzKEAhrXXaqUKp/L+BtUjR4rRxp88JtXusdt2fMzflP S/TIecUi/Qgq2Nx/uI2IhiQBOb7PNzbBjErSAoyBK0aBWIc4ZdxKLuXpoUA8R7hC3TXW nta/JF5CF1cp3qp3WFMnEYi9lfX2DH0Kf2qp1DbT+BJjrzHEOORUbaUX/4hWmPK1xJZc z7WhyIWrQzaZWpswIVfPl6AcofeCD4hpHPwXyfqgTwM2VfAlrh7ToTXYokqkxJ11jFvW omSw== 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 n10si4160912plp.112.2017.11.03.08.48.29; Fri, 03 Nov 2017 08:48:43 -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 S1756087AbdKCPrk (ORCPT + 95 others); Fri, 3 Nov 2017 11:47:40 -0400 Received: from gateway33.websitewelcome.com ([192.185.145.4]:34255 "EHLO gateway33.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753880AbdKCPrj (ORCPT ); Fri, 3 Nov 2017 11:47:39 -0400 Received: from cm16.websitewelcome.com (cm16.websitewelcome.com [100.42.49.19]) by gateway33.websitewelcome.com (Postfix) with ESMTP id E09DA17A45E for ; Fri, 3 Nov 2017 10:47:37 -0500 (CDT) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id AeC1e03mERtUXAeC1eBpke; Fri, 03 Nov 2017 10:47:37 -0500 Received: from gator4166.hostgator.com ([108.167.133.22]:57365) by gator4166.hostgator.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.87) (envelope-from ) id 1eAeC1-001zxo-Ib; Fri, 03 Nov 2017 10:47:37 -0500 Received: from 189.145.38.148 ([189.145.38.148]) by gator4166.hostgator.com (Horde Framework) with HTTPS; Fri, 03 Nov 2017 10:47:37 -0500 Date: Fri, 03 Nov 2017 10:47:37 -0500 Message-ID: <20171103104737.Horde.jIupkyXRbKxDR--eHgm0-aF@gator4166.hostgator.com> From: "Gustavo A. R. Silva" To: Wim Van Sebroeck Cc: Guenter Roeck , 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> In-Reply-To: <20171103150423.GA10138@infomag.iguana.be> 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: 1eAeC1-001zxo-Ib X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: gator4166.hostgator.com [108.167.133.22]:57365 X-Source-Auth: garsilva@embeddedor.com X-Email-Count: 1 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 Hi Wim, Quoting Wim Van Sebroeck : > 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 } ? > Yep, you are right. I'll fix that. Thank you! -- Gustavo A. R. Silva > Kind regards, > Wim. From 1583058248732703967@xxx Fri Nov 03 15:13:13 +0000 2017 X-GM-THRID: 1583056957567251846 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread