[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [linux-2.6.18-xen] use global sys_reboot() declaration


  • To: xen-changelog@xxxxxxxxxxxxxxxxxxx
  • From: Xen patchbot-linux-2.6.18-xen <patchbot@xxxxxxx>
  • Date: Mon, 16 Jun 2014 14:22:02 +0000
  • Delivery-date: Mon, 16 Jun 2014 14:22:08 +0000
  • List-id: "Change log for Mercurial \(receive only\)" <xen-changelog.lists.xen.org>

# 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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.