WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ia64-devel

[Xen-ia64-devel] [PATCH] compilation fix of c/s 17723:c684cf331f94

To: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-ia64-devel] [PATCH] compilation fix of c/s 17723:c684cf331f94
From: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Date: Mon, 26 May 2008 12:49:12 +0900
Cc: Espen Skoglund <espen.skoglund@xxxxxxxxxxxxx>
Delivery-date: Sun, 25 May 2008 20:49:28 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.6i
# HG changeset patch
# User Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
# Date 1211773413 -32400
# Node ID e6882de818f7a8932e9c0689bb3b3f8b7c659098
# Parent  28083093cc5de08465c60793a02089a4745ebf3a
[IA64] compilation fix of c/s 17723:c684cf331f94

This patch fixes the compilation error caused by the c/s 17723:c684cf331f94.
Define stub functions which return -ENOSYS.

> ia64-linux-gnu-ld -g -T xen.lds.s -N \
>                 -Map map.out linux-xen/head.o 
> xen-unstable.hg/xen/common/built_in.o xen-unstable.hg/xen/drivers/built_in.o 
> xen-unstable.hg/xen/xsm/built_in.o xen-unstable.hg/xen/arch/ia64/built_in.o \
>                 xen-unstable.hg/xen/common/symbols-dummy.o -o 
> xen-unstable.hg/xen/xen-syms
> xen-unstable.hg/xen/common/built_in.o: In function `__gnttab_unmap_common':
> xen-unstable.hg/xen/common/grant_table.c:566: undefined reference to 
> `iommu_unmap_page'
> xen-unstable.hg/xen/common/built_in.o: In function `__gnttab_map_grant_ref':
> xen-unstable.hg/xen/common/grant_table.c:388: undefined reference to 
> `iommu_map_page'

Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>

diff --git a/xen/arch/ia64/xen/mm.c b/xen/arch/ia64/xen/mm.c
--- a/xen/arch/ia64/xen/mm.c
+++ b/xen/arch/ia64/xen/mm.c
@@ -2935,6 +2935,18 @@
     }
 }
 
+int iommu_map_page(struct domain *d, unsigned long gfn, unsigned long mfn)
+{
+    /* STUB to compile */
+    return -ENOSYS;
+}
+
+int iommu_unmap_page(struct domain *d, unsigned long gfn)
+{
+    /* STUB to compile */
+    return -ENOSYS;
+}
+
 /*
  * Local variables:
  * mode: C


-- 
yamahata

Attachment: 17725_e6882de818f7.patch
Description: Text Data

_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-ia64-devel] [PATCH] compilation fix of c/s 17723:c684cf331f94, Isaku Yamahata <=