From patchwork Sat Dec 21 23:50:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Liu X-Patchwork-Id: 11307417 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 35AA2139A for ; Sun, 22 Dec 2019 12:08:24 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0E355206D3 for ; Sun, 22 Dec 2019 12:08:24 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="lhye2qkP" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0E355206D3 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=xen.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=xen-devel-bounces@lists.xenproject.org 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 X-Inumbo-ID: 971ef63a-24b3-11ea-88e7-bc764e2007e4 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) 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) 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) 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_Pau_Monn=C3=A9?= Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" 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; -/* 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; struct hv_partition_assist_pg {