x86/svm: Rework VMCB_ACCESSORS() to use a plain type name
PATCH 1/1 x86/svm: Rework VMCB_ACCESSORS() to use a plain type name
This avoids having a function call in a typeof() expression.
No functional change.
Signed-off-by Andrew Cooper <[email protected]>
---
CC: Jan Beulich <[email protected]>
CC: Roger Pau Monné <[email protected]>
--- xen/arch/x86/include/asm/hvm/svm/vmcb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
xen/arch/x86/include/asm/hvm/svm/vmcb.h +1 -1
@@ -630,7 +630,7 @@ vmcb_get_ ## name(const struct vmcb_struct *vmcb) \ }#define VMCB_ACCESSORS (name, cleanbit) \ - VMCB_ACCESSORS_(name, typeof(alloc_vmcb()->_ ## name), cleanbit) + VMCB_ACCESSORS_(name, typeof(((struct vmcb_struct){})._ ## name), cleanbit) VMCB_ACCESSORS(cr_intercepts, intercepts)VMCB_ACCESSORS (dr_intercepts, intercepts)
base-commit: 2d93f78bfe25f695d8ffb61d110da9df293ed71b
prerequisite-patch-id: 4f38737ad5ea15b0341664ee1c6b96d0d00b6700
Signature · 1 line
2.30.2
Quoted 5 lines · Andrew Cooper
This avoids having a function call in a
typeof()expression.No functional change.
Signed-off-by Andrew Cooper <[email protected]>
Acked-by Jan Beulich <[email protected]>
Quoted 9 lines · Jan Beulich
Quoted 5 lines · Andrew Cooper
This avoids having a function call in a
typeof()expression.No functional change.
Signed-off-by Andrew Cooper <[email protected]>Acked-by Jan Beulich <[email protected]>
Release-Acked-by Oleksii Kurochko <[email protected]>
~ Oleksii