diff options
| author | Arnd Bergmann <[email protected]> | 2017-12-06 22:02:37 +0100 |
|---|---|---|
| committer | Wim Van Sebroeck <[email protected]> | 2017-12-28 20:45:55 +0100 |
| commit | aeebc6ba88ba3758ad95467ff6191fabf2074c13 (patch) | |
| tree | 1583e01d0bd697768f4df43842fedd3b75aa7e49 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 13983959e804691b09322c2c8d71cd94f365655f (diff) | |
watchdog: hpwdt: fix unused variable warning
The new hpwdt_my_nmi() function is used conditionally, which produces
a harmless warning in some configurations:
drivers/watchdog/hpwdt.c:478:12: error: 'hpwdt_my_nmi' defined but not used [-Werror=unused-function]
This moves it inside of the #ifdef that protects its caller, to silence
the warning.
Fixes: 621174a92851 ("watchdog: hpwdt: Check source of NMI")
Signed-off-by: Arnd Bergmann <[email protected]>
Reviewed-by: Jerry Hoemann <[email protected]>
Reviewed-by: Guenter Roeck <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
Signed-off-by: Wim Van Sebroeck <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions