timers/watchdog: fix build warning

drivers/timers/watchdog.c:57:5: warning: "CONFIG_WATCHDOG_AUTOMONITOR_PING_INTERVAL" is not defined, evaluates to 0 [-Wundef]
   57 |     CONFIG_WATCHDOG_AUTOMONITOR_PING_INTERVAL)
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: hejianliang3 <hejianliang3@xiaomi.com>
Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
hejianliang3 2022-04-12 15:53:06 +08:00 committed by Alin Jerpelea
parent 031c89db89
commit e88a49007d
1 changed files with 3 additions and 0 deletions

View File

@ -53,6 +53,8 @@
#define WATCHDOG_AUTOMONITOR_TIMEOUT_MSEC \
(1000 * CONFIG_WATCHDOG_AUTOMONITOR_TIMEOUT)
#if defined(CONFIG_WATCHDOG_AUTOMONITOR_BY_TIMER) || \
defined(CONFIG_WATCHDOG_AUTOMONITOR_BY_WORKER)
#if (CONFIG_WATCHDOG_AUTOMONITOR_TIMEOUT == \
CONFIG_WATCHDOG_AUTOMONITOR_PING_INTERVAL)
#define WATCHDOG_AUTOMONITOR_PING_INTERVAL \
@ -61,6 +63,7 @@
#define WATCHDOG_AUTOMONITOR_PING_INTERVAL \
SEC2TICK(CONFIG_WATCHDOG_AUTOMONITOR_PING_INTERVAL)
#endif
#endif
#endif