From 3745de3e82f89bc92e6fde926e0eca4d407209ce Mon Sep 17 00:00:00 2001 From: martin Date: Thu, 23 Feb 2017 12:01:12 +0000 Subject: [PATCH] Make it compilable in non-diagnostic kernels --- sys/arch/x86/x86/dbregs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/arch/x86/x86/dbregs.c b/sys/arch/x86/x86/dbregs.c index f8f88186a504..61525b481bf5 100644 --- a/sys/arch/x86/x86/dbregs.c +++ b/sys/arch/x86/x86/dbregs.c @@ -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);