]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
x86/emul: Adjust X86EMUL_OPC_EXT_MASK to placate MISRA
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 10 Apr 2024 19:41:27 +0000 (20:41 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 11 Apr 2024 12:23:08 +0000 (13:23 +0100)
Resolves 4740 MISRA R7.2 violations (of 4935, so 96% of them).

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/x86/x86_emulate/x86_emulate.h

index 698750267a90a8e2a6b70ffcbf54f484fae78796..d92be69d84d92eede6450fac0a82989ca2ae4a96 100644 (file)
@@ -620,7 +620,7 @@ struct x86_emulate_ctxt
  * below).
  * Hence no separate #define-s get added.
  */
-#define X86EMUL_OPC_EXT_MASK         0xffff0000
+#define X86EMUL_OPC_EXT_MASK         0xffff0000U
 #define X86EMUL_OPC(ext, byte)       ((uint8_t)(byte) | \
                                       MASK_INSR((ext), X86EMUL_OPC_EXT_MASK))
 /*