From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bob Liu Subject: [PATCH v2 01/16] tmem: fix public head file Date: Tue, 3 Dec 2013 10:19:02 +0800 Message-ID: <1386037157-27261-2-git-send-email-bob.liu@oracle.com> References: <1386037157-27261-1-git-send-email-bob.liu@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1VnfaR-0001P5-Hu for xen-devel@lists.xenproject.org; Tue, 03 Dec 2013 02:19:43 +0000 Received: by mail-pa0-f46.google.com with SMTP id kl14so2248175pab.33 for ; Mon, 02 Dec 2013 18:19:40 -0800 (PST) In-Reply-To: <1386037157-27261-1-git-send-email-bob.liu@oracle.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: keir@xen.org, ian.campbell@citrix.com, JBeulich@suse.com List-Id: xen-devel@lists.xenproject.org Commit 006a687ba4de74d7933c09b43872abc19f126c63 dropped typedef tmem_cli_mfn_t from public tmem.h which may cause some problem. This patch added tmem_cli_mfn_t back with #ifdef __XEN_INTERFACE_VERSION__ around. Signed-off-by: Bob Liu --- xen/include/public/tmem.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xen/include/public/tmem.h b/xen/include/public/tmem.h index dd685ee..5eb2fb4 100644 --- a/xen/include/public/tmem.h +++ b/xen/include/public/tmem.h @@ -95,6 +95,9 @@ #ifndef __ASSEMBLY__ +#if __XEN_INTERFACE_VERSION__ < 0x00040400 +typedef xen_pfn_t tmem_cli_mfn_t; +#endif typedef XEN_GUEST_HANDLE(char) tmem_cli_va_t; struct tmem_op { uint32_t cmd; -- 1.7.10.4