From: "Jan Beulich" Subject: [PATCH] bogus definitions and declarations in kexec.h Date: Wed, 19 Nov 2008 08:53:50 +0000 Message-ID: <4923E22E.76E4.0078.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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 --- 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; =20 +#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)=3D%lu\n", #name, #alias, \ (unsigned long)offsetof(struct name, field)) =20 +#endif /* VMCOREINFO_* */ + #endif /* _XEN_PUBLIC_KEXEC_H */ =20 /*