Received: by 10.223.164.221 with SMTP id h29csp198099wrb; Fri, 3 Nov 2017 07:45:31 -0700 (PDT) X-Google-Smtp-Source: ABhQp+TCF4aebn588QghlNNZ0gpig4kWSvRWvfivadatD0NO7i71h3RiHHyaMYPC6MlMStKa8rg/ X-Received: by 10.159.207.149 with SMTP id z21mr6886805plo.258.1509720331333; Fri, 03 Nov 2017 07:45:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509720331; cv=none; d=google.com; s=arc-20160816; b=q0kL7iAeKSZfe/M2cR5a43Z1/6WcnbaHtZNMPgPz8fYgdfbs8Z+pS5TH4KkK4uNl41 vmAuwvmq4IH8Kx0v9tj9BARUn0dMfNfL3OdnPRhInJQHAuoALcYG/esFlBdX7Gh/MdxT hAtUMD4XN10GO7mdY3BaUSwdE6xFUHo3PjfnYa2uctjhnyx+XsvS6UZcGDYpGTysURKm 8fQTH8RfyqxTZNbnGyKiYNAV2HUoF/Cr9SgkbuyNX+QTBs/EWbpUBPgVuzNxm+oSL6+5 zVebHNmFtvZgbE3myrkfUg2EgmNhcj19K2jnle3Je8HSdS0xhjEuCmFlyKS/LFyAa3tz pLAA== 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=drrqFmhBTN1m1uM2cbQHrC3AbUUWC1uQxJ69a5njB94=; b=0pjYLsUuY9/PEYmPB3gHuGCdueWx06hP14HNcNbNL+SMViYJX9SYvOJ/pJsZdqKSgJ FcyfeOTmicicsOqj/+vMsEQFdmOjdUDljrC3W4c/BtlOqZA7VpR0bwJCrFFYF2IncHew yzbXwR45CK/e7wnPB9JqeQLTzU6RzGRvmQbjDvPEADuUwvcIXIEY6JaVw1UCCTcKjxeX kBlVHxi3Q0wrUAAbm78dS6GCknv7T0+KdHn08ljIXhMk7KzO+cuZ3+PB7P1NQ4nL0xzF bg8cMCjvHYb1B/DGcnuJU3vMDb3XJb+CANH9rXcqdBnELv17PeA/UsqE1mZD8RVp34w/ xVJQ== 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 f89si5173207plf.562.2017.11.03.07.45.18; Fri, 03 Nov 2017 07:45:31 -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 S1754539AbdKCOob (ORCPT + 95 others); Fri, 3 Nov 2017 10:44:31 -0400 Received: from gateway32.websitewelcome.com ([192.185.145.182]:47177 "EHLO gateway32.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751669AbdKCOo2 (ORCPT ); Fri, 3 Nov 2017 10:44:28 -0400 Received: from cm13.websitewelcome.com (cm13.websitewelcome.com [100.42.49.6]) by gateway32.websitewelcome.com (Postfix) with ESMTP id 72B3D6AEF for ; Fri, 3 Nov 2017 09:44:26 -0500 (CDT) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id AdCseo5CNrWstAdCseXJrR; Fri, 03 Nov 2017 09:44:26 -0500 Received: from gator4166.hostgator.com ([108.167.133.22]:54375) by gator4166.hostgator.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.87) (envelope-from ) id 1eAdCs-001BHi-4p; Fri, 03 Nov 2017 09:44:26 -0500 Received: from 189.145.38.148 ([189.145.38.148]) by gator4166.hostgator.com (Horde Framework) with HTTPS; Fri, 03 Nov 2017 09:44:26 -0500 Date: Fri, 03 Nov 2017 09:44:26 -0500 Message-ID: <20171103094426.Horde.P3wnwgmj4SNV10vNNQ6Ohyp@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: watchdog: f71808e_wdt: mark expected switch fall-throughs References: <20171102192817.GA20042@embeddedor.com> <20171103133414.GA14463@roeck-us.net> In-Reply-To: <20171103133414.GA14463@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: 1eAdCs-001BHi-4p X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: gator4166.hostgator.com [108.167.133.22]:54375 X-Source-Auth: garsilva@embeddedor.com X-Email-Count: 11 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 Thu, Nov 02, 2017 at 02:28:17PM -0500, Gustavo A. R. Silva wrote: >> 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 > > Reviewed-by: Guenter Roeck > Thanks! -- Gustavo A. R. Silva >> --- >> drivers/watchdog/f71808e_wdt.c | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) >> >> diff --git a/drivers/watchdog/f71808e_wdt.c b/drivers/watchdog/f71808e_wdt.c >> index 8658dba..e0678c1 100644 >> --- a/drivers/watchdog/f71808e_wdt.c >> +++ b/drivers/watchdog/f71808e_wdt.c >> @@ -627,7 +627,7 @@ static long watchdog_ioctl(struct file *file, >> unsigned int cmd, >> >> if (new_options & WDIOS_ENABLECARD) >> return watchdog_start(); >> - >> + /* fall through */ >> >> case WDIOC_KEEPALIVE: >> watchdog_keepalive(); >> @@ -641,7 +641,7 @@ static long watchdog_ioctl(struct file *file, >> unsigned int cmd, >> return -EINVAL; >> >> watchdog_keepalive(); >> - /* Fall */ >> + /* fall through */ >> >> case WDIOC_GETTIMEOUT: >> return put_user(watchdog.timeout, uarg.i); From 1583052122958947706@xxx Fri Nov 03 13:35:51 +0000 2017 X-GM-THRID: 1582983764151895636 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread