Skip to content

Commit d81ff5f

Browse files
keessuryasaimadhu
authored andcommitted
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: 7f5933f ("x86/asm: Add an enqcmds() wrapper for the ENQCMDS instruction") Co-developed-by: Arnd Bergmann <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Kees Cook <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 8aa83e6 commit d81ff5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/include/asm/special_insns.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ static inline int enqcmds(void __iomem *dst, const void *src)
275275
{
276276
const struct { char _[64]; } *__src = src;
277277
struct { char _[64]; } __iomem *__dst = dst;
278-
int zf;
278+
bool zf;
279279

280280
/*
281281
* ENQCMDS %(rdx), rax

0 commit comments

Comments
 (0)