Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mips/mips Fix non-DIAGNOSTIC build



details:   https://anonhg.NetBSD.org/src/rev/8a9ba5a74464
branches:  trunk
changeset: 823843:8a9ba5a74464
user:      skrll <skrll%NetBSD.org@localhost>
date:      Thu May 11 09:09:54 2017 +0000

description:
Fix non-DIAGNOSTIC build

diffstat:

 sys/arch/mips/mips/vm_machdep.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r c598de56ef4e -r 8a9ba5a74464 sys/arch/mips/mips/vm_machdep.c
--- a/sys/arch/mips/mips/vm_machdep.c   Thu May 11 07:56:43 2017 +0000
+++ b/sys/arch/mips/mips/vm_machdep.c   Thu May 11 09:09:54 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vm_machdep.c,v 1.157 2017/05/10 22:23:13 skrll Exp $   */
+/*     $NetBSD: vm_machdep.c,v 1.158 2017/05/11 09:09:54 skrll Exp $   */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.157 2017/05/10 22:23:13 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.158 2017/05/11 09:09:54 skrll Exp $");
 
 #include "opt_ddb.h"
 #include "opt_coredump.h"
@@ -206,7 +206,7 @@
         */
        const struct vm_page * const pg = TAILQ_FIRST(&pglist);
        KASSERT(pg != NULL);
-       const paddr_t pa = VM_PAGE_TO_PHYS(pg);
+       const paddr_t __diagused pa = VM_PAGE_TO_PHYS(pg);
        KASSERTMSG(pa >= pmap_limits.avail_start,
            "pa (%#"PRIxPADDR") < pmap_limits.avail_start (%#"PRIxPADDR")",
             pa, pmap_limits.avail_start);



Home | Main Index | Thread Index | Old Index