Module Name: src
Committed By: martin
Date: Thu Feb 23 12:01:12 UTC 2017
Modified Files:
src/sys/arch/x86/x86: dbregs.c
Log Message:
Make it compilable in non-diagnostic kernels
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/x86/x86/dbregs.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/x86/x86/dbregs.c
diff -u src/sys/arch/x86/x86/dbregs.c:1.5 src/sys/arch/x86/x86/dbregs.c:1.6
--- src/sys/arch/x86/x86/dbregs.c:1.5 Thu Feb 23 03:34:22 2017
+++ src/sys/arch/x86/x86/dbregs.c Thu Feb 23 12:01:12 2017
@@ -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 @@ x86_dbregs_setup_initdbstate(void)
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);