kernel: bump 5.15 to 5.15.132
[openwrt/openwrt.git] / target / linux / generic / backport-5.15 / 302-v5.16-watchdog-bcm63xx_wdt-fix-fallthrough-warning.patch
1 From ee1a0696934a8b77a6a2098f92832c46d34ec5da Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
3 Date: Wed, 27 Oct 2021 14:31:35 +0200
4 Subject: [PATCH] watchdog: bcm63xx_wdt: fix fallthrough warning
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 This fixes:
10 drivers/watchdog/bcm63xx_wdt.c: In function 'bcm63xx_wdt_ioctl':
11 drivers/watchdog/bcm63xx_wdt.c:208:17: warning: this statement may fall through [-Wimplicit-fallthrough=]
12
13 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
14 Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
15 Reviewed-by: Guenter Roeck <linux@roeck-us.net>
16 Link: https://lore.kernel.org/r/20211027123135.27458-1-zajec5@gmail.com
17 Signed-off-by: Guenter Roeck <linux@roeck-us.net>
18 Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
19 ---
20 drivers/watchdog/bcm63xx_wdt.c | 2 ++
21 1 file changed, 2 insertions(+)
22
23 --- a/drivers/watchdog/bcm63xx_wdt.c
24 +++ b/drivers/watchdog/bcm63xx_wdt.c
25 @@ -207,6 +207,8 @@ static long bcm63xx_wdt_ioctl(struct fil
26
27 bcm63xx_wdt_pet();
28
29 + fallthrough;
30 +
31 case WDIOC_GETTIMEOUT:
32 return put_user(wdt_time, p);
33