x86/emul: Adjust X86EMUL_OPC_EXT_MASK to placate MISRA

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>
This commit is contained in:
Andrew Cooper committed 2024-04-11 13:23:08 +01:00
1 parent 761358b9eb
commit 478002370c
1 file changed
+1 -1
+1 -1
View 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))
/*
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.