Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Fix non-DIAGNOSTIC build
details: https://anonhg.NetBSD.org/src/rev/e74953a2f9f5
branches: trunk
changeset: 980214:e74953a2f9f5
user: skrll <skrll%NetBSD.org@localhost>
date: Wed Jan 27 06:59:08 2021 +0000
description:
Fix non-DIAGNOSTIC build
diffstat:
sys/kern/kern_event.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (30 lines):
diff -r ee67981ad738 -r e74953a2f9f5 sys/kern/kern_event.c
--- a/sys/kern/kern_event.c Wed Jan 27 05:27:01 2021 +0000
+++ b/sys/kern/kern_event.c Wed Jan 27 06:59:08 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_event.c,v 1.116 2021/01/26 19:09:18 jdolecek Exp $ */
+/* $NetBSD: kern_event.c,v 1.117 2021/01/27 06:59:08 skrll Exp $ */
/*-
* Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -59,7 +59,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_event.c,v 1.116 2021/01/26 19:09:18 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_event.c,v 1.117 2021/01/27 06:59:08 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -835,10 +835,9 @@
static void
filt_usertouch(struct knote *kn, struct kevent *kev, long type)
{
- struct kqueue *kq = kn->kn_kq;
int ffctrl;
- KASSERT(mutex_owned(&kq->kq_lock));
+ KASSERT(mutex_owned(&kn->kn_kq->kq_lock));
switch (type) {
case EVENT_REGISTER:
Home |
Main Index |
Thread Index |
Old Index