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] [xen-unstable] [IA64] Make local functions static, inden

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [IA64] Make local functions static, indentation
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 04 Oct 2007 17:40:20 -0700
Delivery-date: Thu, 04 Oct 2007 18:31:04 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Alex Williamson <alex.williamson@xxxxxx>
# Date 1190048926 21600
# Node ID 0902e4aae8100c8130617ec7170cf26a6692bacb
# Parent  0f16d41ebb0bdf94072b109815aba7f6210f0f0f
[IA64] Make local functions static, indentation

Signed-off-by: Tristan Gingold <tgingold@xxxxxxx>
---
 xen/arch/ia64/vmx/vtlb.c |   22 ++++++++++++----------
 1 files changed, 12 insertions(+), 10 deletions(-)

diff -r 0f16d41ebb0b -r 0902e4aae810 xen/arch/ia64/vmx/vtlb.c
--- a/xen/arch/ia64/vmx/vtlb.c  Mon Sep 17 11:04:29 2007 -0600
+++ b/xen/arch/ia64/vmx/vtlb.c  Mon Sep 17 11:08:46 2007 -0600
@@ -23,7 +23,7 @@
 
 #include <asm/vmx_vcpu.h>
 
-thash_data_t *__alloc_chain(thash_cb_t *);
+static thash_data_t *__alloc_chain(thash_cb_t *);
 
 static inline void cch_mem_init(thash_cb_t *hcb)
 {
@@ -54,7 +54,7 @@ static thash_data_t *cch_alloc(thash_cb_
 
 static inline int __is_tr_translated(thash_data_t *trp, u64 rid, u64 va)
 {
-    return ((trp->p) && (trp->rid == rid) && ((va-trp->vadr)<PSIZE(trp->ps)));
+    return (trp->p) && (trp->rid == rid) && ((va-trp->vadr) < PSIZE(trp->ps));
 }
 
 /*
@@ -78,14 +78,14 @@ __is_tr_overlap(thash_data_t *trp, u64 r
 
 }
 
-thash_data_t *__vtr_lookup(VCPU *vcpu, u64 va, int is_data)
+static thash_data_t *__vtr_lookup(VCPU *vcpu, u64 va, int is_data)
 {
 
     thash_data_t  *trp;
     int  i;
     u64 rid;
     vcpu_get_rr(vcpu, va, &rid);
-    rid = rid&RR_RID_MASK;;
+    rid = rid & RR_RID_MASK;;
     if (is_data) {
         if (vcpu_quick_region_check(vcpu->arch.dtr_regions,va)) {
             for (trp =(thash_data_t *) vcpu->arch.dtrs,i=0; i<NDTRS; i++, 
trp++) {
@@ -380,12 +380,12 @@ void thash_recycle_cch_all(thash_cb_t *h
 }
 
 
-thash_data_t *__alloc_chain(thash_cb_t *hcb)
+static thash_data_t *__alloc_chain(thash_cb_t *hcb)
 {
     thash_data_t *cch;
 
     cch = cch_alloc(hcb);
-    if(cch == NULL){
+    if (cch == NULL) {
         thash_recycle_cch_all(hcb);
         cch = cch_alloc(hcb);
     }
@@ -448,8 +448,9 @@ int vtr_find_overlap(VCPU *vcpu, u64 va,
     thash_data_t  *trp;
     int  i;
     u64 end, rid;
+
     vcpu_get_rr(vcpu, va, &rid);
-    rid = rid&RR_RID_MASK;;
+    rid = rid & RR_RID_MASK;;
     end = va + PSIZE(ps);
     if (is_data) {
         if (vcpu_quick_region_check(vcpu->arch.dtr_regions,va)) {
@@ -640,9 +641,10 @@ thash_data_t *vtlb_lookup(VCPU *v, u64 v
     thash_cb_t * hcb= &v->arch.vtlb;
 
     cch = __vtr_lookup(v, va, is_data);;
-    if ( cch ) return cch;
-
-    if(vcpu_quick_region_check(v->arch.tc_regions,va)==0)
+    if (cch)
+       return cch;
+
+    if (vcpu_quick_region_check(v->arch.tc_regions,va) == 0)
         return NULL;
     psbits = VMX(v, psbits[(va >> 61)]);
     vcpu_get_rr(v,va,&vrr.rrval);

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [IA64] Make local functions static, indentation, Xen patchbot-unstable <=