Source-Changes-HG archive

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

[src/trunk]: src/sys/uvm add a __diagused to fix non-DIAGNOSTIC kernel



details:   https://anonhg.NetBSD.org/src/rev/00f415747b42
branches:  trunk
changeset: 1012904:00f415747b42
user:      tnn <tnn%NetBSD.org@localhost>
date:      Sat Aug 15 01:27:22 2020 +0000

description:
add a __diagused to fix non-DIAGNOSTIC kernel

diffstat:

 sys/uvm/uvm_page.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 1735e0f33c56 -r 00f415747b42 sys/uvm/uvm_page.c
--- a/sys/uvm/uvm_page.c        Fri Aug 14 18:35:57 2020 +0000
+++ b/sys/uvm/uvm_page.c        Sat Aug 15 01:27:22 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uvm_page.c,v 1.245 2020/08/14 09:06:15 chs Exp $       */
+/*     $NetBSD: uvm_page.c,v 1.246 2020/08/15 01:27:22 tnn Exp $       */
 
 /*-
  * Copyright (c) 2019, 2020 The NetBSD Foundation, Inc.
@@ -95,7 +95,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_page.c,v 1.245 2020/08/14 09:06:15 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_page.c,v 1.246 2020/08/15 01:27:22 tnn Exp $");
 
 #include "opt_ddb.h"
 #include "opt_uvm.h"
@@ -1790,7 +1790,7 @@
 uvm_pagelookup(struct uvm_object *obj, voff_t off)
 {
        struct vm_page *pg;
-       bool ddb = false;
+       bool ddb __diagused = false;
 #ifdef DDB
        extern int db_active;
        ddb = db_active != 0;



Home | Main Index | Thread Index | Old Index