aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2026-04-04 06:53:00 +0000
committerWarner Losh <imp@FreeBSD.org>2026-04-09 23:37:21 +0000
commit428034ad0dbe3e39fc9cc96656688dd1f3d408a9 (patch)
tree45a31f485ad272f847ec9a564e795dcfc71d685e
parent6b58d10fc6d51ddcf5ee81628ead74d3dadb9bf6 (diff)
sys/kobj.h: Make self-sufficient
kobj.h just needs sys/types.h (because it uses u_int, it can't use sys/_types.h). kobj.h isn't a standard thing, so we don't need to be careful about namespace pollution. Sponsored by: Netflix
-rw-r--r--sys/sys/kobj.h2
-rw-r--r--tools/build/test-includes/badfiles.inc1
2 files changed, 2 insertions, 1 deletions
diff --git a/sys/sys/kobj.h b/sys/sys/kobj.h
index 7adc01c1f1f3..7705f609bea9 100644
--- a/sys/sys/kobj.h
+++ b/sys/sys/kobj.h
@@ -29,6 +29,8 @@
#ifndef _SYS_KOBJ_H_
#define _SYS_KOBJ_H_
+#include <sys/types.h>
+
/*
* Forward declarations
*/
diff --git a/tools/build/test-includes/badfiles.inc b/tools/build/test-includes/badfiles.inc
index 3c7390b22a89..a0aada4f016f 100644
--- a/tools/build/test-includes/badfiles.inc
+++ b/tools/build/test-includes/badfiles.inc
@@ -63,7 +63,6 @@ BADHDRS= \
sys/kdb.h \
sys/kernel.h \
sys/khelp.h \
- sys/kobj.h \
sys/ksem.h \
sys/ktls.h \
sys/libkern.h \