Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x86/x86 Make it compilable in non-diagnostic kernels



details:   https://anonhg.NetBSD.org/src/rev/1dccf10a6ec2
branches:  trunk
changeset: 821962:1dccf10a6ec2
user:      martin <martin%NetBSD.org@localhost>
date:      Thu Feb 23 12:01:12 2017 +0000

description:
Make it compilable in non-diagnostic kernels

diffstat:

 sys/arch/x86/x86/dbregs.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r e138854bfa11 -r 1dccf10a6ec2 sys/arch/x86/x86/dbregs.c
--- a/sys/arch/x86/x86/dbregs.c Thu Feb 23 11:23:22 2017 +0000
+++ b/sys/arch/x86/x86/dbregs.c Thu Feb 23 12:01:12 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dbregs.c,v 1.5 2017/02/23 03:34:22 kamil Exp $ */
+/*     $NetBSD: dbregs.c,v 1.6 2017/02/23 12:01:12 martin Exp $        */
 
 /*-
  * Copyright (c) 2016 The NetBSD Foundation, Inc.
@@ -73,7 +73,7 @@
 void
 x86_dbregs_clear(struct lwp *l)
 {
-       struct pcb *pcb = lwp_getpcb(l);
+       struct pcb *pcb __diagused = lwp_getpcb(l);
 
        KASSERT(pcb->pcb_dbregs == NULL);
 



Home | Main Index | Thread Index | Old Index