# HG changeset patch # User Tristan Gingold # Date 1189911745 -7200 # Node ID fadf4ea206b15dc84f231997a1dd9438218856b8 # Parent 94f6757e01f42ae9c1b9c1b956884f209cb7a958 Make local functions static. Indentation. Signed-off-by: Tristan Gingold diff -r 94f6757e01f4 -r fadf4ea206b1 xen/arch/ia64/vmx/vtlb.c --- a/xen/arch/ia64/vmx/vtlb.c Sat Sep 15 04:33:23 2007 +0200 +++ b/xen/arch/ia64/vmx/vtlb.c Sun Sep 16 05:02:25 2007 +0200 @@ -23,7 +23,7 @@ #include -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)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; iarch.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);