From b83d3eb5b79860c20829d599630e7eae03d7fd53 Mon Sep 17 00:00:00 2001 From: Brooks Davis Date: Mon, 15 Apr 2024 17:53:39 +0100 Subject: [PATCH] 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 8b77721f4b3..b87cfb5d3f8 100644 --- a/sys/sys/_cpuset.h +++ b/sys/sys/_cpuset.h @@ -35,6 +35,8 @@ #include #ifdef _KERNEL +#include + #define CPU_SETSIZE MAXCPU #endif diff --git a/sys/sys/_domainset.h b/sys/sys/_domainset.h index 11ddef0e190..857aaba6799 100644 --- a/sys/sys/_domainset.h +++ b/sys/sys/_domainset.h @@ -32,6 +32,8 @@ #include #ifdef _KERNEL +#include + #define DOMAINSET_SETSIZE MAXMEMDOM #endif