From nobody Sun May 5 19:51:06 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=1577016483; cv=none; d=zohomail.com; s=zohoarc; b=OWDkJ/0/Okt3jfgV7JVMrmuPVJQQSjJMEFtpNeUOyq9biR9sNZl3/ZqDSHv4SM6tu7DWPMXnUmM05vN3CsSbq10lyE4pWDzi5xApD4XHWExURJbChIK1nzF0ZWhdRLY3v7B3bGT4M7Eh3653LVAcUke80VWdqlHobVzYZsXcX3U= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1577016483; 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=5f0gs3J3JpnLNBcK/foVwVSx3SH2Fp3IPO0MPVBqHYU=; b=X+FX6mqaRyXe1yaMlXO9VOglMiHaNYjvv3HkSQjnTQWMbWN3aUrnfMYjRbGpkGcPg3zHyKBZb2k99+XkfqB+3mI30a8FYU0hL88G/nXkOl7Ta2Dgv42bRYAs1UjR6mVLXDeC0bMa8XJMFVjnEL5+CTZ4/ImKRMjkSQ9/huGVBbI= 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 1577016482971278.53885631527976; Sun, 22 Dec 2019 04:08:02 -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 1ij00y-0001sW-SR; Sun, 22 Dec 2019 12:07:16 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1ij00x-0001sQ-CT for xen-devel@lists.xenproject.org; Sun, 22 Dec 2019 12:07:15 +0000 Received: from mail-wm1-x343.google.com (unknown [2a00:1450:4864:20::343]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 971ef63a-24b3-11ea-88e7-bc764e2007e4; Sun, 22 Dec 2019 12:07:14 +0000 (UTC) Received: by mail-wm1-x343.google.com with SMTP id a5so13213546wmb.0 for ; Sun, 22 Dec 2019 04:07:14 -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 z3sm16689420wrs.94.2019.12.22.04.07.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Dec 2019 04:07:13 -0800 (PST) X-Inumbo-ID: 971ef63a-24b3-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=NVbj44pGJSci640/frImMSOsoKLgC3FesR+sy39zdL4=; b=lhye2qkPJe3XCFfSiNaxx8b/kPPusDefkLUewpIkejy09uaPxtevG77Byi+av/apjS YlwujZAqsawIHCHoxmn4almoVMJ/YZLTMjKbubtfJzC5nfN4bMuGoqwrkE7GZ1WaW+iX EEz3N+yxWuoiKIauLLFpGbzSq2J8wE7KRROOBPvT5EMHBY/0JCMfHzDxjM2cEkodVjm7 qzfZZHZBEESczXubFmMzAM7xrkISTKMkDksHJoTzwUyfgpsKotlkhvPaQ87gT9CUYcHq tsQU79QScYjXAdpQNfSwesTX1sGG8VQywS6fvKtpJH+u2ijkCXT1w6+SLgxG2roKFXey G7hw== 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=NVbj44pGJSci640/frImMSOsoKLgC3FesR+sy39zdL4=; b=jZhwWDjrSUDzvoZmBqJL/c1cRvnXyzJcXf+3c8tYJt/9I07i1xxyz8H3qJaN8ALRv1 9hcpwA0OcnN2svOv1Tj4t8ZYzDDQXfgv74zLFbiYr+djdFbCB6rTVgHd2EvZ0sQiMnPp zfUWj+amLRojVxp/AT23zYOsiKyToB6C4nUfyi4a0otWmBluwR/hs82drp519SSo2TcL N/v9WXi7tZKF+lBkR6aXt545q1UGaaLoirFCDjF1Ys2NHMG75VUUlIq6saepdIBPXVwO PjZhj7DeTq0iotN50kGArQ1+lgN4r7zWK63J7YQwDrE8fSPYoV46qkF0oyg0C/SQzS3b r4lw== X-Gm-Message-State: APjAAAXlc1qlBRrzZ73nqyYyUF7WDNrpTTEafbUcMaOunK6A2WNEvlpl 7YQq0e2v3PfH07k/MSHdWGl7sUka X-Google-Smtp-Source: APXvYqx3UJJlH2Thop1Sw1jqVuQr2Huq6c524hFCuvvdvvuAwvM3vlQJHvjFkW0oL2jRTEOxi1gB8Q== X-Received: by 2002:a05:600c:2549:: with SMTP id e9mr27303521wma.6.1577016433577; Sun, 22 Dec 2019 04:07:13 -0800 (PST) From: Wei Liu X-Google-Original-From: Wei Liu To: Xen Development List Date: Sat, 21 Dec 2019 23:50:49 +0000 Message-Id: <20191221235049.4928-1-liuwe@microsoft.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [Xen-devel] [PATCH] 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 , 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 Drop the last variable size array from hv_tlb_flush_ex for now to fix clang builds. Signed-off-by: Wei Liu --- xen/include/asm-x86/guest/hyperv-tlfs.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xen/include/asm-x86/guest/hyperv-tlfs.h b/xen/include/asm-x86/= guest/hyperv-tlfs.h index ccd9850b27..98ff1adc61 100644 --- a/xen/include/asm-x86/guest/hyperv-tlfs.h +++ b/xen/include/asm-x86/guest/hyperv-tlfs.h @@ -893,12 +893,11 @@ 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[]; } __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