302-v5.16-watchdog-bcm63xx_wdt-fix-fallthrough-warning.patch 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. From ee1a0696934a8b77a6a2098f92832c46d34ec5da Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <[email protected]>
  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. This fixes:
  9. drivers/watchdog/bcm63xx_wdt.c: In function 'bcm63xx_wdt_ioctl':
  10. drivers/watchdog/bcm63xx_wdt.c:208:17: warning: this statement may fall through [-Wimplicit-fallthrough=]
  11. Signed-off-by: Rafał Miłecki <[email protected]>
  12. Reviewed-by: Florian Fainelli <[email protected]>
  13. Reviewed-by: Guenter Roeck <[email protected]>
  14. Link: https://lore.kernel.org/r/[email protected]
  15. Signed-off-by: Guenter Roeck <[email protected]>
  16. Signed-off-by: Wim Van Sebroeck <[email protected]>
  17. ---
  18. drivers/watchdog/bcm63xx_wdt.c | 2 ++
  19. 1 file changed, 2 insertions(+)
  20. --- a/drivers/watchdog/bcm63xx_wdt.c
  21. +++ b/drivers/watchdog/bcm63xx_wdt.c
  22. @@ -207,6 +207,8 @@ static long bcm63xx_wdt_ioctl(struct fil
  23. bcm63xx_wdt_pet();
  24. + fallthrough;
  25. +
  26. case WDIOC_GETTIMEOUT:
  27. return put_user(wdt_time, p);