|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [linux-2.6.18-xen] use global sys_reboot() declaration
# HG changeset patch
# User Jan Beulich <jbeulich@xxxxxxxx>
# Date 1402927893 -7200
# Node ID 0251893a7d5a99e7574e7fd645cc126b2f641103
# Parent e2384c98bb97ba12cbe0da3f661ec71dcb7748c3
use global sys_reboot() declaration
Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
---
diff -r e2384c98bb97 -r 0251893a7d5a drivers/xen/core/reboot.c
--- a/drivers/xen/core/reboot.c Mon Jun 16 16:00:35 2014 +0200
+++ b/drivers/xen/core/reboot.c Mon Jun 16 16:11:33 2014 +0200
@@ -4,6 +4,7 @@
#include <linux/unistd.h>
#include <linux/module.h>
#include <linux/reboot.h>
+#include <linux/syscalls.h>
#include <linux/sysrq.h>
#include <asm/hypervisor.h>
#include <xen/xenbus.h>
@@ -46,9 +47,6 @@ static int shutdown_process(void *__unus
"PATH=/sbin:/usr/sbin:/bin:/usr/bin", NULL };
static char *poweroff_argv[] = { "/sbin/poweroff", NULL };
- extern asmlinkage long sys_reboot(int magic1, int magic2,
- unsigned int cmd, void *arg);
-
if ((shutting_down == SHUTDOWN_POWEROFF) ||
(shutting_down == SHUTDOWN_HALT)) {
if (call_usermodehelper("/sbin/poweroff", poweroff_argv,
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |