xen/public: remove some unused defines from xs_wire.h
PATCH 1/1 xen/public: remove some unused defines from xs_wire.h
xs_wire.h contains some defines XS_WRITE_* which seem to be leftovers from some decades ago. They haven't been used in the Xen tree since at least Xen 2.0 and they make no sense anyway.
Remove them, as they seem not to be related to any Xen interface we have today.
--- xen/include/public/io/xs_wire.h | 4 ---- 1 file changed, 4 deletions(-)
xen/include/public/io/xs_wire.h +0 -4
@@ -41,10 +41,6 @@ enum xsd_sockmsg_typeXS_INVALID =0xffff /* Guaranteed to remain an invalid type */ }; -#define XS_WRITE_NONE "NONE" -#define XS_WRITE_CREATE "CREATE" -#define XS_WRITE_CREATE_EXCL "CREATE|EXCL" -/* We hand errors as strings, for portability. */ struct xsd_errors {
Signature · 1 line
2.43.0
Quoted 6 lines · Juergen Gross
xs_wire.hcontains some defines XS_WRITE_* which seem to be leftovers from some decades ago. They haven't been used in the Xen tree since at least Xen 2.0 and they make no sense anyway.Remove them, as they seem not to be related to any Xen interface we have today.
How sure are you/we that there are no out-of-tree uses of them? They aren't in e.g. a __XEN_TOOLS__ protected region after all. (I don't mind their removal, but in public headers I think we need to be double careful.)
Jan
Quoted 5 lines · Jan Beulich
Quoted 4 lines · Juergen Gross
xs_wire.hcontains some defines XS_WRITE_* which seem to be leftovers from some decades ago. They haven't been used in the Xen tree since at least Xen 2.0 and they make no sense anyway.
Quoted 7 lines
Quoted 2 lines
Remove them, as they seem not to be related to any Xen interface we have today.
How sure are you/we that there are no out-of-tree uses of them? They aren't in e.g. a
__XEN_TOOLS__protected region after all. (I don't mind their removal, but in public headers I think we need to be double careful.)
The reasoning is all in the commit message: those macros haven't made any sense since ages.
In case someone is using them, the usage is either wrong or not related to Xen. I have checked Mini-OS, Qemu and Linux kernel for uses and didn't find any.
Juergen
Jan Beulich
Acked-byQuoted 9 lines · Jürgen Groß
Quoted 8 lines · Jan Beulich
Quoted 6 lines · Juergen Gross
xs_wire.hcontains some defines XS_WRITE_* which seem to be leftovers from some decades ago. They haven't been used in the Xen tree since at least Xen 2.0 and they make no sense anyway.Remove them, as they seem not to be related to any Xen interface we have today.
Quoted 7 lines
Quoted 4 lines
How sure are you/we that there are no out-of-tree uses of them? They aren't in e.g. a
__XEN_TOOLS__protected region after all. (I don't mind their removal, but in public headers I think we need to be double careful.)The reasoning is all in the commit message: those macros haven't made any sense since ages.
Well, the reason I asked is that I consider "makes sense" as pretty subjective.
Quoted 3 lines
In case someone is using them, the usage is either wrong or not related to Xen. I have checked Mini-OS, Qemu and Linux kernel for uses and didn't find any.
Okay, probably fair enough then:
Jan