]> git.baikalelectronics.ru Git - kernel.git/commit
x86/asm: Fix SETZ size enqcmds() build failure
authorKees Cook <keescook@chromium.org>
Fri, 10 Sep 2021 22:33:32 +0000 (15:33 -0700)
committerBorislav Petkov <bp@suse.de>
Wed, 22 Sep 2021 17:45:48 +0000 (19:45 +0200)
commit0147a10a44a455cad977190436657710e14ea61d
tree4199cb91584d30c1cb859e21cd52d4aac82cf3b3
parenta1b116ca4f29c086e27e572725ecc8e119c3d6a4
x86/asm: Fix SETZ size enqcmds() build failure

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: 8648e1d3ced6 ("x86/asm: Add an enqcmds() wrapper for the ENQCMDS instruction")
Co-developed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20210910223332.3224851-1-keescook@chromium.org
arch/x86/include/asm/special_insns.h