Module Name: src
Committed By: riastradh
Date: Sun Jul 24 19:23:44 UTC 2022
Modified Files:
src/sys/kern: kern_event.c
Log Message:
kern_event.c: Mark KASSERT-only static function as __diagused.
Otherwise clang objects with -Wunneeded-internal-declaration.
To generate a diff of this commit:
cvs rdiff -u -r1.145 -r1.146 src/sys/kern/kern_event.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/kern/kern_event.c
diff -u src/sys/kern/kern_event.c:1.145 src/sys/kern/kern_event.c:1.146
--- src/sys/kern/kern_event.c:1.145 Tue Jul 19 01:03:05 2022
+++ src/sys/kern/kern_event.c Sun Jul 24 19:23:44 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_event.c,v 1.145 2022/07/19 01:03:05 thorpej Exp $ */
+/* $NetBSD: kern_event.c,v 1.146 2022/07/24 19:23:44 riastradh Exp $ */
/*-
* Copyright (c) 2008, 2009, 2021 The NetBSD Foundation, Inc.
@@ -63,7 +63,7 @@
#endif /* _KERNEL_OPT */
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_event.c,v 1.145 2022/07/19 01:03:05 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_event.c,v 1.146 2022/07/24 19:23:44 riastradh Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -169,7 +169,7 @@ knote_foplock_exit(struct knote *kn)
mutex_exit(&KNOTE_TO_KIMPL(kn)->ki_foplock);
}
-static inline bool
+static inline bool __diagused
knote_foplock_owned(struct knote *kn)
{
return mutex_owned(&KNOTE_TO_KIMPL(kn)->ki_foplock);