From nobody Tue Feb 10 02:42:52 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=quarantine dis=none) header.from=suse.com ARC-Seal: i=1; a=rsa-sha256; t=1648130541; cv=none; d=zohomail.com; s=zohoarc; b=F0XBfT7m5WphcwLzXnwq/MosQRXJ1PaL/5IpIeFMQt0gtE3YY8XMVuQc2kyCItMwHlg22ESRmkFEyzu4HOFC+Xr3F2s3OTg+tIncudsuykUf4LEJtT1bD/GmLpdMgs+A0ahT72wEfEzUskhqmZWU6O/F9MjIWwFDI0mxOURjmEM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1648130541; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=zTWmJvIc9NdObJScbaBplyHq/3+HJV+H3AEMYItF4vU=; b=ec7fhIGVsSWGUsBaoX3u5O8TiIoL27XmLkGg9GI5RLJz2CkwlQak7+0lHrBaG0ErI7JFBq0atHhQ+5AnWT/R+x3jqXuERXuTa+YZPR8LD5gndbFuD4UEfac1I7SjvV5fPSa3q2bkz3TZTtsQ8mxCYfwiATGSqXgUedQeKJKbhIo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1648130541259229.5795789393436; Thu, 24 Mar 2022 07:02:21 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.294328.500414 (Exim 4.92) (envelope-from ) id 1nXO27-0008KZ-5B; Thu, 24 Mar 2022 14:01:47 +0000 Received: by outflank-mailman (output) from mailman id 294328.500414; Thu, 24 Mar 2022 14:01:47 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1nXO27-0008KA-0D; Thu, 24 Mar 2022 14:01:47 +0000 Received: by outflank-mailman (input) for mailman id 294328; Thu, 24 Mar 2022 14:01:45 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1nXO25-0008Hw-C4 for xen-devel@lists.xenproject.org; Thu, 24 Mar 2022 14:01:45 +0000 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id f00d5a31-ab7a-11ec-a405-831a346695d4; Thu, 24 Mar 2022 15:01:44 +0100 (CET) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 3DA3A1F7AD; Thu, 24 Mar 2022 14:01:44 +0000 (UTC) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 04EF312FF7; Thu, 24 Mar 2022 14:01:44 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id MDMLAMh5PGKeegAAMHmgww (envelope-from ); Thu, 24 Mar 2022 14:01:43 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: f00d5a31-ab7a-11ec-a405-831a346695d4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1648130504; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zTWmJvIc9NdObJScbaBplyHq/3+HJV+H3AEMYItF4vU=; b=RPd183JS0oeA5xxCF7RTwGoKeWQlKOBlwNPZc3vtnL/fixduzfmW1n2SOFrkxY3Zx2560/ CwJ+9F44zz7yVjqHEYEJXiIpJqlOyf6krwYlRM0aOcH/dwMU9tylLBRMoR2iVQIR0zRDFs fDKIax5+Yu3wBYlNRT0sr+rdqReKapU= From: Juergen Gross To: xen-devel@lists.xenproject.org Cc: Juergen Gross , Jan Beulich , Andrew Cooper , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= , Wei Liu , George Dunlap , Julien Grall , Stefano Stabellini Subject: [PATCH v6 4/9] xen: include compat/platform.h from hypercall.h Date: Thu, 24 Mar 2022 15:01:34 +0100 Message-Id: <20220324140139.5899-5-jgross@suse.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220324140139.5899-1-jgross@suse.com> References: <20220324140139.5899-1-jgross@suse.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @suse.com) X-ZM-MESSAGEID: 1648130542539100001 Content-Type: text/plain; charset="utf-8" The definition of compat_platform_op_t is in compat/platform.h already, so include that file from hypercall.h instead of repeating the typedef. This allows to remove the related include statement from arch/x86/x86_64/platform_hypercall.c. Signed-off-by: Juergen Gross Acked-by: Jan Beulich --- V3: - new patch --- xen/arch/x86/x86_64/platform_hypercall.c | 1 - xen/include/xen/hypercall.h | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/xen/arch/x86/x86_64/platform_hypercall.c b/xen/arch/x86/x86_64= /platform_hypercall.c index 966fd27b5f..5bf6b958d2 100644 --- a/xen/arch/x86/x86_64/platform_hypercall.c +++ b/xen/arch/x86/x86_64/platform_hypercall.c @@ -5,7 +5,6 @@ EMIT_FILE; =20 #include -#include #include =20 #define xen_platform_op compat_platform_op diff --git a/xen/include/xen/hypercall.h b/xen/include/xen/hypercall.h index a032ba2b4a..ca8ee22717 100644 --- a/xen/include/xen/hypercall.h +++ b/xen/include/xen/hypercall.h @@ -15,6 +15,9 @@ #include #include #include +#ifdef CONFIG_COMPAT +#include +#endif #include #include =20 @@ -206,7 +209,6 @@ extern int cf_check compat_multicall( =20 int compat_physdev_op(int cmd, XEN_GUEST_HANDLE_PARAM(void) arg); =20 -typedef struct compat_platform_op compat_platform_op_t; DEFINE_XEN_GUEST_HANDLE(compat_platform_op_t); int compat_platform_op(XEN_GUEST_HANDLE_PARAM(compat_platform_op_t) u_xenp= f_op); =20 --=20 2.34.1