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] Build fixes for blkback on ia64

To: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-ia64-devel] Build fixes for blkback on ia64
From: Horms <horms@xxxxxxxxxxxx>
Date: Fri, 9 Dec 2005 05:51:44 +0000 (UTC)
Delivery-date: Fri, 09 Dec 2005 05:55:19 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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: tin/1.7.10-20050815 ("Grimsay") (UNIX) (Linux/2.6.14-1-686-smp (i686))
Build fixes for blkback on ia64

After 8308:6f62ad959f6b, blkback does not seem to compile on ia64
I'm not sure if the patch below is correct, especially the first
fragment, but here is what it does:

* Call vaddr_pagenr() with valid agruments

The rest of the changes are trivial

* Removes duplicate = in assignment of pending_vaddrs[]

* Remove unused variable struct page *page

* Declare lock_vm_area() and unlock_vm_area() in
  include/asm-xen/driver_util.h

Signed-Off-By: Horms <horms@xxxxxxxxxxxx>

--- a/linux-2.6-xen-sparse/drivers/xen/blkback/blkback.c
+++ b/linux-2.6-xen-sparse/drivers/xen/blkback/blkback.c
@@ -412,8 +412,8 @@
 
                pending_handle(pending_req, i) = map[i].handle;
 #ifdef __ia64__
-               pending_vaddrs[vaddr_pagenr(req, seg)] =
-                       = gnttab_map_vaddr(map[i]);
+               pending_vaddrs[vaddr_pagenr(pending_req, i)] =
+                       (unsigned long) gnttab_map_vaddr(map[i]);
 #else
                set_phys_to_machine(__pa(vaddr(
                        pending_req, i)) >> PAGE_SHIFT,
@@ -526,7 +526,6 @@
 
 static int __init blkif_init(void)
 {
-       struct page *page;
        int i;
 
        if (xen_init() < 0)
@@ -547,8 +546,6 @@
        blkif_interface_init();
        
 #ifdef __ia64__
-       extern unsigned long alloc_empty_foreign_map_page_range(
-               unsigned long pages);
        mmap_vstart = (unsigned long)
                alloc_empty_foreign_map_page_range(mmap_pages);
 #else /* ! ia64 */
--- a/linux-2.6-xen-sparse/include/asm-xen/driver_util.h
+++ b/linux-2.6-xen-sparse/include/asm-xen/driver_util.h
@@ -13,6 +13,9 @@
 extern void lock_vm_area(struct vm_struct *area);
 extern void unlock_vm_area(struct vm_struct *area);
 
+int xen_init(void);
+unsigned long alloc_empty_foreign_map_page_range(unsigned long pages);
+
 #endif /* __ASM_XEN_DRIVER_UTIL_H__ */
 
 /*


_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel

<Prev in Thread] Current Thread [Next in Thread>