git: b83d3eb5b798 - main - sys/_{cpu,domain}set.h: don't require sys/param.h
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 15 Apr 2024 20:41:57 UTC
The branch main has been updated by brooks: URL: https://cgit.FreeBSD.org/src/commit/?id=b83d3eb5b79860c20829d599630e7eae03d7fd53 commit b83d3eb5b79860c20829d599630e7eae03d7fd53 Author: Brooks Davis <brooks@FreeBSD.org> AuthorDate: 2024-04-15 16:53:39 +0000 Commit: Brooks Davis <brooks@FreeBSD.org> CommitDate: 2024-04-15 20:35:40 +0000 sys/_{cpu,domain}set.h: don't require sys/param.h Add machine/param.h for MAXCPU and MAXMEMDOM in the _KERNEL case of sys/_cpuset.h and sys/_domainset.h, making them more self contained. This eliminates the need to include sys/param.h before sys/cpuset.h and sys/domainset.h. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D44466 --- sys/sys/_cpuset.h | 2 ++ sys/sys/_domainset.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/sys/sys/_cpuset.h b/sys/sys/_cpuset.h index 8b77721f4b3c..b87cfb5d3f80 100644 --- a/sys/sys/_cpuset.h +++ b/sys/sys/_cpuset.h @@ -35,6 +35,8 @@ #include <sys/_bitset.h> #ifdef _KERNEL +#include <machine/param.h> + #define CPU_SETSIZE MAXCPU #endif diff --git a/sys/sys/_domainset.h b/sys/sys/_domainset.h index 11ddef0e1909..857aaba67990 100644 --- a/sys/sys/_domainset.h +++ b/sys/sys/_domainset.h @@ -32,6 +32,8 @@ #include <sys/_bitset.h> #ifdef _KERNEL +#include <machine/param.h> + #define DOMAINSET_SETSIZE MAXMEMDOM #endif