Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp3430019pxb; Mon, 4 Oct 2021 02:10:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgr00K/3MQmEaOkxWUcKB7NkuxnDEF+SIq4Z0zJIJnAsuySDPiE5xXmodwndSKiEabxMeb X-Received: by 2002:a17:906:53c8:: with SMTP id p8mr15580416ejo.422.1633338648220; Mon, 04 Oct 2021 02:10:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633338648; cv=none; d=google.com; s=arc-20160816; b=j7k+OfPwfcK7XR14tPV7tdtljZWxPSCLrzEjoebhqscnNUW9KbQdWKQoRA8NZqom2b 92ndPIhFdOZTBeX3r6vQ9yr3P/QbTzW7Ar5VzQwRDpMe/EhwH2pZB0uWV/uG1VQkHZTl 8dA7Iumo1gmYoGpW1GLlcVjMYL7xoqWfTYAe9Nx97yMsM6jKNfgHdj88zK/g920KJ4tk ZzTiqt6UG1GUOtwLncamy1xTPo9BMKtFIJAkCwAmevlZVyrJlZxXEJmMVV/hel+X4qSn 8rtTc/fYy4V7E8zK9L5r2JUgtYS/JnWQK42tZB40PmeBwHCI4cjB7wJOUpB3QMqkC1jF aKeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:importance:content-transfer-encoding :mime-version:subject:message-id:cc:to:from:date:dkim-signature :dkim-signature; bh=+t7IKBWZmILIRTmMocEZj/h9XzhfaLlZiTzEL88EPGM=; b=DiVv81HGnvxy/1FBaUeoMSFldZoDow/Fl3McYgqMC4cZoKcFwb3jPt28Um30kA32uA oumoz7dtfAJk6Z+monAsjP95hoCfNCt3Wg7jfRlDDKULXwfUpdBL6kR2kS/hSsrrbVMA MOtlQsFpPrlI1LOhlhCL4wK5vb4mP0X+oXl492iZtbbeP+TwcP7DJ91oUNUg/P7n2sLJ ZcM655RdXsEMdG3MQHaS3NuLYg4VjIhNba71eaLHcDP4S3dtxxri/6A/djbJMINeXan9 bqw7+ppY3UCYO9cxlKOfq0VrSX5f8NcEkAr3qbmmN50zRepqIjW8dKovmloKRiZbid5h ffjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mailbox.org header.s=mail20150812 header.b=cqAxQN0K; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=WDwI3iPy; 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=REJECT sp=REJECT dis=NONE) header.from=mailbox.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hc43si29972172ejc.207.2021.10.04.02.10.24; Mon, 04 Oct 2021 02:10:48 -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=fail header.i=@mailbox.org header.s=mail20150812 header.b=cqAxQN0K; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=WDwI3iPy; 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=REJECT sp=REJECT dis=NONE) header.from=mailbox.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231340AbhJDJK1 (ORCPT + 99 others); Mon, 4 Oct 2021 05:10:27 -0400 Received: from mout-p-201.mailbox.org ([80.241.56.171]:22020 "EHLO mout-p-201.mailbox.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229716AbhJDJK1 (ORCPT ); Mon, 4 Oct 2021 05:10:27 -0400 Received: from smtp202.mailbox.org (smtp202.mailbox.org [IPv6:2001:67c:2050:105:465:1:4:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4HNFJ50tk7zQjXt; Mon, 4 Oct 2021 11:08:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mailbox.org; h= content-transfer-encoding:content-type:content-type:mime-version :subject:subject:message-id:from:from:date:date:received; s= mail20150812; t=1633338514; bh=iczBuNeKxMSt9GchG24tfrLadG0Q/+xNf DfEbX6n980=; b=cqAxQN0K8afO8vrx1KoypomXNAmecmlCZz5f74/CifebVpgx8 WH6ibOkH18Giv4Hb6Oa4/e3WGpjLsCf88NgiVQrZP6DcTuJj2ZUXctTmRKZuDR7s c5qeCcQvMHpAuRS+EBZ9/boSu3A7MM/XgxkP8q4fAvKVHV6quGiaQwZUQHLts7ne CO2WKItUMU06tb7v6kaoOEhT2H4alOR+auWpvykzxyN1SuHUZLkNSCJUqvpa5eak 3Un8chZIzpfGXh/9LJHKuevaG+rqKPLTOk0e47mHkzpiMJ7RTsa2I/l+yQ7ozDJq BozuRDB2ZUeuMwlkfxSLzzOyX/wj27Tf20J5Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1633338515; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+t7IKBWZmILIRTmMocEZj/h9XzhfaLlZiTzEL88EPGM=; b=WDwI3iPyyIWeaMkSL2N/7YBDrkaYWZ73qmZPlXcmuyDewWXtGSjry2WEBX0RZ40LVKlaj6 RNnLklgjUkMzeK8ub2oH668PxEQmPM93izJvdpLIX/atqfwarBFnPtPx2EauYnf8hgTPdR Qc4MCvMpM3vpPjBVxGgYvG9gFuwqdqSr1KM+5HwuvU9sh8ccm/bf5D4p6vNSnFl4DGufFY Gex2blTyLCRFpcpFArUfRTO1vFhjtk5uMGDZdheRGk318xQ56yHKflyujjxql6twnwCc9c bQUk/8KRquqy0jcHQAfawPhDYq4wJS1/Toj9eRogVmL/QOK5pFwaCvZxcYcpvA== X-Virus-Scanned: amavisd-new at heinlein-support.de Date: Mon, 4 Oct 2021 11:08:32 +0200 (CEST) From: torvic9@mailbox.org To: "pbonzini@redhat.com" , "seanjc@google.com" , "vkuznets@redhat.com" , "kvm@vger.kernel.org" Cc: "linux-kernel@vger.kernel.org" , "tglx@linutronix.de" , "bp@alien8.de" Message-ID: <1446878298.170497.1633338512925@office.mailbox.org> Subject: [BUG] [5.15] Compilation error in arch/x86/kvm/mmu/spte.h with clang-14 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Normal X-Rspamd-Queue-Id: 01A0C273 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I encounter the following issue when compiling 5.15-rc4 with clang-14: In file included from arch/x86/kvm/mmu/mmu.c:27: arch/x86/kvm/mmu/spte.h:318:9: error: use of bitwise '|' with boolean operands [-Werror,-Wbitwise-instead-of-logical] return __is_bad_mt_xwr(rsvd_check, spte) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ || arch/x86/kvm/mmu/spte.h:318:9: note: cast one or both operands to int to silence this warning (no issue with gcc-11) Tor