From nobody Sun May 5 17:07:23 2024 Delivered-To: importer@patchew.org Received-SPF: none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1577099148; cv=none; d=zohomail.com; s=zohoarc; b=aFgn7uM81wATFo/ymNaVuXl780WwoEZD6Dav8CAvx3Nm2Jd9WN7uZV18Qy1N4q6ziQuiP9i41tL49cIgf3z3E357Dgt3xztCEqaxxoFZMxe3CgqftXEGhP0A0EJUbyVy5ogsCamDB5aS9uWrt5ERnN7Rg9eHXAGaVJfwDTS9Pgc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1577099148; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=Ldu1IvIgNzwhQ8NUQ7D1UcRzZUXJj03KbatJq8Q9RgM=; b=aShmvzm6ot+oQKWGvYZRJTsAlRDFNzgarg0G5ecTrG+MfcxHd1Ysf6O09od7d42MyiWpJnhkP1iQDsMG+crnQQQg+fXEQsQx2GP+2vfnawtSKKKum7/sa6zFjHJRNyGG3c3IWen/kJStRzgo+Q/9KYtxaqaYneenVS1dR4yHPfs= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1577099148663390.18317945896285; Mon, 23 Dec 2019 03:05:48 -0800 (PST) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1ijLUv-0002OI-9j; Mon, 23 Dec 2019 11:03:37 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1ijLUt-0002OD-OI for xen-devel@lists.xenproject.org; Mon, 23 Dec 2019 11:03:35 +0000 Received: from mail-wm1-x341.google.com (unknown [2a00:1450:4864:20::341]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id dcf4322c-2573-11ea-88e7-bc764e2007e4; Mon, 23 Dec 2019 11:03:35 +0000 (UTC) Received: by mail-wm1-x341.google.com with SMTP id 20so15658617wmj.4 for ; Mon, 23 Dec 2019 03:03:35 -0800 (PST) Received: from debian.mshome.net (38.163.200.146.dyn.plus.net. [146.200.163.38]) by smtp.gmail.com with ESMTPSA id q11sm20231787wrp.24.2019.12.23.03.03.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Dec 2019 03:03:33 -0800 (PST) X-Inumbo-ID: dcf4322c-2573-11ea-88e7-bc764e2007e4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=MzJWgGv5V2J+E2T0MUN5U5O95y4LBhvZcsi4XyeSV0o=; b=kel4jbE/dfG06iYF9/UmgqBZY6UJKI1/k0Nz387XUTNNOQucW/Cngs0ZRI+55wli+F CcPU6jnSD9MYfzfltXSOLuVPDgIeF3DoQOZD/JXvqZioX/t9qrCs4pecWmUnjJf+6YwV WEXiM385VXG4//lkMLS8jOlGh5XxhX0xc6rkvwZwuA7VcETiQdWFSf5ZXLJ+5P5ZTug9 CDKdzS1HrSURx2fDmCk5QLn6um2aE+a2mTVr8eqxO3zgKnO1CFAZnvFzkG6r3nOghS27 KlWHEao4zCUlVEWOpIS83ZZpl7b132pYAo5BaFK2j7cfmlogqvG/9Xe66z38uVgMhWaL ZWKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=MzJWgGv5V2J+E2T0MUN5U5O95y4LBhvZcsi4XyeSV0o=; b=A8vYPwFklKkojI9ATg6+KHzz7yDqOZjqo1zoeRPQpv3bhrAnBBiADkbzF6iBQ63+xJ Otcmoa3CEiiaSTMd9akzhCgnK11m6znbaLGdjRw2yx/x3OmdXApDZZjnC+lG5nWUtPfp iYIH7Nwl9QmGB2F4Nfgy+pboQwyRfBPUz7TAIsAd938ZTtqgN7PS74Viz5PwkJpZFhMs 8N6ibEl45MmBBaALTz2Yx6ozN5R2+S6v4O6tRzWpnfQPmXFmhbfGXx9eU7zQyG2xp+pz FvC2nkYG47HAUE9zGZRBRhElj9S/Pdgvzvj4OPolN8IcyUNAUieifVXzSI9PeWexPWAD S7Cg== X-Gm-Message-State: APjAAAV401EgVx+uNYPVfrhu/mlyYhXyJtq5M83KPuZNpRCerQ0GXfpc UAYD9ykzd10k8LxAlPjqp+hzCzRR X-Google-Smtp-Source: APXvYqxc59jK5Vu+lqfXJAO1e97R5Bx/mBBwi1iEVZWBPkjMoneGWlgwshYDdEwKE64AtPE78CyjsQ== X-Received: by 2002:a1c:4008:: with SMTP id n8mr28908790wma.121.1577099014203; Mon, 23 Dec 2019 03:03:34 -0800 (PST) From: Wei Liu X-Google-Original-From: Wei Liu To: Xen Development List Date: Mon, 23 Dec 2019 11:03:30 +0000 Message-Id: <20191223110330.26883-1-liuwe@microsoft.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [Xen-devel] [PATCH v2] x86/hyperv: change hv_tlb_flush_ex to fix clang build X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Wei Liu , Wei Liu , Paul Durrant , Andrew Cooper , Michael Kelley , Jan Beulich , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Clang complains: In file included from synic.c:15: /builds/xen-project/xen/xen/include/asm/guest/hyperv-tlfs.h:900:18: error: = field 'hv_vp_set' with variable sized type 'struct hv_vpset' not at the end= of a struct or class is a GNU extension [-Werror,-Wgnu-variable-sized-type= -not-at-end] struct hv_vpset hv_vp_set; ^ 1 error generated. /builds/xen-project/xen/xen/Rules.mk:198: recipe for target 'synic.o' failed make[6]: *** [synic.o] Error 1 Comment out the last variable size array from hv_tlb_flush_ex to fix clang builds. Signed-off-by: Wei Liu Cc: Paul Durrant Reviewed-by: Jan Beulich Reviewed-by: Paul Durrant --- xen/include/asm-x86/guest/hyperv-tlfs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/include/asm-x86/guest/hyperv-tlfs.h b/xen/include/asm-x86/= guest/hyperv-tlfs.h index fe9fb232d0..5b43f99de8 100644 --- a/xen/include/asm-x86/guest/hyperv-tlfs.h +++ b/xen/include/asm-x86/guest/hyperv-tlfs.h @@ -908,12 +908,12 @@ struct hv_tlb_flush { u64 gva_list[]; } __packed; =20 -/* HvFlushVirtualAddressSpaceEx, HvFlushVirtualAddressListEx hypercalls */ +/* HvFlushVirtualAddressSpaceEx hypercall */ struct hv_tlb_flush_ex { u64 address_space; u64 flags; struct hv_vpset hv_vp_set; - u64 gva_list[]; + /* u64 gva_list[]; */ } __packed; =20 struct hv_partition_assist_pg { --=20 2.20.1 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel