From patchwork Thu Aug 10 17:22:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Liu X-Patchwork-Id: 9894293 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5A30360236 for ; Thu, 10 Aug 2017 17:26:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 40DB3286CF for ; Thu, 10 Aug 2017 17:26:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 35A74288A7; Thu, 10 Aug 2017 17:26:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E230C286CF for ; Thu, 10 Aug 2017 17:26:14 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dfrBC-0007Mi-Pv; Thu, 10 Aug 2017 17:23:30 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dfrBB-0007Mc-NQ for xen-devel@lists.xenproject.org; Thu, 10 Aug 2017 17:23:29 +0000 Received: from [85.158.143.35] by server-10.bemta-6.messagelabs.com id 9C/FA-03582-0969C895; Thu, 10 Aug 2017 17:23:28 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrJLMWRWlGSWpSXmKPExsXitHRDpO6EaT2 RBiuu81p83zKZyYHR4/CHKywBjFGsmXlJ+RUJrBnnH95gKbguXLHpk2wD4x6BLkZODgkBf4nv t24xg9hsAsoSPzt72UBsEQE9iaYDzxm7GLk4mAWeMEnsfXIGLCEsECCxsOUQWAOLgKrE/23zW UBsXgFzie2rZrFADJWX2NV2kRXEFhJQkOiYfowJokZQ4uTMJ2A1zAISEgdfvGCewMg9C0lqFp LUAkamVYwaxalFZalFuoameklFmekZJbmJmTm6hgZmermpxcWJ6ak5iUnFesn5uZsYgcHAAAQ 7GL8tCzjEKMnBpCTKW/ypO1KILyk/pTIjsTgjvqg0J7X4EKMMB4eSBC8/MLiEBItS01Mr0jJz gGEJk5bg4FES4d06FSjNW1yQmFucmQ6ROsWoy/Fqwv9vTEIsefl5qVLivDtBigRAijJK8+BGw GLkEqOslDAvI9BRQjwFqUW5mSWo8q8YxTkYlYR5L4JM4cnMK4Hb9AroCCagIyJ8O0GOKElESE k1MHp9mOvXI3tzyZxkBfGsKEaJCxuu8mkaPTTseu9Ss9vROqYi3nh6wi6fxsvsFpGyKQ4ntLP lHZfG3NeUuqR9M/Fm121uucA+w7cTntWr6JleeCpmXVfyt8apvj04esG8M2bc5X0mlSHsnlur Odl2bOZraAlJNBO0jTkT9+TtvcbTz6yzTm9RYinOSDTUYi4qTgQADxerNYwCAAA= X-Env-Sender: prvs=3886151b3=wei.liu2@citrix.com X-Msg-Ref: server-3.tower-21.messagelabs.com!1502385806!73901401!1 X-Originating-IP: [66.165.176.89] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni44OSA9PiAyMDMwMDc=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 9.4.45; banners=-,-,- X-VirusChecked: Checked Received: (qmail 8013 invoked from network); 10 Aug 2017 17:23:27 -0000 Received: from smtp.citrix.com (HELO SMTP.CITRIX.COM) (66.165.176.89) by server-3.tower-21.messagelabs.com with RC4-SHA encrypted SMTP; 10 Aug 2017 17:23:27 -0000 X-IronPort-AV: E=Sophos;i="5.41,353,1498521600"; d="scan'208";a="435068555" From: Wei Liu To: Xen-devel Date: Thu, 10 Aug 2017 18:22:53 +0100 Message-ID: <20170810172253.3720-1-wei.liu2@citrix.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Cc: Stefano Stabellini , Wei Liu , George Dunlap , Andrew Cooper , Ian Jackson , Tim Deegan , Julien Grall , Jan Beulich Subject: [Xen-devel] [PATCH v2] xen: remove struct domain and vcpu declarations from types.h X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP They don't belong there. Removing them causes build errors in several places. Add the forward declarations in those places. Signed-off-by: Wei Liu reviewed-by: Julien Grall --- Cc: Andrew Cooper Cc: George Dunlap Cc: Ian Jackson Cc: Jan Beulich Cc: Konrad Rzeszutek Wilk Cc: Stefano Stabellini Cc: Tim Deegan Cc: Wei Liu Cc: Julien Grall --- xen/include/asm-arm/processor.h | 1 + xen/include/asm-x86/xenoprof.h | 2 ++ xen/include/xen/compat.h | 1 + xen/include/xen/types.h | 3 --- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/xen/include/asm-arm/processor.h b/xen/include/asm-arm/processor.h index 855ded1b07..ab5225fa6c 100644 --- a/xen/include/asm-arm/processor.h +++ b/xen/include/asm-arm/processor.h @@ -699,6 +699,7 @@ void show_registers(struct cpu_user_regs *regs); void noreturn do_unexpected_trap(const char *msg, struct cpu_user_regs *regs); +struct vcpu; void vcpu_regs_hyp_to_user(const struct vcpu *vcpu, struct vcpu_guest_core_regs *regs); void vcpu_regs_user_to_hyp(struct vcpu *vcpu, diff --git a/xen/include/asm-x86/xenoprof.h b/xen/include/asm-x86/xenoprof.h index 3a1b001edb..1d2464804a 100644 --- a/xen/include/asm-x86/xenoprof.h +++ b/xen/include/asm-x86/xenoprof.h @@ -68,6 +68,8 @@ void passive_domain_destroy(struct vcpu *v); #else +struct vcpu; + static inline int passive_domain_do_rdmsr(unsigned int msr, uint64_t *msr_content) { diff --git a/xen/include/xen/compat.h b/xen/include/xen/compat.h index ce6245c10f..895e2ff68d 100644 --- a/xen/include/xen/compat.h +++ b/xen/include/xen/compat.h @@ -227,6 +227,7 @@ void xlat_start_info(struct start_info *, enum XLAT_start_info_console); struct vcpu_runstate_info; void xlat_vcpu_runstate_info(struct vcpu_runstate_info *); +struct domain; int switch_compat(struct domain *); #else diff --git a/xen/include/xen/types.h b/xen/include/xen/types.h index 170e993558..b1dbb8720a 100644 --- a/xen/include/xen/types.h +++ b/xen/include/xen/types.h @@ -42,9 +42,6 @@ typedef __s32 int32_t; typedef __u64 uint64_t; typedef __s64 int64_t; -struct domain; -struct vcpu; - typedef __u16 __le16; typedef __u16 __be16; typedef __u32 __le32;