]> git.baikalelectronics.ru Git - kernel.git/commit
watchdog: wdt_pci: fix build error if define SOFTWARE_REBOOT
authorShile Zhang <shile.zhang@nokia.com>
Mon, 10 Apr 2017 14:39:33 +0000 (22:39 +0800)
committerWim Van Sebroeck <wim@iguana.be>
Thu, 18 May 2017 16:51:44 +0000 (18:51 +0200)
commit4b0fee59c667d7a673a51a651d89f53a0bc3eddc
tree21d6197ab7e7fa5eccead4a71df54b6257b6c8cf
parent34d3a5f9d73824767cec6e5f66dca5fd08787499
watchdog: wdt_pci: fix build error if define SOFTWARE_REBOOT

To fix following build error when SOFTWARE_REBOOT is defined:

  CC [M]  driver/watchdog/wdt_pci.o
driver/watchdog/wdt_pci.c: In function 'wdtpci_interrupt':
driver/watchdog/wdt_pci.c:335:3: error: too many arguments to function 'emergency_restart'
   emergency_restart(NULL);
   ^
In file included from driver/watchdog/wdt_pci.c:51:0:
include/linux/reboot.h:80:13: note: declared here
 extern void emergency_restart(void);
             ^

Signed-off-by: Shile Zhang <shile.zhang@nokia.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/wdt_pci.c