The branch stable/14 has been updated by olce: URL: https://cgit.FreeBSD.org/src/commit/?id=3f5f50ca526fd485aacf0198c6f1ecc948e4bade
commit 3f5f50ca526fd485aacf0198c6f1ecc948e4bade Author: Olivier Certner <o...@freebsd.org> AuthorDate: 2024-03-27 17:54:54 +0000 Commit: Olivier Certner <o...@freebsd.org> CommitDate: 2025-07-28 13:28:00 +0000 runq: More selective includes of <sys/runq.h> to reduce pollution <sys/proc.h> doesn't need <sys/runq.h>. Remove this include and add it back for kernel files that relied on the pollution. Reviewed by: kib MFC after: 1 month Event: Kitchener-Waterloo Hackathon 202506 Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D45387 (cherry picked from commit c21c24adde9822a7f364e131ad7b0c4008723502) --- sys/dev/usb/usb_process.h | 1 - sys/kern/kern_switch.c | 1 + sys/kern/sched_4bsd.c | 1 + sys/kern/sched_ule.c | 1 + sys/sys/proc.h | 1 - 5 files changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/dev/usb/usb_process.h b/sys/dev/usb/usb_process.h index 745d214d2106..1962bdb8b607 100644 --- a/sys/dev/usb/usb_process.h +++ b/sys/dev/usb/usb_process.h @@ -31,7 +31,6 @@ #ifndef USB_GLOBAL_INCLUDE_FILE #include <sys/interrupt.h> #include <sys/priority.h> -#include <sys/runq.h> #endif /* defines */ diff --git a/sys/kern/kern_switch.c b/sys/kern/kern_switch.c index 610566bcfacf..58dfc8fc8497 100644 --- a/sys/kern/kern_switch.c +++ b/sys/kern/kern_switch.c @@ -38,6 +38,7 @@ #include <sys/mutex.h> #include <sys/proc.h> #include <sys/queue.h> +#include <sys/runq.h> #include <sys/sched.h> #include <sys/smp.h> #include <sys/sysctl.h> diff --git a/sys/kern/sched_4bsd.c b/sys/kern/sched_4bsd.c index ff1e57746404..bd8da419736a 100644 --- a/sys/kern/sched_4bsd.c +++ b/sys/kern/sched_4bsd.c @@ -48,6 +48,7 @@ #include <sys/mutex.h> #include <sys/proc.h> #include <sys/resourcevar.h> +#include <sys/runq.h> #include <sys/sched.h> #include <sys/sdt.h> #include <sys/smp.h> diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c index b30e3ac673f5..c3b980dd2924 100644 --- a/sys/kern/sched_ule.c +++ b/sys/kern/sched_ule.c @@ -52,6 +52,7 @@ #include <sys/proc.h> #include <sys/resource.h> #include <sys/resourcevar.h> +#include <sys/runq.h> #include <sys/sched.h> #include <sys/sdt.h> #include <sys/smp.h> diff --git a/sys/sys/proc.h b/sys/sys/proc.h index 4981a5894941..a094af09a21a 100644 --- a/sys/sys/proc.h +++ b/sys/sys/proc.h @@ -55,7 +55,6 @@ #include <sys/osd.h> #include <sys/priority.h> #include <sys/rtprio.h> /* XXX. */ -#include <sys/runq.h> #include <sys/resource.h> #include <sys/sigio.h> #include <sys/signal.h>