git: 7e38993247f5 - main - init_main: Remove the placeholder SYSINIT
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 03 Sep 2025 17:10:22 UTC
The branch main has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=7e38993247f5e82abd4c347079fd256e73a76a00 commit 7e38993247f5e82abd4c347079fd256e73a76a00 Author: Zhenlei Huang <zlei@FreeBSD.org> AuthorDate: 2025-09-03 17:09:11 +0000 Commit: Zhenlei Huang <zlei@FreeBSD.org> CommitDate: 2025-09-03 17:09:11 +0000 init_main: Remove the placeholder SYSINIT This was initially introduced to ensure there is at least one entry so that the sysinit_set symbol is not undefined. Well now that the kernel has plenty of SYSINITs and it is unlikely we will have a kernel without any SYSINITs in future, then this placeholder is not relevant anymore. MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D47916 --- sys/kern/init_main.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index 2fa429e6368c..87ffdb8dbf07 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -144,13 +144,6 @@ int verbose_sysinit = VERBOSE_SYSINIT; FEATURE(invariants, "Kernel compiled with INVARIANTS, may affect performance"); #endif -/* - * This ensures that there is at least one entry so that the sysinit_set - * symbol is not undefined. A sybsystem ID of SI_SUB_DUMMY is never - * executed. - */ -SYSINIT(placeholder, SI_SUB_DUMMY, SI_ORDER_ANY, NULL, NULL); - /* * The sysinit linker set compiled into the kernel. These are placed onto the * sysinit list by mi_startup; sysinit_add can add (e.g., from klds) additional