diff options
author | Ben Dooks <ben.dooks@codethink.co.uk> | 2023-11-22 09:51:18 +0100 |
---|---|---|
committer | Wim Van Sebroeck <wim@linux-watchdog.org> | 2023-12-17 16:14:24 +0100 |
commit | f77999887235f8c378af343df11a6bcedda5b284 (patch) | |
tree | 6170b5dfe7f780e5bf16e8380a678d4adc3af437 /drivers/extcon | |
parent | watchdog: mediatek: mt7988: add wdt support (diff) | |
download | linux-f77999887235f8c378af343df11a6bcedda5b284.tar.xz linux-f77999887235f8c378af343df11a6bcedda5b284.zip |
watchdog: starfive: add lock annotations to fix context imbalances
Add the necessary __acquires() and __releases() to the functions
that take and release the wdt lock to avoid the following sparse
warnings:
drivers/watchdog/starfive-wdt.c:204:13: warning: context imbalance in 'starfive_wdt_unlock' - wrong count at exit
drivers/watchdog/starfive-wdt.c:212:9: warning: context imbalance in 'starfive_wdt_lock' - unexpected unlock
Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20231122085118.177589-1-ben.dooks@codethink.co.uk
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
Diffstat (limited to 'drivers/extcon')
0 files changed, 0 insertions, 0 deletions