Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 09 Apr 2026 23:38:08 +0000
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 428034ad0dbe - main - sys/kobj.h: Make self-sufficient
Message-ID:  <69d83860.3068a.5a480990@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=428034ad0dbe3e39fc9cc96656688dd1f3d408a9

commit 428034ad0dbe3e39fc9cc96656688dd1f3d408a9
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2026-04-04 06:53:00 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2026-04-09 23:37:21 +0000

    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
---
 sys/sys/kobj.h                         | 2 ++
 tools/build/test-includes/badfiles.inc | 1 -
 2 files changed, 2 insertions(+), 1 deletion(-)

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 \


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69d83860.3068a.5a480990>