watchdog: bcm63xx_wdt: fix fallthrough warning
PATCH 1/1 watchdog: bcm63xx_wdt: fix fallthrough warning
From: Rafał Miłecki <[email protected]>
This fixes:drivers/watchdog/bcm63xx_wdt.c: In function 'bcm63xx_wdt_ioctl':drivers/watchdog/bcm63xx_wdt.c:208:17: warning: this statement may fall through [-Wimplicit-fallthrough=]
--- drivers/watchdog/bcm63xx_wdt.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/watchdog/bcm63xx_wdt.c +2 -0
@@ -207,6 +207,8 @@ static long bcm63xx_wdt_ioctl(struct file *file, unsigned int cmd,bcm63xx_wdt_pet (); + fallthrough; +case WDIOC_GETTIMEOUT :return put_user (wdt_time, p);
Signature · 1 line
2.31.1
Quoted 7 lines · Rafał Miłecki
From: Rafał Miłecki <[email protected]>
This fixes:
drivers/watchdog/bcm63xx_wdt.c: In function 'bcm63xx_wdt_ioctl':drivers/watchdog/bcm63xx_wdt.c:208:17: warning: this statement may fall through [-Wimplicit-fallthrough=]Signed-off-by Rafał Miłecki <[email protected]>
Signature · 1 line
Florian
Quoted 7 lines · Rafał Miłecki
From: Rafał Miłecki <[email protected]>
This fixes:
drivers/watchdog/bcm63xx_wdt.c: In function 'bcm63xx_wdt_ioctl':drivers/watchdog/bcm63xx_wdt.c:208:17: warning: this statement may fall through [-Wimplicit-fallthrough=]Signed-off-by Rafał Miłecki <[email protected]>
[reluctantly]
... because the driver should really be converted to use the watchdog subsystem, by someone with the necessary hardware to test it.
Guenter
Quoted 20 lines
--- drivers/watchdog/bcm63xx_wdt.c | 2 ++ 1 file changed, 2 insertions(+)drivers/watchdog/bcm63xx_wdt.c +2
-0@@ -207,6 +207,8 @@ static long bcm63xx_wdt_ioctl(struct file *file, unsigned int cmd,bcm63xx_wdt_pet (); + fallthrough; +case WDIOC_GETTIMEOUT :return put_user (wdt_time, p);Signature · 1 line
2.31.1
Quoted 7 lines · Guenter Roeck
Quoted 6 lines · Rafał Miłecki
From: Rafał Miłecki <[email protected]>
This fixes:
drivers/watchdog/bcm63xx_wdt.c: In function 'bcm63xx_wdt_ioctl':drivers/watchdog/bcm63xx_wdt.c:208:17: warning: this statement may fall through [-Wimplicit-fallthrough=]
Quoted 8 lines
Quoted 1 line
Signed-off-by Rafał Miłecki <[email protected]>[reluctantly]
Reviewed-by Guenter Roeck <[email protected]>... because the driver should really be converted to use the watchdog subsystem, by someone with the necessary hardware to test it.
The driver should ideally be removed and we should use bcm7038_wdt.c moving forward. Rafal, is this something you can try on 4908?
We would have to pay attention to arch/mips/bcm63xx/dev_wdt.c and introduce a MODULE_DEVICE_TABLE() and platform_device_id so we can key off any BCM63xx-specific behavior.
Signature · 1 line
Florian
Quoted 12 lines · Florian Fainelli
Quoted 11 lines · Guenter Roeck
Quoted 7 lines · Rafał Miłecki
From: Rafał Miłecki <[email protected]>
This fixes:
drivers/watchdog/bcm63xx_wdt.c: In function 'bcm63xx_wdt_ioctl':drivers/watchdog/bcm63xx_wdt.c:208:17: warning: this statement may fall through [-Wimplicit-fallthrough=]Signed-off-by Rafał Miłecki <[email protected]>[reluctantly]
Quoted 7 lines
Quoted 4 lines
Reviewed-by Guenter Roeck <[email protected]>... because the driver should really be converted to use the watchdog subsystem, by someone with the necessary hardware to test it.
The driver should ideally be removed and we should use
bcm7038_wdt.cmoving forward. Rafal, is this something you can try on 4908?
I wasn't sure if I should proceed with bcm63xx_wdt.c or bcm7038_wdt.c so I chose 63xx. Possibly a bad decision, I'm not sure.
I've already bcm63xx_wdt.c changes developed locally to support BCM4908. I just need to add Documentation/dt-bindings/ part. I'll do that tomorrow. Then you can let me know if that's acceptable or should I refactor my changes.
Guenter Roeck
maintainerQuoted 21 lines · Rafał Miłecki
Quoted 12 lines · Florian Fainelli
Quoted 11 lines · Guenter Roeck
Quoted 7 lines · Rafał Miłecki
From: Rafał Miłecki <[email protected]>
This fixes:
drivers/watchdog/bcm63xx_wdt.c: In function 'bcm63xx_wdt_ioctl':drivers/watchdog/bcm63xx_wdt.c:208:17: warning: this statement may fall through [-Wimplicit-fallthrough=]Signed-off-by Rafał Miłecki <[email protected]>[reluctantly]
Quoted 7 lines
Quoted 4 lines
Reviewed-by Guenter Roeck <[email protected]>... because the driver should really be converted to use the watchdog subsystem, by someone with the necessary hardware to test it.
The driver should ideally be removed and we should use
bcm7038_wdt.cmoving forward. Rafal, is this something you can try on 4908?
Quoted 7 lines
I wasn't sure if I should proceed with
bcm63xx_wdt.corbcm7038_wdt.cso I chose 63xx. Possibly a bad decision, I'm not sure.I've already
bcm63xx_wdt.cchanges developed locally to support BCM4908. I just need to addDocumentation/dt-bindings/part. I'll do that tomorrow. Then you can let me know if that's acceptable or should I refactor my changes.
I am not sure if that answers your question, but unless you rework the bcm63xx driver to use the watchdog subsystem (which would make it almost identical to the bcm7038 driver), I am not going to accept functional changes to it.
Guenter