Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/m68k/m68k Fix one more shadow warning in #ifdef DIA...



details:   https://anonhg.NetBSD.org/src/rev/3c516679aa3c
branches:  trunk
changeset: 581573:3c516679aa3c
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Thu Jun 02 16:47:42 2005 +0000

description:
Fix one more shadow warning in #ifdef DIAGNOSTIC.

diffstat:

 sys/arch/m68k/m68k/pmap_motorola.c |  19 ++++++++++---------
 1 files changed, 10 insertions(+), 9 deletions(-)

diffs (50 lines):

diff -r 415da3721121 -r 3c516679aa3c sys/arch/m68k/m68k/pmap_motorola.c
--- a/sys/arch/m68k/m68k/pmap_motorola.c        Thu Jun 02 16:45:41 2005 +0000
+++ b/sys/arch/m68k/m68k/pmap_motorola.c        Thu Jun 02 16:47:42 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap_motorola.c,v 1.15 2005/06/02 14:56:58 tsutsui Exp $        */
+/*     $NetBSD: pmap_motorola.c,v 1.16 2005/06/02 16:47:42 tsutsui Exp $        */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -124,7 +124,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap_motorola.c,v 1.15 2005/06/02 14:56:58 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap_motorola.c,v 1.16 2005/06/02 16:47:42 tsutsui Exp $");
 
 #include "opt_compat_hpux.h"
 
@@ -2253,7 +2253,7 @@
 
                if (refs == 0 && (flags & PRM_KEEPPTPAGE) == 0) {
 #ifdef DIAGNOSTIC
-                       struct pv_entry *pv;
+                       struct pv_entry *ptppv;
 #endif
                        paddr_t ptppa;
 
@@ -2261,15 +2261,16 @@
 #ifdef DIAGNOSTIC
                        if (PAGE_IS_MANAGED(ptppa) == 0)
                                panic("pmap_remove_mapping: unmanaged PT page");
-                       pv = pa_to_pvh(ptppa);
-                       if (pv->pv_ptste == NULL)
+                       ptppv = pa_to_pvh(ptppa);
+                       if (ptppv->pv_ptste == NULL)
                                panic("pmap_remove_mapping: ptste == NULL");
-                       if (pv->pv_pmap != pmap_kernel() ||
-                           pv->pv_va != ptpva ||
-                           pv->pv_next != NULL)
+                       if (ptppv->pv_pmap != pmap_kernel() ||
+                           ptppv->pv_va != ptpva ||
+                           ptppv->pv_next != NULL)
                                panic("pmap_remove_mapping: "
                                    "bad PT page pmap %p, va 0x%lx, next %p",
-                                   pv->pv_pmap, pv->pv_va, pv->pv_next);
+                                   ptppv->pv_pmap, ptppv->pv_va,
+                                   ptppv->pv_next);
 #endif
                        pmap_remove_mapping(pmap_kernel(), ptpva,
                            NULL, PRM_TFLUSH|PRM_CFLUSH);



Home | Main Index | Thread Index | Old Index