Received: by 10.223.164.221 with SMTP id h29csp2528683wrb; Thu, 2 Nov 2017 12:29:19 -0700 (PDT) X-Google-Smtp-Source: ABhQp+TvqXs1sDwpra0DE9x0y2eLwvPqHirNbSLHbt+cvaIiLJbVj1aNuCIHsodar92BXBhkAigi X-Received: by 10.99.116.18 with SMTP id p18mr4716929pgc.269.1509650959011; Thu, 02 Nov 2017 12:29:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509650958; cv=none; d=google.com; s=arc-20160816; b=jSr6OgQXkr9/jZu5boVt3jBulwAMcqBKSpW0YWZHx8pGiSjj6QeuBvhFIeg3fCo93f Ttwmb+9pbXNZONdG9Xu0BMZ8QuAOUuChj6o9ovHwtBGr4xrWjw6I2lFlsA89a5bXk1fO SdfqAZjL78RRU10+VlweIwxiq8tNq/eBe0o2HLB0tgOVyfL1RpSrnOWjDkRy2X4N/YZX J4cbxL/XAxmL1T5a+uxRQl8z3GpqnN9wN9aci1d2WcTBfqzkML0zp/21DAHq1v0klpqi 3tli5ZJh8bNAOyDiruBvkuOpXnfm17H7VtZTbpe7ICfmP4xOOGvmTVw0MfRHP8mpLvsT ighw== 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 :arc-authentication-results; bh=Y3ltW3Sc9fIM7g4Bc9IILKEhWnKu+jFFJdBeUFOYjo0=; b=RKtlCxp9wwvhS21UIi79HIDk+MDZ+UZXs+Dv2PbpFIES/OvlrSBcyPUphmNBuVNSRe Evrs9AaAh4WVmxvy+WJ5I51ZKRHCJGc47jshfxbLL/ci3V0vinwJUrT3kqFdNy/9IS// WGMSXQ+VYWnE6H4Zdflhu1Kq2f1suJIAl0a7NSa7gQtV28gz71eKpySDe5ztRECyOCke Bs3j1IHaQ+vsaRu8UyqGuZKZgz8ep2aeJDi7N0T5SbXRQOK8jUQi7ffVnstFNecBVkC2 nHWAZPkeC8nkMNBItlApEhMREbap136+MAAWH4tbftyAmPt+djugtHfpzXzKrNk/qUuI k0Rw== 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 h1si2822515plh.3.2017.11.02.12.29.06; Thu, 02 Nov 2017 12:29:18 -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 S964781AbdKBT2U (ORCPT + 97 others); Thu, 2 Nov 2017 15:28:20 -0400 Received: from gateway33.websitewelcome.com ([192.185.145.221]:16940 "EHLO gateway33.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934065AbdKBT2S (ORCPT ); Thu, 2 Nov 2017 15:28:18 -0400 Received: from cm15.websitewelcome.com (cm15.websitewelcome.com [100.42.49.9]) by gateway33.websitewelcome.com (Postfix) with ESMTP id 50C8D82E7A for ; Thu, 2 Nov 2017 14:28:18 -0500 (CDT) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id ALA2efl2n5b6TALA2eudz4; Thu, 02 Nov 2017 14:28:18 -0500 Received: from [189.145.38.148] (port=39754 helo=embeddedor) by gator4166.hostgator.com with esmtpa (Exim 4.87) (envelope-from ) id 1eALA1-0012zY-U2; Thu, 02 Nov 2017 14:28:17 -0500 Date: Thu, 2 Nov 2017 14:28:17 -0500 From: "Gustavo A. R. Silva" To: Wim Van Sebroeck , Guenter Roeck Cc: linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" Subject: [PATCH] watchdog: f71808e_wdt: mark expected switch fall-throughs Message-ID: <20171102192817.GA20042@embeddedor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) 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.145.38.148 X-Source-L: No X-Exim-ID: 1eALA1-0012zY-U2 X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (embeddedor) [189.145.38.148]:39754 X-Source-Auth: garsilva@embeddedor.com X-Email-Count: 12 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. 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/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); -- 2.7.4 From 1583471222343117022@xxx Wed Nov 08 04:37:15 +0000 2017 X-GM-THRID: 1583323619223233215 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread