Commit 00c5794d authored by Jesper Nilsson's avatar Jesper Nilsson

CRISv32: Avoid warning of unused variable

Avoids the warning about:
warning: 'bite_in_progress' defined but not used [-Wunused-variable]

Variable is only used if the Kconfig CONFIG_ETRAX_WATCHDOG_NICE_DOGGY
is set.
Signed-off-by: default avatarJesper Nilsson <jesper.nilsson@axis.com>
parent 134115cd
...@@ -107,8 +107,10 @@ static short int watchdog_key = 42; /* arbitrary 7 bit number */ ...@@ -107,8 +107,10 @@ static short int watchdog_key = 42; /* arbitrary 7 bit number */
* is used though, so set this really low. */ * is used though, so set this really low. */
#define WATCHDOG_MIN_FREE_PAGES 8 #define WATCHDOG_MIN_FREE_PAGES 8
#if defined(CONFIG_ETRAX_WATCHDOG_NICE_DOGGY)
/* for reliable NICE_DOGGY behaviour */ /* for reliable NICE_DOGGY behaviour */
static int bite_in_progress; static int bite_in_progress;
#endif
void reset_watchdog(void) void reset_watchdog(void)
{ {
...@@ -155,7 +157,9 @@ void handle_watchdog_bite(struct pt_regs *regs) ...@@ -155,7 +157,9 @@ void handle_watchdog_bite(struct pt_regs *regs)
nmi_enter(); nmi_enter();
oops_in_progress = 1; oops_in_progress = 1;
#if defined(CONFIG_ETRAX_WATCHDOG_NICE_DOGGY)
bite_in_progress = 1; bite_in_progress = 1;
#endif
printk(KERN_WARNING "Watchdog bite\n"); printk(KERN_WARNING "Watchdog bite\n");
/* Check if forced restart or unexpected watchdog */ /* Check if forced restart or unexpected watchdog */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment