Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp4145625pxb; Mon, 27 Sep 2021 10:18:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzw+kaweKdrzvnplx5hU1/9KfRLRz1LZx/qHR3v+slw1+LEW3rPXI2vPstmCwl/+atnyaNd X-Received: by 2002:a17:902:a582:b0:13e:42b5:1f4c with SMTP id az2-20020a170902a58200b0013e42b51f4cmr131717plb.8.1632763121797; Mon, 27 Sep 2021 10:18:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632763121; cv=none; d=google.com; s=arc-20160816; b=W+p4FVc/lyeVT/KEdtR9Kae+pofN/6ov3AoUYjwpe5QbdE2bWnMAp6S+Hav0UkHhmp ZI1H9vePZo4RjMW9bJhwOCO/r1e8CVKUFJz05OyuofwgcwWg+EeVtFp+5aMYXh+mc6n5 zerHoX8niyxizN196hBuFR1UDSwaYLQqFRf0Fa/2SeZ/hWuHsqJEYGowFfthfZHFum2N 6/Kyph6CZtJAoBMovm68hXQInFhSZWVqjYk+zXPN087MzcP3x/IydzYgUGh/bkKt1/1Y VKXGgNfr/rtrDE6tG4bw13PCVniiRa7A3BE1U0CogsGgSjofOiDupBTqNhJhTXuC/hiI 39Pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=g0S1TsCJB4ppmjh+Hv4TBdki1LioSfDqV28E5ET8v88=; b=vuU9OeeSt8sXUw8CSM5Lyhof6hqHq6Y1OsqoNr9XIdBh7XWWO6NWi4Em5G00yBlOj1 dyei0MD220hHcusxmrotZL8RC1uwk49ANTMhdez+ER5dqkNrJLqYbs4Vt5wnlEmzrUG7 ciS6jmLZhAcI7C0a7IXdb6j8DhbcXw/0l/+GNSsNm+Ur+wZ7Vf1F2Lp/d5uIyxYeTlOm R9h62bLufN9vrcMoxi5U/1mxfZvdCkCCTeOIS8g8pCVHn0oS4KcsQt2xU4NB4HXDtyvB Js+MKYbcqZvQ55xV0Cf4XVbQP8i+OVM/Bzyh7YrDzNdPCzqaxl/A44ucIV1hcjcIE/on Z7NA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=N3G+BUvb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t16si100964pjt.37.2021.09.27.10.18.28; Mon, 27 Sep 2021 10:18:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=N3G+BUvb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236324AbhI0RQ6 (ORCPT + 99 others); Mon, 27 Sep 2021 13:16:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:53982 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236938AbhI0RNY (ORCPT ); Mon, 27 Sep 2021 13:13:24 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7F3DB6120C; Mon, 27 Sep 2021 17:09:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632762559; bh=czjirBWMOYc6UYeqMwKj/sEc3UEcLEP2zqBlbCFmIvU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=N3G+BUvbJdCw9GKqhTgLxCz2/Aca84cc5CWzqA9mRLpQoP+WtBSD06Y9B53u1p254 U80qqBGLF/rlBSbwZRcESr70gOhBYfUYtJjaVhWaMUHo4mtXD7Gahh1oW4q6QcZt7K FQzWy7QHMz+BZzUtPW3ztSYbYI4BmpjLrgXPM+as= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Kees Cook , Borislav Petkov , Sasha Levin Subject: [PATCH 5.10 070/103] x86/asm: Fix SETZ size enqcmds() build failure Date: Mon, 27 Sep 2021 19:02:42 +0200 Message-Id: <20210927170228.191585938@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210927170225.702078779@linuxfoundation.org> References: <20210927170225.702078779@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kees Cook [ Upstream commit d81ff5fe14a950f53e2833cfa196e7bb3fd5d4e3 ] 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: 7f5933f81bd8 ("x86/asm: Add an enqcmds() wrapper for the ENQCMDS instruction") Co-developed-by: Arnd Bergmann Signed-off-by: Arnd Bergmann Signed-off-by: Kees Cook Signed-off-by: Borislav Petkov Link: https://lkml.kernel.org/r/20210910223332.3224851-1-keescook@chromium.org Signed-off-by: Sasha Levin --- 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 0cf19684dd20..415693f5d909 100644 --- a/arch/x86/include/asm/special_insns.h +++ b/arch/x86/include/asm/special_insns.h @@ -287,7 +287,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; + bool zf; /* * ENQCMDS %(rdx), rax -- 2.33.0