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] bogus definitions and declarations in kexec.h

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] bogus definitions and declarations in kexec.h
From: "Jan Beulich" <jbeulich@xxxxxxxxxx>
Date: Wed, 19 Nov 2008 08:53:50 +0000
Delivery-date: Wed, 19 Nov 2008 00:53:27 -0800
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
These definitions (and in particular the function declarations) don't
really belong in the interface headers - each OS ought to define what
it needs on its own. They conflict with definitions in Linux 2.6.24+,
but in order to not break the build for older Linux this patch just
makes them conditional (which is sufficient to resolve the conflict
as long as the Xen header is always included after the Linux one).

Along with the patch goes the request to sync the linux tree's public
headers once again.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>

--- a/xen/include/public/kexec.h
+++ b/xen/include/public/kexec.h
@@ -155,6 +155,8 @@ typedef struct xen_kexec_range {
     unsigned long start;
 } xen_kexec_range_t;
 
+#ifndef VMCOREINFO_BYTES
+
 /* vmcoreinfo stuff */
 #define VMCOREINFO_BYTES           (4096)
 #define VMCOREINFO_NOTE_NAME       "VMCOREINFO_XEN"
@@ -176,6 +178,8 @@ void vmcoreinfo_append_str(const char *f
        vmcoreinfo_append_str("OFFSET(%s.%s)=%lu\n", #name, #alias, \
                              (unsigned long)offsetof(struct name, field))
 
+#endif /* VMCOREINFO_* */
+
 #endif /* _XEN_PUBLIC_KEXEC_H */
 
 /*




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

<Prev in Thread] Current Thread [Next in Thread>