Skip to content

Commit

Permalink
watchdog: wdt_pci: fix build error if define SOFTWARE_REBOOT
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Shile Zhang authored and Wim Van Sebroeck committed May 18, 2017
1 parent 0ddad77 commit 455a9a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/watchdog/wdt_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ static irqreturn_t wdtpci_interrupt(int irq, void *dev_id)
pr_crit("Would Reboot\n");
#else
pr_crit("Initiating system reboot\n");
emergency_restart(NULL);
emergency_restart();
#endif
#else
pr_crit("Reset in 5ms\n");
Expand Down

0 comments on commit 455a9a6

Please sign in to comment.