From patchwork Mon Dec 23 11:03:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Liu X-Patchwork-Id: 11308013 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 AED581395 for ; Mon, 23 Dec 2019 11:06:10 +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 8B670206B7 for ; Mon, 23 Dec 2019 11:06:10 +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="kel4jbE/" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8B670206B7 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 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 X-Inumbo-ID: dcf4322c-2573-11ea-88e7-bc764e2007e4 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) 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) 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) 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_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 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; -/* 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; struct hv_partition_assist_pg {