Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Jun 2024 04:50:20 GMT
From:      Zhenlei Huang <zlei@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: c04006ea039f - stable/14 - icmp: hide icmp_bandlimit_uninit() under VIMAGE
Message-ID:  <202406260450.45Q4oK2o063615@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by zlei:

URL: https://cgit.FreeBSD.org/src/commit/?id=c04006ea039f24761622caa5e2e7e188fa4b2791

commit c04006ea039f24761622caa5e2e7e188fa4b2791
Author:     Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2024-03-24 16:13:23 +0000
Commit:     Zhenlei Huang <zlei@FreeBSD.org>
CommitDate: 2024-06-26 04:48:43 +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
    
    (cherry picked from commit 9d7f17d7467ed8c9740730a8db7a82e4768e5177)
---
 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 89ba56dd1b11..39eb46fd2d90 100644
--- a/sys/netinet/ip_icmp.c
+++ b/sys/netinet/ip_icmp.c
@@ -1118,6 +1118,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)
 {
@@ -1127,6 +1128,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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202406260450.45Q4oK2o063615>