aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2023-01-19 18:32:45 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2023-01-19 18:32:45 +0000
commitfc1901abcfa95bbdf985ee86ce24fa73c30d5076 (patch)
tree66cfef5ee0e9d656b3190ee8799f2e41afc62ed0
parent6a284cacb1e56a81dff7f5c34bbbd7ed1a0b6cb1 (diff)
downloadsrc-fc1901abcfa95bbdf985ee86ce24fa73c30d5076.tar.gz
src-fc1901abcfa95bbdf985ee86ce24fa73c30d5076.zip
<sys/sysctl.h>: Reduce overly broad header pollution.
Commit d3f96f661050e9bd21fe29931992a8b9e67ff189 removed <sys/queue.h> and replaced it with the very broad <sys/systm.h>. However, none of the changes to sysctl.h in that commit require anything defined in <sys/systm.h>. On the other hand, <sys/sysctl.h> does still make use of queue macros. Drop the include of <sys/systm.h> and re-add <sys/queue.h>. Reviewed by: imp, kib, asomers Obtained from: CheriBSD Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D37950
-rw-r--r--sys/sys/sysctl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/sysctl.h b/sys/sys/sysctl.h
index 207ffe4a62e7..79da4772615f 100644
--- a/sys/sys/sysctl.h
+++ b/sys/sys/sysctl.h
@@ -39,8 +39,8 @@
#define _SYS_SYSCTL_H_
#ifdef _KERNEL
+#include <sys/queue.h>
#include <sys/tree.h>
-#include <sys/systm.h>
#endif
/*