git: f3493c86529e - stable/12 - lagg(4): Make lagg_list and lagg_detach_cookie static

From: Zhenlei Huang <zlei_at_FreeBSD.org>
Date: Mon, 10 Apr 2023 05:07:59 UTC
The branch stable/12 has been updated by zlei:

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

commit f3493c86529e71351776961127ad16a260f752de
Author:     Zhenlei Huang <zlei@FreeBSD.org>
AuthorDate: 2023-03-29 16:13:02 +0000
Commit:     Zhenlei Huang <zlei@FreeBSD.org>
CommitDate: 2023-04-10 05:06:21 +0000

    lagg(4): Make lagg_list and lagg_detach_cookie static
    
    They are used internally only.
    
    No functional change intended.
    
    MFC after:      1 week
    Differential Revision:  https://reviews.freebsd.org/D39250
    
    (cherry picked from commit fcac5719a1833ad865ac0a7960ff18319a40dfff)
    (cherry picked from commit b452382e5c00facd0fab8a8b0bd53d9564689e55)
---
 sys/net/if_lagg.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/net/if_lagg.c b/sys/net/if_lagg.c
index 9e7a72d7cf0a..c4ea1e9e7637 100644
--- a/sys/net/if_lagg.c
+++ b/sys/net/if_lagg.c
@@ -105,7 +105,7 @@ static struct {
 	{0, NULL}
 };
 
-VNET_DEFINE(SLIST_HEAD(__trhead, lagg_softc), lagg_list); /* list of laggs */
+VNET_DEFINE_STATIC(SLIST_HEAD(__trhead, lagg_softc), lagg_list); /* list of laggs */
 #define	V_lagg_list	VNET(lagg_list)
 VNET_DEFINE_STATIC(struct mtx, lagg_list_mtx);
 #define	V_lagg_list_mtx	VNET(lagg_list_mtx)
@@ -114,7 +114,7 @@ VNET_DEFINE_STATIC(struct mtx, lagg_list_mtx);
 #define	LAGG_LIST_LOCK_DESTROY(x)	mtx_destroy(&V_lagg_list_mtx)
 #define	LAGG_LIST_LOCK(x)		mtx_lock(&V_lagg_list_mtx)
 #define	LAGG_LIST_UNLOCK(x)		mtx_unlock(&V_lagg_list_mtx)
-eventhandler_tag	lagg_detach_cookie = NULL;
+static eventhandler_tag	lagg_detach_cookie = NULL;
 
 static int	lagg_clone_create(struct if_clone *, int, caddr_t);
 static void	lagg_clone_destroy(struct ifnet *);