Skip to content
Commit 7040b37a authored by Kees Cook's avatar Kees Cook Committed by Greg Kroah-Hartman
Browse files

x86/asm: Fix SETZ size enqcmds() build failure

[ Upstream commit d81ff5fe ]

When building under GCC 4.9 and 5.5:

  arch/x86/include/asm/special_insns.h: Assembler messages:
  arch/x86/include/asm/special_insns.h:286: Error: operand size mismatch for `setz'

Change the type to "bool" for condition code arguments, as documented.

Fixes: 7f5933f8

 ("x86/asm: Add an enqcmds() wrapper for the ENQCMDS instruction")
Co-developed-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20210910223332.3224851-1-keescook@chromium.org


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 54e85b6c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment