From nobody Wed Sep 3 17:10:22 2025 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4cH8Hy6Y74z66l52; Wed, 03 Sep 2025 17:10:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cH8Hy5W3yz3C7t; Wed, 03 Sep 2025 17:10:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1756919422; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=aTKIpTV6nT0liqer9go5eXgcjsu2w94fQl68Ua8tRyM=; b=fLEovuelLgfRc0QBvoRTcOnJgO7G1yYRuqJS7eN8BTSTHZPjNQ1rPA+1cLI9OAyT5FmWpn 0d5/QgzyUDPytSPFrIb+BUEgJCu3W4IzZt/vUvMzV4t4I76typ03DRkZ1wXd3RQ3/ItZTT vEuEtfog1YquIMIxz3nRXYi1GQwLQbVPeAzLDxnSoaVQ1beqc702XcK16OxpACAlNnoa7l yzq6PAH3OiopWizeFtnAIr6DieZxE61PuJhjTMdA+0JVkm2/XvMMfDd+nFbT/8xiOuwktx PZAT9S937bAzxxZNg+NDRv0QlssACcae7A/2VBMIvmHQ/yoHhaYKYXbOlwGUxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1756919422; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=aTKIpTV6nT0liqer9go5eXgcjsu2w94fQl68Ua8tRyM=; b=GdahTPBXqTxNWl2s4PJwnXCwm5ux/kt3R9J6Kh7zxRqOcK23fjwbbtU9NKIGFxFl5zrKek n9bOdAcYs3qzo7cGCW7qWJZqPJIAYhOBzxB3fBJeADUoiwbB8S7E+15KG50Wrs9p+YB0nC hIdIzfQSKRGwTHXchAinFuNoFPuoUQWiCQgATWoazY7p4oHw8u8dVeRQQbLLCZ+epXialN CnnMItdjT9PV7BFLzcolkMTR24mhpqjvdNfceQm3saj/hl8B7vNO6jFYEaJLHXTEeshAKV F9inlRP7vRprDQzeSRTrfgKUKOdsD6087Jlz1FDgIGqy2RpXruhqaWpEsuzUXg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1756919422; a=rsa-sha256; cv=none; b=sNVRnVFLOQZZzuyLDP8WHve/18SH0Uh/ZHuz+R/077t0oqjEa3303OgydsxqGRyDf8X9Pf DLncW42JTRUcBlWcCNivvPla47j7EAJigNh0iF4nMvDoXuZxLgNeOq8ri5hTCc/L1g047F J4v7S+ZEy7/5dq0107NpeVtGxy4uqdBCRZKgZta8jOvqlCfVbBOtank0g8i2KQIz7bQKz3 4REtsSsHXBy3d/hcronXl9T5UufgwFM+AVVH4WlrZa92XX7p/+wfkk7tl/xUSV5KcOJmWE FvzjxmEL+xlFfcL3GFa/g44qsyIeKAl/m4ZS0qkGLqoBvV+doqnHGfNgSA7DjA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4cH8Hy4gSvz9XH; Wed, 03 Sep 2025 17:10:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 583HAM8a001572; Wed, 3 Sep 2025 17:10:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 583HAMKw001569; Wed, 3 Sep 2025 17:10:22 GMT (envelope-from git) Date: Wed, 3 Sep 2025 17:10:22 GMT Message-Id: <202509031710.583HAMKw001569@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Zhenlei Huang Subject: git: 7e38993247f5 - main - init_main: Remove the placeholder SYSINIT List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: zlei X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7e38993247f5e82abd4c347079fd256e73a76a00 Auto-Submitted: auto-generated The branch main has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=7e38993247f5e82abd4c347079fd256e73a76a00 commit 7e38993247f5e82abd4c347079fd256e73a76a00 Author: Zhenlei Huang AuthorDate: 2025-09-03 17:09:11 +0000 Commit: Zhenlei Huang 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