Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Feb 2023 21:13:41 GMT
From:      Mitchell Horne <mhorne@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 78919798e79e - main - kern_poll: include sys/sched.h
Message-ID:  <202302092113.319LDfXt042621@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by mhorne:

URL: https://cgit.FreeBSD.org/src/commit/?id=78919798e79e906cdf056a69e5abd6cbe93a1421

commit 78919798e79e906cdf056a69e5abd6cbe93a1421
Author:     Mitchell Horne <mhorne@FreeBSD.org>
AuthorDate: 2023-02-09 21:08:33 +0000
Commit:     Mitchell Horne <mhorne@FreeBSD.org>
CommitDate: 2023-02-09 21:13:02 +0000

    kern_poll: include sys/sched.h
    
    For sched_relinquish(). This fixes the build for some kernel configs.
    
    Reported by:    Jenkins
    Fixes:          1029dab63457 ("mi_switch(): clean up switch types and their usage")
---
 sys/kern/kern_poll.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sys/kern/kern_poll.c b/sys/kern/kern_poll.c
index 64deb7132710..0f6650b50a5c 100644
--- a/sys/kern/kern_poll.c
+++ b/sys/kern/kern_poll.c
@@ -40,6 +40,7 @@ __FBSDID("$FreeBSD$");
 #include <sys/epoch.h>
 #include <sys/eventhandler.h>
 #include <sys/resourcevar.h>
+#include <sys/sched.h>
 #include <sys/socket.h>			/* needed by net/if.h		*/
 #include <sys/sockio.h>
 #include <sys/sysctl.h>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202302092113.319LDfXt042621>