Skip to content

Commit fc0c5db

Browse files
Tom RixWim Van Sebroeck
authored andcommitted
watchdog: s3c2410: remove unused freq_to_wdt and s3c2410wdt_is_running functions
clang with W=1 reports drivers/watchdog/s3c2410_wdt.c:311:35: error: unused function 'freq_to_wdt' [-Werror,-Wunused-function] static inline struct s3c2410_wdt *freq_to_wdt(struct notifier_block *nb) ^ drivers/watchdog/s3c2410_wdt.c:446:19: error: unused function 's3c2410wdt_is_running' [-Werror,-Wunused-function] static inline int s3c2410wdt_is_running(struct s3c2410_wdt *wdt) ^ These functions are not used, so remove them. Signed-off-by: Tom Rix <trix@redhat.com> Reviewed-by: Andi Shyti <andi.shyti@kernel.org> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Link: https://lore.kernel.org/r/20230321183439.1826823-1-trix@redhat.com Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
1 parent bfeaadb commit fc0c5db

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

drivers/watchdog/s3c2410_wdt.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -308,11 +308,6 @@ static inline unsigned int s3c2410wdt_max_timeout(struct s3c2410_wdt *wdt)
308308
/ S3C2410_WTCON_MAXDIV);
309309
}
310310

311-
static inline struct s3c2410_wdt *freq_to_wdt(struct notifier_block *nb)
312-
{
313-
return container_of(nb, struct s3c2410_wdt, freq_transition);
314-
}
315-
316311
static int s3c2410wdt_disable_wdt_reset(struct s3c2410_wdt *wdt, bool mask)
317312
{
318313
const u32 mask_val = BIT(wdt->drv_data->mask_bit);
@@ -443,11 +438,6 @@ static int s3c2410wdt_start(struct watchdog_device *wdd)
443438
return 0;
444439
}
445440

446-
static inline int s3c2410wdt_is_running(struct s3c2410_wdt *wdt)
447-
{
448-
return readl(wdt->reg_base + S3C2410_WTCON) & S3C2410_WTCON_ENABLE;
449-
}
450-
451441
static int s3c2410wdt_set_heartbeat(struct watchdog_device *wdd,
452442
unsigned int timeout)
453443
{

0 commit comments

Comments
 (0)