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 01/16] xenpaging: whitespace fixes after addition of

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH 01/16] xenpaging: whitespace fixes after addition of __get_paged_frame
From: Olaf Hering <olaf@xxxxxxxxx>
Date: Tue, 02 Nov 2010 23:30:11 +0100
Delivery-date: Tue, 02 Nov 2010 15:34:09 -0700
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1288737013; l=2771; s=domk; d=aepfle.de; h=References:Subject:To:From:Date:X-RZG-CLASS-ID:X-RZG-AUTH; bh=JZkcffR6R4xwTHH2r2B/naux0UY=; b=ezfQrIzUfT+9l+602dXOnY4AlnhVWisOEfDxqqrKpoqCDCKuCbI4zSUqLTY0pDpCsTm 3C7G+5pWtcw55c10kC0aP9xrnlHBYFKJu6Ji6cDI8y2pb8e8LXhqwtKlnUV5HFb/JeG+h JfiPPMlk6bn1BEUopIC27jwrE2hwYZG7OXM=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20101102223010.603002116@xxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: quilt/0.48-4.4
Cleanup whitespace which was introduced in patch that added __get_paged_frame.
Convert tabs to spaces to follow the coding style in this file.

Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>

---
 xen/common/grant_table.c |   26 +++++++++++++-------------
 1 file changed, 13 insertions(+), 13 deletions(-)

--- xen-unstable.hg-4.1.22344.orig/xen/common/grant_table.c
+++ xen-unstable.hg-4.1.22344/xen/common/grant_table.c
@@ -147,13 +147,13 @@ static int __get_paged_frame(unsigned lo
     struct p2m_domain *p2m;
     p2m_type_t p2mt;
     mfn_t mfn;
-    
+
     p2m = p2m_get_hostp2m(rd);
     if ( readonly )
         mfn = gfn_to_mfn(p2m, gfn, &p2mt);
     else
         mfn = gfn_to_mfn_unshare(p2m, gfn, &p2mt, 1);
-    
+
     if ( p2m_is_valid(p2mt) ) {
         *frame = mfn_x(mfn);
         if ( p2m_is_paged(p2mt) )
@@ -167,7 +167,7 @@ static int __get_paged_frame(unsigned lo
 #else
     *frame = readonly ? gmfn_to_mfn(rd, gfn) : gfn_to_mfn_private(rd, gfn);
 #endif
-    
+
     return rc;
 }
 
@@ -565,7 +565,7 @@ __gnttab_map_grant_ref(
             gfn = sha1 ? sha1->frame : sha2->full_page.frame;
             rc = __get_paged_frame(gfn, &frame, !!(op->flags & 
GNTMAP_readonly), rd);
             if ( rc != GNTST_okay )
-                goto unlock_out;
+                goto unlock_out;
             act->gfn = gfn;
             act->domid = ld->domain_id;
             act->frame = frame;
@@ -1852,7 +1852,7 @@ __acquire_grant_for_copy(
             gfn = sha1->frame;
             rc = __get_paged_frame(gfn, &grant_frame, readonly, rd);
             if ( rc != GNTST_okay )
-               goto unlock_out;
+                goto unlock_out;
             act->gfn = gfn;
             is_sub_page = 0;
             trans_page_off = 0;
@@ -1864,7 +1864,7 @@ __acquire_grant_for_copy(
             gfn = sha2->full_page.frame;
             rc = __get_paged_frame(gfn, &grant_frame, readonly, rd);
             if ( rc != GNTST_okay )
-                   goto unlock_out;
+                goto unlock_out;
             act->gfn = gfn;
             is_sub_page = 0;
             trans_page_off = 0;
@@ -1876,7 +1876,7 @@ __acquire_grant_for_copy(
             gfn = sha2->sub_page.frame;
             rc = __get_paged_frame(gfn, &grant_frame, readonly, rd);
             if ( rc != GNTST_okay )
-                   goto unlock_out;
+                goto unlock_out;
             act->gfn = gfn;
             is_sub_page = 1;
             trans_page_off = sha2->sub_page.page_off;
@@ -1973,9 +1973,9 @@ __gnttab_copy(
     else
     {
 #ifdef CONFIG_X86
-       rc = __get_paged_frame(op->source.u.gmfn, &s_frame, 1, sd);
-       if ( rc != GNTST_okay )
-               goto error_out;
+        rc = __get_paged_frame(op->source.u.gmfn, &s_frame, 1, sd);
+        if ( rc != GNTST_okay )
+            goto error_out;
 #else
         s_frame = gmfn_to_mfn(sd, op->source.u.gmfn);        
 #endif
@@ -2012,9 +2012,9 @@ __gnttab_copy(
     else
     {
 #ifdef CONFIG_X86
-       rc = __get_paged_frame(op->dest.u.gmfn, &d_frame, 0, dd);
-       if ( rc != GNTST_okay )
-               goto error_out;
+        rc = __get_paged_frame(op->dest.u.gmfn, &d_frame, 0, dd);
+        if ( rc != GNTST_okay )
+            goto error_out;
 #else
         d_frame = gmfn_to_mfn(dd, op->dest.u.gmfn);
 #endif


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