From nobody Sun Mar 24 16:19:27 2024 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 4V2h8w0y8Cz5G0SY; Sun, 24 Mar 2024 16:19:28 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4V2h8w0XpMz4Fsr; Sun, 24 Mar 2024 16:19:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711297168; 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=Tmxd6jYP3JaBpORBEvhrBxhr+wjwsrBjFjwxBrbRjC0=; b=VZZb0f1p+uSr1tA3HO2H7nEA1SjybAgV2rfrnDyDeoej2XJh2cCsAJLdo0t6NMmr3EkHGS TPME/dJfnqhvIws6AbO5fqG+RGUogfBDuqBBQDZLqCII6WOuszv3QsC4JyOLuSmNie0ubU JhYnfS+gZWi9oW5Vj9fZNOlu4D9mFZKDeBWi5bsfQGJRS66REcER0z5UwD7sicvZShOKI7 l+77cSxFLTFPcjwqD6NXfuT/fUwpQPVR2MOxGIF5fw45jYfqwyaArubYPV3U5t4EwSeqnv SYMS7673YG9Cr+NsyfAG8oTjgXJURa2SSiNmPdQN1sU6EpLQi+i2htiFvjiotQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1711297168; a=rsa-sha256; cv=none; b=ASkifHWaXSPChfJdOWHQ+dZeYraohZdbrGtsKclPpGkIGCXyoVEV87n3w2QMTQLpEj45f2 3LpUYSiZfE1O43c/Uz53zz1Ac69TGqyz41vKwZKWY8V6VU+/pBVz1POpkQ3ho4iY6IQMWg JL7vVXWhbULvs9wTOyRh/o5PbNxZY5nWbe9Td+hBmFbiWCxv5q09U8jPf6C5eNfwyiCnU+ zo6lUMEgL4G5xgeBUhNDQBtDsAfRI0QtWEUqGKevx58tLx3MBOldUAPSGW1XRH2nplapHB HYBN+RrIM5LuvvrSBqOzaQ5cthUGa8mDPdJs23ILniWlXRmSd1khGp0SXzXAiw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711297168; 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=Tmxd6jYP3JaBpORBEvhrBxhr+wjwsrBjFjwxBrbRjC0=; b=FuCYdDgpLYXeU8a6wBMes4YawAG60CEoMpORmVR46vVCary7DlaASvb/vRUkbkF/EYgx5g hyUnDg+Vgsx9pocQur8bPzw+/lMvLhaBtPXUilHXazYkARPfmLu+crOoyBgi6Pwtsk5QOY 5W6uX+MNM5OaZ9fjY53vI+Tk2K9n1pHY04N4cziRXu7hw4o6fhS9Mwfazx8HXGVi7/b7OZ ldPaJGr/1geTAkMYbYkiU2lnPtMkt5sGHxaTOUNeJ7Mvlu768teGQQo2bzR3LyZlONClss o8tWXb4uZZK3r5cS65wXnumJfNGw2EiLjzVP8OLmqhfZ5XgKGM9nySlwrS29/g== 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 4V2h8w07vrzg03; Sun, 24 Mar 2024 16:19:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 42OGJRdQ079348; Sun, 24 Mar 2024 16:19:27 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 42OGJReK079345; Sun, 24 Mar 2024 16:19:27 GMT (envelope-from git) Date: Sun, 24 Mar 2024 16:19:27 GMT Message-Id: <202403241619.42OGJReK079345@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Gleb Smirnoff Subject: git: 9d7f17d7467e - main - icmp: hide icmp_bandlimit_uninit() under VIMAGE 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: glebius X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 9d7f17d7467ed8c9740730a8db7a82e4768e5177 Auto-Submitted: auto-generated The branch main has been updated by glebius: URL: https://cgit.FreeBSD.org/src/commit/?id=9d7f17d7467ed8c9740730a8db7a82e4768e5177 commit 9d7f17d7467ed8c9740730a8db7a82e4768e5177 Author: Gleb Smirnoff AuthorDate: 2024-03-24 16:13:23 +0000 Commit: Gleb Smirnoff CommitDate: 2024-03-24 16:13:23 +0000 icmp: hide icmp_bandlimit_uninit() under VIMAGE The uninitialization may be executed only on a kernel with VIMAGE. Reviewed by: kp, tuexen, zlei Differential Revision: https://reviews.freebsd.org/D44476 --- sys/netinet/ip_icmp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/netinet/ip_icmp.c b/sys/netinet/ip_icmp.c index c2aa1ded3266..fd9342831e43 100644 --- a/sys/netinet/ip_icmp.c +++ b/sys/netinet/ip_icmp.c @@ -1116,6 +1116,7 @@ icmp_bandlimit_init(void) VNET_SYSINIT(icmp_bandlimit, SI_SUB_PROTO_DOMAIN, SI_ORDER_ANY, icmp_bandlimit_init, NULL); +#ifdef VIMAGE static void icmp_bandlimit_uninit(void) { @@ -1125,6 +1126,7 @@ icmp_bandlimit_uninit(void) } VNET_SYSUNINIT(icmp_bandlimit, SI_SUB_PROTO_DOMAIN, SI_ORDER_THIRD, icmp_bandlimit_uninit, NULL); +#endif int badport_bandlim(int which)