WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] small fix to reboot.c

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] small fix to reboot.c
From: "Li, Xin B" <xin.b.li@xxxxxxxxx>
Date: Fri, 5 Aug 2005 17:34:38 +0800
Delivery-date: Fri, 05 Aug 2005 09:33:10 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcWZoOZitXdZtVUpSZqz+5tYQBSueA==
Thread-topic: [PATCH] small fix to reboot.c
small fix to reboot.c

Keir, I'm not sure why we have a errno defined at the top of reboot.c,
but it's never used in this file.
Another fix is err2 is only needed when CONFIG_MAGIC_SYSRQ is defined.
-Xin

Signed-off-by: Li Xin <xin.b.li@xxxxxxxxx>


diff -r 9faafa21bf98 linux-2.6-xen-sparse/arch/xen/kernel/reboot.c
--- a/linux-2.6-xen-sparse/arch/xen/kernel/reboot.c     Fri Aug  5
09:04:01 2005
+++ b/linux-2.6-xen-sparse/arch/xen/kernel/reboot.c     Fri Aug  5
17:23:23 2005
@@ -1,6 +1,4 @@
-
 #define __KERNEL_SYSCALLS__
-static int errno;
 #include <linux/errno.h>
 #include <linux/version.h>
 #include <linux/kernel.h>
@@ -309,7 +307,10 @@
                                   unsigned long event,
                                   void *data)
 {
-    int err1=0, err2=0;
+    int err1=0;
+#ifdef CONFIG_MAGIC_SYSRQ
+    int err2=0;
+#endif
 
     down(&xenbus_lock);
     err1 = register_xenbus_watch(&shutdown_watch);

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] small fix to reboot.c, Li, Xin B <=