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-devel

[Xen-devel] PATCH: EXPORT_SYMBOL(direct_remap_area_pages)

To: xen-devel@xxxxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] PATCH: EXPORT_SYMBOL(direct_remap_area_pages)
From: Rik van Riel <riel@xxxxxxxxxx>
Date: Tue, 30 Nov 2004 18:04:27 -0500 (EST)
Cc: AJ Lewis <alewis@xxxxxxxxxx>
Delivery-date: Tue, 30 Nov 2004 23:05:30 +0000
Envelope-to: xen+James.Bulpin@xxxxxxxxxxxx
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx

This (trivial) patch exports the symbol direct_remap_area_pages,
which is needed by the sound modules.  The function declarations
are also moved around so they're in a .h file that's actually
included by the sound core.

Everything still seems to compile.  I will make a kernel RPM with
this fix available tomorrow.


--- linux-2.6.9/arch/xen/i386/mm/ioremap.c.missing      2004-11-30 
17:09:51.000000000 -0500
+++ linux-2.6.9/arch/xen/i386/mm/ioremap.c      2004-11-30 17:20:34.000000000 
-0500
@@ -11,6 +11,7 @@
 #include <linux/vmalloc.h>
 #include <linux/init.h>
 #include <linux/slab.h>
+#include <linux/module.h>
 #include <asm/io.h>
 #include <asm/fixmap.h>
 #include <asm/cacheflush.h>
@@ -495,3 +496,4 @@ int direct_remap_area_pages(struct mm_st

     return 0;
 }
+EXPORT_SYMBOL(direct_remap_area_pages);
--- linux-2.6.9/include/asm-xen/asm-i386/pgalloc.h.missing      2004-11-30 
17:11:33.000000000 -0500
+++ linux-2.6.9/include/asm-xen/asm-i386/pgalloc.h      2004-11-30 
17:19:01.000000000 -0500
@@ -58,15 +58,4 @@ extern void pte_free(struct page *pte);
 #define arch_remove_exec_range(x,y)    do { } while (0)
 #define arch_flush_exec_range(x)       do { } while (0)

-int direct_remap_area_pages(struct mm_struct *mm,
- unsigned long address, - unsigned long machine_addr, - unsigned long size, - pgprot_t prot,
-                            domid_t  domid);
-int __direct_remap_area_pages(struct mm_struct *mm,
- unsigned long address, - unsigned long size, - mmu_update_t *v);
-
 #endif /* _I386_PGALLOC_H */
--- linux-2.6.9/include/asm-xen/asm-i386/pgtable.h.missing      2004-11-30 
17:11:40.000000000 -0500
+++ linux-2.6.9/include/asm-xen/asm-i386/pgtable.h      2004-11-30 
17:18:44.000000000 -0500
@@ -487,6 +487,17 @@ static inline unsigned long arbitrary_vi
 #define kern_addr_valid(addr)  (1)
 #endif /* !CONFIG_DISCONTIGMEM */

+int direct_remap_area_pages(struct mm_struct *mm,
+ unsigned long address, + unsigned long machine_addr, + unsigned long size, + pgprot_t prot,
+                            domid_t  domid);
+int __direct_remap_area_pages(struct mm_struct *mm,
+ unsigned long address, + unsigned long size, + mmu_update_t *v);
+
 #define io_remap_page_range(vma,from,phys,size,prot)                     \
         direct_remap_area_pages(vma->vm_mm,from,phys,size,prot,DOMID_IO)



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] PATCH: EXPORT_SYMBOL(direct_remap_area_pages), Rik van Riel <=