On 28/02/17 10:34, Juergen Gross wrote: > In stubdom environment __XEN_INTERFACE_VERSION__ is sometimes defined > on the command line of the build instruction. This conflicts with > xen-compat.h defining it unconditionally if __XEN__ or __XEN_TOOLS__ > is set. > > Just use #undef in this case to avoid the resulting warning. > > Signed-off-by: Juergen Gross <jgr...@suse.com>
Reviewed-by: Andrew Cooper <andrew.coop...@citrix.com> > --- > xen/include/public/xen-compat.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/xen/include/public/xen-compat.h b/xen/include/public/xen-compat.h > index b673653..9453439 100644 > --- a/xen/include/public/xen-compat.h > +++ b/xen/include/public/xen-compat.h > @@ -31,6 +31,7 @@ > > #if defined(__XEN__) || defined(__XEN_TOOLS__) > /* Xen is built with matching headers and implements the latest interface. */ > +#undef __XEN_INTERFACE_VERSION__ > #define __XEN_INTERFACE_VERSION__ __XEN_LATEST_INTERFACE_VERSION__ > #elif !defined(__XEN_INTERFACE_VERSION__) > /* Guests which do not specify a version get the legacy interface. */ _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel