git: 55339af296ca - main - Expand __diagused to include the KTR kernel diagnostic option.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 26 Feb 2022 18:02:51 UTC
The branch main has been updated by scottl:
URL: https://cgit.FreeBSD.org/src/commit/?id=55339af296ca2a360a82e46d6699fd1b57ecf815
commit 55339af296ca2a360a82e46d6699fd1b57ecf815
Author: Scott Long <scottl@FreeBSD.org>
AuthorDate: 2022-02-26 18:01:54 +0000
Commit: Scott Long <scottl@FreeBSD.org>
CommitDate: 2022-02-26 18:01:54 +0000
Expand __diagused to include the KTR kernel diagnostic option.
---
sys/sys/systm.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/sys/systm.h b/sys/sys/systm.h
index f2ffa7e6b815..f597ae2a1f03 100644
--- a/sys/sys/systm.h
+++ b/sys/sys/systm.h
@@ -554,7 +554,7 @@ void _gone_in_dev(device_t dev, int major, const char *msg);
#define gone_in(major, msg) __gone_ok(major, msg) _gone_in(major, msg)
#define gone_in_dev(dev, major, msg) __gone_ok(major, msg) _gone_in_dev(dev, major, msg)
-#if defined(INVARIANTS) || defined(WITNESS)
+#if defined(INVARIANTS) || defined(WITNESS) || defined(KTR)
#define __diagused
#else
#define __diagused __unused