From owner-svn-src-all@FreeBSD.ORG Wed Aug 18 07:38:13 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CAD581065694; Wed, 18 Aug 2010 07:38:13 +0000 (UTC) (envelope-from jchandra@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 9FEB08FC21; Wed, 18 Aug 2010 07:38:13 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o7I7cDeZ058551; Wed, 18 Aug 2010 07:38:13 GMT (envelope-from jchandra@svn.freebsd.org) Received: (from jchandra@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o7I7cDhh058549; Wed, 18 Aug 2010 07:38:13 GMT (envelope-from jchandra@svn.freebsd.org) Message-Id: <201008180738.o7I7cDhh058549@svn.freebsd.org> From: "Jayachandran C." Date: Wed, 18 Aug 2010 07:38:13 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r211445 - head/sys/mips/mips X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Aug 2010 07:38:13 -0000 Author: jchandra Date: Wed Aug 18 07:38:13 2010 New Revision: 211445 URL: http://svn.freebsd.org/changeset/base/211445 Log: Make return statements style(9) compliant in MIPS pmap.c Reported by: neel Reviewed by: neel (earlier version) Modified: head/sys/mips/mips/pmap.c Modified: head/sys/mips/mips/pmap.c ============================================================================== --- head/sys/mips/mips/pmap.c Wed Aug 18 07:37:16 2010 (r211444) +++ head/sys/mips/mips/pmap.c Wed Aug 18 07:38:13 2010 (r211445) @@ -267,6 +267,7 @@ static struct local_sysmaps sysmap_lmem[ static __inline pd_entry_t * pmap_segmap(pmap_t pmap, vm_offset_t va) { + return (&pmap->pm_segtab[pmap_seg_index(va)]); } @@ -295,13 +296,15 @@ pmap_pde(pmap_t pmap, vm_offset_t va) static __inline pd_entry_t * pmap_pdpe_to_pde(pd_entry_t *pdpe, vm_offset_t va) { - return pdpe; + + return (pdpe); } static __inline pd_entry_t *pmap_pde(pmap_t pmap, vm_offset_t va) { - return pmap_segmap(pmap, va); + + return (pmap_segmap(pmap, va)); } #endif @@ -356,7 +359,7 @@ pmap_steal_memory(vm_size_t size) } va = MIPS_PHYS_TO_KSEG0(pa); bzero((caddr_t)va, size); - return va; + return (va); } /* @@ -750,7 +753,7 @@ pmap_extract(pmap_t pmap, vm_offset_t va retval = TLBLO_PTE_TO_PA(*pte) | (va & PAGE_MASK); } PMAP_UNLOCK(pmap); - return retval; + return (retval); } /* @@ -1007,7 +1010,7 @@ pmap_unuse_pt(pmap_t pmap, vm_offset_t v pmap->pm_ptphint = mpte; } } - return pmap_unwire_pte_hold(pmap, va, mpte); + return (pmap_unwire_pte_hold(pmap, va, mpte)); } void @@ -1561,7 +1564,7 @@ pmap_remove_pte(struct pmap *pmap, pt_en pmap_remove_entry(pmap, m, va); } - return pmap_unuse_pt(pmap, va, NULL); + return (pmap_unuse_pt(pmap, va, NULL)); } /* @@ -2609,10 +2612,10 @@ pmap_testbit(vm_page_t m, int bit) boolean_t rv = FALSE; if (m->flags & PG_FICTITIOUS) - return rv; + return (rv); if (TAILQ_FIRST(&m->md.pv_list) == NULL) - return rv; + return (rv); mtx_assert(&vm_page_queue_mtx, MA_OWNED); TAILQ_FOREACH(pv, &m->md.pv_list, pv_list) { @@ -2933,7 +2936,7 @@ pmap_mapdev(vm_offset_t pa, vm_size_t si * pa > 0x20000000 we should make proper mapping * using pmap_kenter. */ if ((pa + size - 1) < MIPS_KSEG0_LARGEST_PHYS) - return (void *)MIPS_PHYS_TO_KSEG1(pa); + return ((void *)MIPS_PHYS_TO_KSEG1(pa)); else { offset = pa & PAGE_MASK; size = roundup(size + offset, PAGE_SIZE); @@ -3239,11 +3242,11 @@ page_is_managed(vm_offset_t pa) m = PHYS_TO_VM_PAGE(pa); if (m == NULL) - return 0; + return (0); if ((m->flags & (PG_FICTITIOUS | PG_UNMANAGED)) == 0) - return 1; + return (1); } - return 0; + return (0); } static int