git: dcda49233de3 - main - sys/acl.h: reduce header pollution
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 15 Apr 2024 20:42:01 UTC
The branch main has been updated by brooks:
URL: https://cgit.FreeBSD.org/src/commit/?id=dcda49233de3efb9ed361692e118ecdf2f692339
commit dcda49233de3efb9ed361692e118ecdf2f692339
Author: Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2024-04-15 16:55:07 +0000
Commit: Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2024-04-15 20:35:41 +0000
sys/acl.h: reduce header pollution
In commit d1dfd921774f0 the acl allocator was switched from malloc(9) to
uma(9) and done in a way required vm/uma.h and prerequisites. This added
considerable header pollution to sys/sysproto.h. The uma details were
hidden in commit b998d381f2868, but the header pollution remained. Add
less broad includes as required to keep the header self contained.
Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D44468
---
sys/sys/acl.h | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/sys/sys/acl.h b/sys/sys/acl.h
index 66517cff543e..c119cfabef32 100644
--- a/sys/sys/acl.h
+++ b/sys/sys/acl.h
@@ -36,9 +36,11 @@
#ifndef _SYS_ACL_H_
#define _SYS_ACL_H_
-#include <sys/param.h>
-#include <sys/queue.h>
-#include <vm/uma.h>
+#include <sys/types.h>
+#include <sys/_null.h>
+#ifdef _KERNEL
+#include <sys/malloc.h>
+#endif
/*
* POSIX.1e and NFSv4 ACL types and related constants.