Module Name: src Committed By: hannken Date: Sat Jan 1 11:56:15 UTC 2022
Modified Files: src/sys/arch/sparc64/sparc64: pmap.c Log Message: Remove an "#ifdef DIAGNOSTIC", KASSERT() always conumes its expression. To generate a diff of this commit: cvs rdiff -u -r1.312 -r1.313 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.312 src/sys/arch/sparc64/sparc64/pmap.c:1.313 --- src/sys/arch/sparc64/sparc64/pmap.c:1.312 Sat Mar 14 14:05:43 2020 +++ src/sys/arch/sparc64/sparc64/pmap.c Sat Jan 1 11:56:15 2022 @@ -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 @@ pmap_destroy(struct pmap *pm) /* 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);