Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/mips/mips quell shadow variable warnings



details:   https://anonhg.NetBSD.org/src/rev/c79ecbca8b01
branches:  trunk
changeset: 581442:c79ecbca8b01
user:      drochner <drochner%NetBSD.org@localhost>
date:      Wed Jun 01 16:53:51 2005 +0000

description:
quell shadow variable warnings

diffstat:

 sys/arch/mips/mips/pmap.c        |   6 ++----
 sys/arch/mips/mips/sys_machdep.c |  10 +++++-----
 2 files changed, 7 insertions(+), 9 deletions(-)

diffs (63 lines):

diff -r 66e4773abb89 -r c79ecbca8b01 sys/arch/mips/mips/pmap.c
--- a/sys/arch/mips/mips/pmap.c Wed Jun 01 16:53:07 2005 +0000
+++ b/sys/arch/mips/mips/pmap.c Wed Jun 01 16:53:51 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.158 2005/03/26 09:51:02 tsutsui Exp $       */
+/*     $NetBSD: pmap.c,v 1.159 2005/06/01 16:53:51 drochner Exp $      */
 
 /*-
  * Copyright (c) 1998, 2001 The NetBSD Foundation, Inc.
@@ -74,7 +74,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.158 2005/03/26 09:51:02 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.159 2005/06/01 16:53:51 drochner Exp $");
 
 /*
  *     Manages physical address maps.
@@ -726,8 +726,6 @@
        remove_stats.calls++;
 #endif
        if (pmap == pmap_kernel()) {
-               pt_entry_t *pte;
-
                /* remove entries from kernel pmap */
 #ifdef PARANOIADIAG
                if (sva < VM_MIN_KERNEL_ADDRESS || eva >= virtual_end)
diff -r 66e4773abb89 -r c79ecbca8b01 sys/arch/mips/mips/sys_machdep.c
--- a/sys/arch/mips/mips/sys_machdep.c  Wed Jun 01 16:53:07 2005 +0000
+++ b/sys/arch/mips/mips/sys_machdep.c  Wed Jun 01 16:53:51 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sys_machdep.c,v 1.28 2005/02/25 07:20:10 simonb Exp $  */
+/*     $NetBSD: sys_machdep.c,v 1.29 2005/06/01 16:53:51 drochner Exp $        */
 
 /*
  * Copyright (c) 1992, 1993
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sys_machdep.c,v 1.28 2005/02/25 07:20:10 simonb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_machdep.c,v 1.29 2005/06/01 16:53:51 drochner Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -157,14 +157,14 @@
  * non-cacheable.
  */
 int
-mips_user_cachectl(p, va, nbytes, cachectl)
+mips_user_cachectl(p, va, nbytes, cachectlval)
        struct proc *p;
        vaddr_t va;
        size_t nbytes;
-       int cachectl;
+       int cachectlval;
 {
        /* validate the cache we're going to flush. */
-       switch (cachectl) {
+       switch (cachectlval) {
        case CACHEABLE:
        case UNCACHEABLE:
                break;



Home | Main Index | Thread Index | Old Index