diff mbox series

x86emul: mark new "cp" local var maybe-unused

Message ID ab5060f0-488f-40ff-a726-bdece05b0866@suse.com (mailing list archive)
State New
Headers show
Series x86emul: mark new "cp" local var maybe-unused | expand

Commit Message

Jan Beulich Sept. 6, 2024, 10:38 a.m. UTC
Just for the sake of the 32-bit build of the test harness. This wants
reverting once unconditional uses of the variable appear (AMX, AVX10).

Fixes: b20e3fbc3ec9 ("x86emul: introduce a struct cpu_policy * local in x86_emulate()")
Signed-off-by: Jan Beulich <jbeulich@suse.com>

Comments

Andrew Cooper Sept. 6, 2024, 10:39 a.m. UTC | #1
On 06/09/2024 11:38 am, Jan Beulich wrote:
> Just for the sake of the 32-bit build of the test harness. This wants
> reverting once unconditional uses of the variable appear (AMX, AVX10).
>
> Fixes: b20e3fbc3ec9 ("x86emul: introduce a struct cpu_policy * local in x86_emulate()")
> Signed-off-by: Jan Beulich <jbeulich@suse.com>

Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
diff mbox series

Patch

--- a/xen/arch/x86/x86_emulate/x86_emulate.c
+++ b/xen/arch/x86/x86_emulate/x86_emulate.c
@@ -1233,7 +1233,7 @@  x86_emulate(
 {
     /* Shadow copy of register state. Committed on successful emulation. */
     struct cpu_user_regs _regs = *ctxt->regs;
-    const struct cpu_policy *cp = ctxt->cpu_policy;
+    const struct cpu_policy *__maybe_unused cp = ctxt->cpu_policy;
     struct x86_emulate_state state;
     int rc;
     uint8_t b, d, *opc = NULL;