summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavo@embeddedor.com>2018-03-27 14:30:41 -0500
committerWim Van Sebroeck <wim@linux-watchdog.org>2018-04-16 10:22:39 +0200
commit3ff0751fa04208459b74cfbe492df79468b8425c (patch)
tree74f13743ae647334b4ebb08e38db94c6e898a209 /drivers
parenta03cc689e5c9d89d500f4a4dae1a81ea512dbb25 (diff)
downloadlinux-stable-3ff0751fa04208459b74cfbe492df79468b8425c.tar.gz
linux-stable-3ff0751fa04208459b74cfbe492df79468b8425c.tar.bz2
linux-stable-3ff0751fa04208459b74cfbe492df79468b8425c.zip
watchdog: w83977f_wdt: Mark expected switch fall-through
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 <gustavo@embeddedor.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/watchdog/w83977f_wdt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/watchdog/w83977f_wdt.c b/drivers/watchdog/w83977f_wdt.c
index 20e2bba10400..672b61a7f9a3 100644
--- a/drivers/watchdog/w83977f_wdt.c
+++ b/drivers/watchdog/w83977f_wdt.c
@@ -427,7 +427,7 @@ static long wdt_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
return -EINVAL;
wdt_keepalive();
- /* Fall */
+ /* Fall through */
case WDIOC_GETTIMEOUT:
return put_user(timeout, uarg.i);