diff options
| author | Guenter Roeck <[email protected]> | 2019-05-08 00:43:03 +0000 |
|---|---|---|
| committer | Wim Van Sebroeck <[email protected]> | 2019-05-08 08:33:59 +0000 |
| commit | a9f0bda567e32a2b44165b067adfc4a4f56d1815 (patch) | |
| tree | ca443725b2e580f2ea8b9acae6845c3f880f40d6 /lib/memory-notifier-error-inject.c | |
| parent | watchdog: stm32: add dynamic prescaler support (diff) | |
| download | kernel-a9f0bda567e32a2b44165b067adfc4a4f56d1815.tar.gz kernel-a9f0bda567e32a2b44165b067adfc4a4f56d1815.zip | |
watchdog: Enforce that at least one pretimeout governor is enabled
Since commit "watchdog: Use depends instead of select for pretimeout
governors", it was possible to enable pretimeout governors but keep all
of them disabled. Doing this results in the following build failure.
../drivers/watchdog/watchdog_pretimeout.c:
In function ‘watchdog_register_governor’:
../drivers/watchdog/watchdog_pretimeout.c:139:26: error:
‘WATCHDOG_PRETIMEOUT_DEFAULT_GOV’ undeclared
if (!strncmp(gov->name, WATCHDOG_PRETIMEOUT_DEFAULT_GOV,
Since it does not make sense to enable pretimeout support but disable
all pretimeout governors, enforce that at least one of them is always
enabled.
Fixes: f627ac0e12cd ("watchdog: Use depends instead of select for pretimeout governors")
Reported-by: Randy Dunlap <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
Signed-off-by: Wim Van Sebroeck <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions
