error in xen_resumeclocks() is __diagused.
Avoid compile warning (-->error) when ! options DIAGNOSTIC.
This commit is contained in:
parent
5baac3ac62
commit
93ab6d4522
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: clock.c,v 1.77 2019/02/02 12:32:55 cherry Exp $ */
|
/* $NetBSD: clock.c,v 1.78 2019/03/09 09:51:29 kre Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 2017, 2018 The NetBSD Foundation, Inc.
|
* Copyright (c) 2017, 2018 The NetBSD Foundation, Inc.
|
||||||
@ -36,7 +36,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.77 2019/02/02 12:32:55 cherry Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.78 2019/03/09 09:51:29 kre Exp $");
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
@ -751,7 +751,7 @@ xen_resumeclocks(struct cpu_info *ci)
|
|||||||
{
|
{
|
||||||
char intr_xname[INTRDEVNAMEBUF];
|
char intr_xname[INTRDEVNAMEBUF];
|
||||||
int evtch;
|
int evtch;
|
||||||
int error;
|
int error __diagused;
|
||||||
|
|
||||||
KASSERT(ci == curcpu());
|
KASSERT(ci == curcpu());
|
||||||
KASSERT(kpreempt_disabled());
|
KASSERT(kpreempt_disabled());
|
||||||
|
Loading…
Reference in New Issue
Block a user