git: 320d341292d8 - stable/12 - sys/alq.h: Kernel only file, mark as such
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 06 Dec 2021 15:55:21 UTC
The branch stable/12 has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=320d341292d845b33b2d51230020946262b0b798
commit 320d341292d845b33b2d51230020946262b0b798
Author: Warner Losh <imp@FreeBSD.org>
AuthorDate: 2021-11-24 17:39:10 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2021-12-06 15:54:10 +0000
sys/alq.h: Kernel only file, mark as such
The alq interfaces are 100% in-kernel, so make this whole file #ifdef
_KERNEL. There's no users of this in the tree outside of the kernel, nor
does it define anything that could be useful at peeking into the state
of alq.
Sponsored by: Netflix
(cherry picked from commit 242d6201a6c840a68dc19b0df1157568751e1391)
---
sys/sys/alq.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sys/sys/alq.h b/sys/sys/alq.h
index 536fa2077357..fc8962c13cdb 100644
--- a/sys/sys/alq.h
+++ b/sys/sys/alq.h
@@ -37,6 +37,7 @@
#ifndef _SYS_ALQ_H_
#define _SYS_ALQ_H_
+#ifdef _KERNEL
/*
* Opaque type for the Async. Logging Queue
*/
@@ -143,4 +144,5 @@ alq_post(struct alq *alq, struct ale *ale)
alq_post_flags(alq, ale, 0);
}
+#endif /* _KERNEL */
#endif /* _SYS_ALQ_H_ */