quell shadow variable warnings

This commit is contained in:
drochner 2005-06-01 16:53:51 +00:00
parent 1334ccff34
commit 81d2438e71
2 changed files with 7 additions and 9 deletions

View File

@ -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 @@ pmap_remove(pmap, sva, eva)
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)

View File

@ -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 @@ mips_user_cacheflush(p, va, nbytes, whichcache)
* 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;