public: drop assembly equates from errno.h again
authorJan Beulich <jbeulich@suse.com>
Tue, 29 Mar 2016 15:17:10 +0000 (17:17 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 29 Mar 2016 15:17:10 +0000 (17:17 +0200)
This wasn't a good idea after all - make them unavailable except for
legacy code using an older interface version.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Tim Deegan <tim@xen.org>
xen/include/public/errno.h
xen/include/public/xen-compat.h

index a0dd0cfd5ba10f1f5dc9d567763b2bdc6c972426..ebb853a9ebe19c88071e3054e75b4031493cf82a 100644 (file)
@@ -32,7 +32,7 @@
 #define XEN_ERRNO(name, value) XEN_##name = value,
 enum xen_errno {
 
-#else /* !__ASSEMBLY__ */
+#elif __XEN_INTERFACE_VERSION__ < 0x00040700
 
 #define XEN_ERRNO(name, value) .equ XEN_##name, value
 
index 1e62dc12d0b33f32738033fb9b6d1558bc9c5574..590de76cdc85055f4b6b7f49f9b7f23b499280a9 100644 (file)
@@ -27,7 +27,7 @@
 #ifndef __XEN_PUBLIC_XEN_COMPAT_H__
 #define __XEN_PUBLIC_XEN_COMPAT_H__
 
-#define __XEN_LATEST_INTERFACE_VERSION__ 0x00040600
+#define __XEN_LATEST_INTERFACE_VERSION__ 0x00040700
 
 #if defined(__XEN__) || defined(__XEN_TOOLS__)
 /* Xen is built with matching headers and implements the latest interface. */