The branch stable/14 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=cf1b83414f1e6bbbcbc22470781e67fc7fe430c9
commit cf1b83414f1e6bbbcbc22470781e67fc7fe430c9 Author: Mark Johnston <ma...@freebsd.org> AuthorDate: 2025-07-03 17:21:18 +0000 Commit: Mark Johnston <ma...@freebsd.org> CommitDate: 2025-07-10 13:51:39 +0000 random: Replace a comment with a static assertion No functional change intended. Reviewed by: cem MFC after: 1 week Sponsored by: Stormshield Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D51110 (cherry picked from commit 6ccf1801f225a5e3e71d5b707646731542a994c7) --- sys/dev/random/random_harvestq.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/random/random_harvestq.c b/sys/dev/random/random_harvestq.c index 50aa28dc9851..92af14446e9c 100644 --- a/sys/dev/random/random_harvestq.c +++ b/sys/dev/random/random_harvestq.c @@ -213,9 +213,10 @@ random_kthread(void) kproc_exit(0); /* NOTREACHED */ } -/* This happens well after SI_SUB_RANDOM */ SYSINIT(random_device_h_proc, SI_SUB_KICK_SCHEDULER, SI_ORDER_ANY, kproc_start, &random_proc_kp); +_Static_assert(SI_SUB_KICK_SCHEDULER > SI_SUB_RANDOM, + "random kthread starting before subsystem initialization"); static void rs_epoch_init(void *dummy __unused)