Skip to content

Commit 7040b37

Browse files
keesgregkh
authored andcommitted
x86/asm: Fix SETZ size enqcmds() build failure
[ Upstream commit d81ff5f ] 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: 7f5933f ("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 Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 54e85b6 commit 7040b37

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/x86/include/asm/special_insns.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ static inline int enqcmds(void __iomem *dst, const void *src)
287287
{
288288
const struct { char _[64]; } *__src = src;
289289
struct { char _[64]; } __iomem *__dst = dst;
290-
int zf;
290+
bool zf;
291291

292292
/*
293293
* ENQCMDS %(rdx), rax

0 commit comments

Comments
 (0)