Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp4155845pxb; Mon, 27 Sep 2021 10:31:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwGOwDGR80ONoRg6RwJ8jlTuQUp4K9kI6jHYgrqxdx0Z1kIkV1hVcH5wramhisXOjwkmCKL X-Received: by 2002:a05:6402:21d2:: with SMTP id bi18mr1367550edb.21.1632763886097; Mon, 27 Sep 2021 10:31:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632763886; cv=none; d=google.com; s=arc-20160816; b=BNfG4ASS+e1ZxUNrromDXkvSUcWtlS6o1D9vSqruP8cBTvx4vQxORn2VG+NIqWcKt8 ijIj4NKnyBBGxCH/PQS9PmBp01SIwJatK6djl6AnxbbQelUvTcDDHN3WIEf1RavdYtLw VAYkJAPsFUTDOA3VEkVntKgS3nTy1t86btiSzXiS7//xSvzkJMOQyvVq1dHwnwxRxquR n0glXUjzKtOaKa71PYw5f8BUMyP6LCYUI9nKqRyTCA5gygQsJHbWkDQLKsPsj4hk5nxf e1GxxrdOSr5l0b2bRD5Inb+qxcwTaMlhzhr/uXHSQYJa1CDDTUtRFdsQ7zCJV/H1BXzo jDCQ== 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=nxlLsQdoz+XIwxUz/NX1b+cx5p8lDIf3S1nnZTfDMtE=; b=c5TxRbd0TluBDqRJQW7Yv15sv+la+ip99Sxsuw/DAdoczZPHsZuQkdja0DpSNUyrI/ rMq/5n1dblRxSJNSq077/19+Ws997Skimb4eSLbw5cjdYVbhUr46tg/Ao7JHdrW0h3p3 5Mf1rWMnIYGthSg/Os3rxSURdgEhhHdBy9A6icx91Xnb6VTo1ACCD5xw4Aq8Vzh4HxGm 2iTCgPmz7mISxRJMbr/M5aLI6pdKEJyB754QvPq6U1kfJa2/mSzagIEe/waXHad66/Dz 9/lyNLLpmC0erJDgMnkOpsY9z2jezChoQNy3RdrsUebk8Clhm5CsNaD9JkjfXdtKikll r14g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=bnWwIOET; 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 i27si18511975ejh.465.2021.09.27.10.30.59; Mon, 27 Sep 2021 10:31:26 -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=bnWwIOET; 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 S238221AbhI0R2e (ORCPT + 99 others); Mon, 27 Sep 2021 13:28:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:37458 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237227AbhI0RYr (ORCPT ); Mon, 27 Sep 2021 13:24:47 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0F949613E6; Mon, 27 Sep 2021 17:15:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632762949; bh=toEXuD3DkAOe0xVPXl8rapK3oRk2eBv0iGd4qQNivug=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bnWwIOETgRKRrB1/f/5KPDwQ8fADQBRhbpYJCJVCeKLwKRfL8QHH+32C9Vlmp+KoN 41hNt3rUT+rPliDE0S+eC1/aovQOKnlrIFq+JsKjJmuj/f2eDggyv3QanteER7NFYN hPnqWFw9euclS9KYNmHkSFfUIIpCimZLnVGHEv8U= 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.14 111/162] x86/asm: Fix SETZ size enqcmds() build failure Date: Mon, 27 Sep 2021 19:02:37 +0200 Message-Id: <20210927170237.290623887@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210927170233.453060397@linuxfoundation.org> References: <20210927170233.453060397@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 f3fbb84ff8a7..68c257a3de0d 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; + bool zf; /* * ENQCMDS %(rdx), rax -- 2.33.0