From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C288EC4338F for ; Mon, 2 Aug 2021 14:54:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A2E07603E9 for ; Mon, 2 Aug 2021 14:54:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234525AbhHBOyO (ORCPT ); Mon, 2 Aug 2021 10:54:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:53032 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233981AbhHBOyM (ORCPT ); Mon, 2 Aug 2021 10:54:12 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 15B5C60F70; Mon, 2 Aug 2021 14:53:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1627916043; bh=fQXoJXlivB6wDU7j0FBMr/A85o96vueb6Bpx2iaZyXM=; h=From:To:Cc:Subject:Date:From; b=Qw+ALPUPYVb+FldQk+KQkR86a5Udf/jhTlBKwCqwMYuHM9+/M3SFcD3Q65h7zRHou k1y/iE/l+YdkFFe5DlH0E+Yg0pG5g50Ob2HxXQoly4Sm5T9Lf/jh9nlVVRTtdN16eH fBw2XjBo5xjdQGwpOKruI4HMGIAZ1Mx1p1wl4vAih5SXtEdLfQ3JVyJWCacDEy56P9 Lp1T4aiWoAbdDKkwRfTUdW3FiJ7PxA5ZgvPfhWgpts0f4P4y5nKhHrY98RQj2niplA dfOVJaMsH0s3f5XB8++hAsvsBfM48bFg03EzBfY0x5kLdnxzHm+P3fgeezYYAMH2pI +vJ9mtrcP+erA== From: Arnd Bergmann To: Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org Cc: Arnd Bergmann , "H. Peter Anvin" , Dave Jiang , Tony Luck , Dan Williams , Ben Widawsky , Ricardo Neri , Arvind Sankar , Peter Zijlstra , Vinod Koul , linux-kernel@vger.kernel.org Subject: [PATCH] x86/asm: fix gcc-5 enqcmds() build failure Date: Mon, 2 Aug 2021 16:53:42 +0200 Message-Id: <20210802145356.1154321-1-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann Building drivers/dma/idxd/submit.o with gcc-5.5 results in a cryptic error messages: arch/x86/include/asm/special_insns.h: Assembler messages: arch/x86/include/asm/special_insns.h:286: Error: operand size mismatch for `setz' make[5]: *** [scripts/Makefile.build:272: drivers/dma/idxd/submit.o] Error 1 It seems that this happens for 32-bit arguments when the instruction expects an 8-bit argument. Change the type of the local variable accordingly to get a clean build. Fixes: 7f5933f81bd8 ("x86/asm: Add an enqcmds() wrapper for the ENQCMDS instruction") Fixes: 8e50d392652f ("dmaengine: idxd: Add shared workqueue support") # guessed Signed-off-by: Arnd Bergmann --- arch/x86/include/asm/special_insns.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/include/asm/special_insns.h b/arch/x86/include/asm/special_insns.h index f3fbb84ff8a7..33264839f99e 100644 --- a/arch/x86/include/asm/special_insns.h +++ b/arch/x86/include/asm/special_insns.h @@ -275,7 +275,7 @@ static inline int enqcmds(void __iomem *dst, const void *src) { const struct { char _[64]; } *__src = src; struct { char _[64]; } __iomem *__dst = dst; - int zf; + u8 zf; /* * ENQCMDS %(rdx), rax -- 2.29.2