Source-Changes-HG archive

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

[.joined/src/trunk]: .joined/src/sys/arch/sparc64/sparc64 Remove an "#ifdef D...



details:   https://anonhg.NetBSD.org/.joined/src/rev/db1e1b6495c3
branches:  trunk
changeset: 359375:db1e1b6495c3
user:      hannken <hannken%NetBSD.org@localhost>
date:      Sat Jan 01 11:56:15 2022 +0000

description:
Remove an "#ifdef DIAGNOSTIC", KASSERT() always conumes its expression.

diffstat:

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

diffs (28 lines):

diff -r 8b1a5811d5b6 -r db1e1b6495c3 sys/arch/sparc64/sparc64/pmap.c
--- a/sys/arch/sparc64/sparc64/pmap.c   Sat Jan 01 11:45:37 2022 +0000
+++ b/sys/arch/sparc64/sparc64/pmap.c   Sat Jan 01 11:56:15 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.312 2020/03/14 14:05:43 ad Exp $    */
+/*     $NetBSD: pmap.c,v 1.313 2022/01/01 11:56:15 hannken Exp $       */
 /*
  *
  * Copyright (C) 1996-1999 Eduardo Horvath.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.312 2020/03/14 14:05:43 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.313 2022/01/01 11:56:15 hannken Exp $");
 
 #undef NO_VCACHE /* Don't forget the locked TLB in dostart */
 #define        HWREF
@@ -1537,9 +1537,7 @@
 
        /* we could be a little smarter and leave pages zeroed */
        while ((pg = TAILQ_FIRST(&pm->pm_ptps)) != NULL) {
-#ifdef DIAGNOSTIC
                struct vm_page_md *md = VM_PAGE_TO_MD(pg);
-#endif
 
                TAILQ_REMOVE(&pm->pm_ptps, pg, pageq.queue);
                KASSERT(md->mdpg_pvh.pv_pmap == NULL);



Home | Main Index | Thread Index | Old Index