Module Name:    src
Committed By:   uebayasi
Date:           Tue Nov  2 13:09:29 UTC 2010

Modified Files:
        src/sys/arch/sparc64/sparc64: pmap.c

Log Message:
Oops, fix build !DIAGNOSTICS again.


To generate a diff of this commit:
cvs rdiff -u -r1.267 -r1.268 src/sys/arch/sparc64/sparc64/pmap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/sparc64/sparc64/pmap.c
diff -u src/sys/arch/sparc64/sparc64/pmap.c:1.267 src/sys/arch/sparc64/sparc64/pmap.c:1.268
--- src/sys/arch/sparc64/sparc64/pmap.c:1.267	Tue Nov  2 12:21:07 2010
+++ src/sys/arch/sparc64/sparc64/pmap.c	Tue Nov  2 13:09:29 2010
@@ -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);

Reply via email to