Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc64/sparc64 Oops, fix build !DIAGNOSTICS again.



details:   https://anonhg.NetBSD.org/src/rev/66fb2f9a350e
branches:  trunk
changeset: 758322:66fb2f9a350e
user:      uebayasi <uebayasi%NetBSD.org@localhost>
date:      Tue Nov 02 13:09:29 2010 +0000

description:
Oops, fix build !DIAGNOSTICS again.

diffstat:

 sys/arch/sparc64/sparc64/pmap.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 7efd9452344c -r 66fb2f9a350e sys/arch/sparc64/sparc64/pmap.c
--- a/sys/arch/sparc64/sparc64/pmap.c   Tue Nov 02 12:21:07 2010 +0000
+++ b/sys/arch/sparc64/sparc64/pmap.c   Tue Nov 02 13:09:29 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.267 2010/11/02 12:21:07 uebayasi Exp $      */
+/*     $NetBSD: pmap.c,v 1.268 2010/11/02 13:09:29 uebayasi Exp $      */
 /*
  *
  * Copyright (C) 1996-1999 Eduardo Horvath.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.267 2010/11/02 12:21:07 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.268 2010/11/02 13:09:29 uebayasi Exp $");
 
 #undef NO_VCACHE /* Don't forget the locked TLB in dostart */
 #define        HWREF
@@ -1446,7 +1446,9 @@
 
        /* we could be a little smarter and leave pages zeroed */
        for (pg = TAILQ_FIRST(&pm->pm_obj.memq); pg != NULL; pg = nextpg) {
+#ifdef DIAGNOSTIC
                struct vm_page_md *md = VM_PAGE_TO_MD(pg);
+#endif
 
                KASSERT((pg->flags & PG_MARKER) == 0);
                nextpg = TAILQ_NEXT(pg, listq.queue);



Home | Main Index | Thread Index | Old Index