Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/aarch64/aarch64 fix non-diag build



details:   https://anonhg.NetBSD.org/src/rev/87083342ddcd
branches:  trunk
changeset: 972066:87083342ddcd
user:      tnn <tnn%NetBSD.org@localhost>
date:      Fri May 15 01:43:47 2020 +0000

description:
fix non-diag build

diffstat:

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

diffs (28 lines):

diff -r 038637d150de -r 87083342ddcd sys/arch/aarch64/aarch64/pmap.c
--- a/sys/arch/aarch64/aarch64/pmap.c   Fri May 15 00:04:02 2020 +0000
+++ b/sys/arch/aarch64/aarch64/pmap.c   Fri May 15 01:43:47 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.73 2020/05/14 07:59:03 skrll Exp $  */
+/*     $NetBSD: pmap.c,v 1.74 2020/05/15 01:43:47 tnn Exp $    */
 
 /*
  * Copyright (c) 2017 Ryo Shimizu <ryo%nerv.org@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.73 2020/05/14 07:59:03 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.74 2020/05/15 01:43:47 tnn Exp $");
 
 #include "opt_arm_debug.h"
 #include "opt_ddb.h"
@@ -622,7 +622,9 @@
        pg->flags |= PG_BUSY;
        pg->wire_count = 0;
 
+#ifdef DIAGNOSTIC
        struct pmap_page *pp = VM_PAGE_TO_PP(pg);
+#endif
        KASSERT(LIST_EMPTY(&pp->pp_pvhead));
 
        uvm_pagefree(pg);



Home | Main Index | Thread Index | Old Index