From patchwork Thu Aug 10 13:24:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Liu X-Patchwork-Id: 9893743 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 0209B60325 for ; Thu, 10 Aug 2017 13:26:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E621628B05 for ; Thu, 10 Aug 2017 13:26:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DAC1628AF6; Thu, 10 Aug 2017 13:26:18 +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 621D328B29 for ; Thu, 10 Aug 2017 13:26:18 +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 1dfnRc-0002JH-R3; Thu, 10 Aug 2017 13:24:12 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dfnRc-0002J4-8S for xen-devel@lists.xenproject.org; Thu, 10 Aug 2017 13:24:12 +0000 Received: from [85.158.143.35] by server-6.bemta-6.messagelabs.com id 58/40-03937-A7E5C895; Thu, 10 Aug 2017 13:24:10 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrJLMWRWlGSWpSXmKPExsXitHSDvW5lXE+ kwZd/Bhbft0xmcmD0OPzhCksAYxRrZl5SfkUCa8buq1UFJ7kr/vd9YGtgfMbZxcjJISHgL3Fo cysriM0moCzxs7OXDcQWEdCTaDrwnLGLkYuDWWAfk8Th1xtYQBLCAr4S91ecALNZBFQlpkx4C GbzClhIdJxoYIIYKi+xq+0i2FAhAQWJjunHmCBqBCVOznwCVs8sICFx8MUL5gmM3LOQpGYhSS 1gZFrFqFGcWlSWWqRrZKGXVJSZnlGSm5iZo2toYKaXm1pcnJiempOYVKyXnJ+7iREYDAxAsIP x/NrAQ4ySHExKorzFn7ojhfiS8lMqMxKLM+KLSnNSiw8xynBwKEnwssb2RAoJFqWmp1akZeYA wxImLcHBoyTC+ykGKM1bXJCYW5yZDpE6xajL8WrC/29MQix5+XmpUuK8+iAzBECKMkrz4EbAY uQSo6yUMC8j0FFCPAWpRbmZJajyrxjFORiVhHkFQKbwZOaVwG16BXQEE9AREb6dIEeUJCKkpB oY0/lXux27OSmQtW7iHLP17Xfz4zSPTpgxqXrqTHU5rdZQ8/lKrxWYlTeqLehhOrRgp2x8zNy O3dNqLttLv5isxPBiwV+X81nz9CbkOLvOLvi49dT1LdsCn2yvuZ7yIOzDZOHPBla1l0Mbd34X l3/Mf1SuxUH91eXCUOXwuPXGvtuu/aj9uvrLOSWW4oxEQy3mouJEAGV9DyeMAgAA X-Env-Sender: prvs=3886151b3=wei.liu2@citrix.com X-Msg-Ref: server-5.tower-21.messagelabs.com!1502371446!69347962!1 X-Originating-IP: [66.165.176.63] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni42MyA9PiAzMDYwNDg=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 9.4.45; banners=-,-,- X-VirusChecked: Checked Received: (qmail 65078 invoked from network); 10 Aug 2017 13:24:08 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-5.tower-21.messagelabs.com with RC4-SHA encrypted SMTP; 10 Aug 2017 13:24:08 -0000 X-IronPort-AV: E=Sophos;i="5.41,353,1498521600"; d="scan'208";a="443317175" From: Wei Liu To: Xen-devel Date: Thu, 10 Aug 2017 14:24:04 +0100 Message-ID: <20170810132404.23831-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 , Jan Beulich Subject: [Xen-devel] [PATCH] 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 error in compat.h. Add a struct domain declaration there because including sched.h doesn't work. Signed-off-by: Wei Liu Acked-by: Jan Beulich --- 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 --- xen/include/xen/compat.h | 1 + xen/include/xen/types.h | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) 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;