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

[Xen-changelog] cleanup whitespace.

# HG changeset patch
# User cl349@xxxxxxxxxxxxxxxxxxxx
# Node ID be46dad1467d63c1e63152e826fdf53e245294e0
# Parent  24e881f81cead3336d4afbbcc174bab27c7df1b2
cleanup whitespace.
Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx>

diff -r 24e881f81cea -r be46dad1467d 
linux-2.6-xen-sparse/arch/xen/i386/mm/ioremap.c
--- a/linux-2.6-xen-sparse/arch/xen/i386/mm/ioremap.c   Tue Aug 16 16:34:46 2005
+++ b/linux-2.6-xen-sparse/arch/xen/i386/mm/ioremap.c   Tue Aug 16 17:00:52 2005
@@ -332,10 +332,10 @@
        for (i = 0; i < size; i += PAGE_SIZE) {
                if ((v - u) == MAX_DIRECTMAP_MMU_QUEUE) {
                        /* Fill in the PTE pointers. */
-                        generic_page_range(mm, start_address, 
-                                           address-start_address,
-                                           direct_remap_area_pte_fn, &w);
-                        w = u;
+                       generic_page_range(mm, start_address, 
+                                          address - start_address,
+                                          direct_remap_area_pte_fn, &w);
+                       w = u;
                        if (HYPERVISOR_mmu_update(u, v - u, NULL, domid) < 0)
                                return -EFAULT;
                        v = u;
@@ -355,9 +355,8 @@
 
        if (v != u) {
                /* get the ptep's filled in */
-                generic_page_range(mm, start_address, 
-                                   address-start_address,
-                                   direct_remap_area_pte_fn, &w);
+               generic_page_range(mm, start_address, address - start_address,
+                                  direct_remap_area_pte_fn, &w);
                if (unlikely(HYPERVISOR_mmu_update(u, v - u, NULL, domid) < 0))
                        return -EFAULT;
        }
@@ -370,32 +369,34 @@
 EXPORT_SYMBOL(direct_remap_area_pages);
 
 int create_lookup_pte_addr(struct mm_struct *mm, 
-                           unsigned long address,
-                           unsigned long *ptep)
-{
-    int f(pte_t *pte, struct page *pte_page, unsigned long addr, void *data) 
-    {
-        unsigned long *ptep = (unsigned long *)data;
-        if (ptep) *ptep = (pfn_to_mfn(page_to_pfn(pte_page)) << PAGE_SHIFT)
-                       | ((unsigned long)pte & ~PAGE_MASK);
-        return 0;
-    }
-
-    return generic_page_range(mm, address, PAGE_SIZE, f, ptep);
+                          unsigned long address,
+                          unsigned long *ptep)
+{
+       int f(pte_t *pte, struct page *pte_page, unsigned long addr,
+             void *data) {
+               unsigned long *ptep = (unsigned long *)data;
+               if (ptep)
+                       *ptep = (pfn_to_mfn(page_to_pfn(pte_page)) <<
+                                PAGE_SHIFT) |
+                               ((unsigned long)pte & ~PAGE_MASK);
+               return 0;
+       }
+
+       return generic_page_range(mm, address, PAGE_SIZE, f, ptep);
 }
 
 EXPORT_SYMBOL(create_lookup_pte_addr);
 
 int touch_pte_range(struct mm_struct *mm,
-                    unsigned long address,
-                    unsigned long size)
-{
-    int f(pte_t *pte, struct page *pte_page, unsigned long addr, void *data) 
-    {
-        return 0;
-    }
-
-    return generic_page_range(mm, address, size, f, NULL);
+                   unsigned long address,
+                   unsigned long size)
+{
+       int f(pte_t *pte, struct page *pte_page, unsigned long addr,
+             void *data) {
+               return 0;
+       }
+
+       return generic_page_range(mm, address, size, f, NULL);
 }                 
 
 EXPORT_SYMBOL(touch_pte_range);

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] cleanup whitespace., Xen patchbot -unstable <=