From nobody Sat Sep 27 15:13:59 2025 X-Original-To: dev-commits-src-all@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 4cYrZc1CNwz68DYp; Sat, 27 Sep 2025 15:14:00 +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 4cYrZb3QvKz445D; Sat, 27 Sep 2025 15:13:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1758986039; 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=9dMEvLjB/Q0Mt2QDoupaXUvlx0TwIBIp6VCiNHTdo7w=; b=LG8HKxcNLwkj61pXivJDfJjNI0U0q52pCy5OfC6oex3mc3d0K6T4tRe+Kx3MTAzoLXlLAr uF3ukLAurx9FLIk5sf5BYVI6Mk4c3zudistXRX3xqHQuOLx+TOn+iOIBlehHI2YMmIcEnB UtisD0tTI9uaytgpYM1XUrCn4k3QYcLEJZRj7yLj79ukNfMxJzm+gBktBpGLJKaOg5P+jF XIZWyULlVXfQ2yJ/emt15Hvuu2LTf4h37yt9pvYoRzBqqAwvI70lcuYCYkqMw7+9CwoRF6 wMcjflgO1LOyvuCcZWCDx6Es5aaM6XAvZzEht9O59nH+y3tiJIuHD81J40qVqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1758986039; 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=9dMEvLjB/Q0Mt2QDoupaXUvlx0TwIBIp6VCiNHTdo7w=; b=VfdjNvnzaQp9diHBaSEd79smzZ9BOnUnFGVqjuvppMxStvjtApj2afHP+u59z1+jmdsKKv FYoDOup/DrW/yUnJyp/yFrMD9J7f9Y/f6cfB830lTg2DzSxWE+O28fMF4u5xChMWY7SG2F AA3K25ugDyjfdbqCF2EERYvTB8vKjv6WD3Gok6lxBFEwgB/G8DPEEYHyvmIBjxiCGKDaPX qr2eOw2R5V1dOIRkVaQMd80l1ckujBzMgYZV1jyc4MX6kVVAOIh9xM/WiJ51JUVXiKx5+E wpm55ovZxUG4BZRfSHuBQ1UG0LtiwfRatjQzMmS6dnpD33746l7o6rFsLjh7Pw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1758986039; a=rsa-sha256; cv=none; b=Htdg1kj+7s1TyFxakBI7oX6NfteKJDwW5R6C3mHpDkv4bx+jBDEpXmIZiw+pSS+Wx5H+6O S/ZAd0CQZSLZlv9okUB65OE1rrYu9Zc8oX4MGBCs+X15IB9EiPC223heLiI1/X4dvm5tLr T5tJR4h4DPUMjoEwwMMREfCax2UwL4pDm7ZlYtOxYeGZ/7IXaSiBQoEkCGE8yJDkCyMZCm qdq52yDkNyYTjE5na7UAqyAoRW2DfIdETVGaLByYfgA0bGgs4AX61E18+inJIyruKVJC9X pmAif8nxi5Of460QbPULZdyBSxR31eLKziaz4aM9OfrjEb24fajFroN2bJVmyQ== 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 4cYrZb2mBvzfh9; Sat, 27 Sep 2025 15:13:59 +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 58RFDxXu083203; Sat, 27 Sep 2025 15:13:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 58RFDxRf083200; Sat, 27 Sep 2025 15:13:59 GMT (envelope-from git) Date: Sat, 27 Sep 2025 15:13:59 GMT Message-Id: <202509271513.58RFDxRf083200@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Zhenlei Huang Subject: git: 3038122a7642 - stable/14 - init_main: Remove the placeholder SYSINIT List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@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/stable/14 X-Git-Reftype: branch X-Git-Commit: 3038122a7642e66514658fb6db7c6ab8b4fd3cfb Auto-Submitted: auto-generated The branch stable/14 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=3038122a7642e66514658fb6db7c6ab8b4fd3cfb commit 3038122a7642e66514658fb6db7c6ab8b4fd3cfb Author: Zhenlei Huang AuthorDate: 2025-09-03 17:09:11 +0000 Commit: Zhenlei Huang CommitDate: 2025-09-27 15:11:36 +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 (cherry picked from commit 7e38993247f5e82abd4c347079fd256e73a76a00) --- 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 9fb92dfb12f2..cc9d300caa6e 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -147,13 +147,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