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-changelog

[Xen-changelog] [linux-2.6.18-xen] xen sysfs: Fix build when kexec suppo

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [linux-2.6.18-xen] xen sysfs: Fix build when kexec support is not configured.
From: "Xen patchbot-linux-2.6.18-xen" <patchbot-linux-2.6.18-xen@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 17 Jun 2008 07:00:09 -0700
Delivery-date: Tue, 17 Jun 2008 07:00:10 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1213695122 -3600
# Node ID b5ca56b48581e3e8ffc659d78f4aa725082c974c
# Parent  4b600eae1fb799b295c7f20641bdeb4dd5ee0578
xen sysfs: Fix build when kexec support is not configured.
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 drivers/xen/core/xen_sysfs.c |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletion(-)

diff -r 4b600eae1fb7 -r b5ca56b48581 drivers/xen/core/xen_sysfs.c
--- a/drivers/xen/core/xen_sysfs.c      Tue Jun 17 09:37:36 2008 +0100
+++ b/drivers/xen/core/xen_sysfs.c      Tue Jun 17 10:32:02 2008 +0100
@@ -335,6 +335,8 @@ static void xen_properties_destroy(void)
                           &xen_properties_group);
 }
 
+#ifdef CONFIG_KEXEC
+
 static ssize_t vmcoreinfo_show(struct hyp_sysfs_attr *attr, char *page)
 {
        return sprintf(page, "%lx %zx\n",
@@ -345,13 +347,21 @@ HYPERVISOR_ATTR_RO(vmcoreinfo);
 
 static int __init xen_sysfs_vmcoreinfo_init(void)
 {
-       return sysfs_create_file(&hypervisor_subsys.kset.kobj, 
&vmcoreinfo_attr.attr);
+       return sysfs_create_file(&hypervisor_subsys.kset.kobj,
+                                &vmcoreinfo_attr.attr);
 }
 
 static void xen_sysfs_vmcoreinfo_destroy(void)
 {
        sysfs_remove_file(&hypervisor_subsys.kset.kobj, &vmcoreinfo_attr.attr);
 }
+
+#else
+
+#define xen_sysfs_vmcoreinfo_init()    0
+#define xen_sysfs_vmcoreinfo_destroy() ((void)0)
+
+#endif
 
 static int __init hyper_sysfs_init(void)
 {

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [linux-2.6.18-xen] xen sysfs: Fix build when kexec support is not configured., Xen patchbot-linux-2.6.18-xen <=