git: 2f8b5e1af04a - stable/13 - net80211: make ieee80211_alloc_node() private

From: Bjoern A. Zeeb <bz_at_FreeBSD.org>
Date: Wed, 29 Nov 2023 16:38:47 UTC
The branch stable/13 has been updated by bz:

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

commit 2f8b5e1af04a948b1d00e70196b38867e46a6157
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2023-10-02 13:57:45 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2023-11-29 16:36:10 +0000

    net80211: make ieee80211_alloc_node() private
    
    Looking through the allocation/free and reference cycle of nodes we have
    a few (publicly) (almost) unused macros and functions.
    Start making them private and reducing the amount of entry paths to the
    same/similar functionality.
    First is to make ieee80211_alloc_node() static as it is nowhere used
    in the tree outside this file.
    
    Sponsored by:   The FreeBSD Foundation
    
    (cherry picked from commit db195a523f9bbeb111b621d2c2c7a46d8b921631)
---
 sys/net80211/ieee80211_node.c | 2 +-
 sys/net80211/ieee80211_node.h | 3 ---
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/sys/net80211/ieee80211_node.c b/sys/net80211/ieee80211_node.c
index b91881a15bc8..a44e19f68e7f 100644
--- a/sys/net80211/ieee80211_node.c
+++ b/sys/net80211/ieee80211_node.c
@@ -1402,7 +1402,7 @@ ieee80211_del_node_nt(struct ieee80211_node_table *nt,
 	ni->ni_table = NULL;
 }
 
-struct ieee80211_node *
+static struct ieee80211_node *
 ieee80211_alloc_node(struct ieee80211_node_table *nt,
 	struct ieee80211vap *vap, const uint8_t macaddr[IEEE80211_ADDR_LEN],
 	const char *func __debrefcnt_used, int line __debrefcnt_used)
diff --git a/sys/net80211/ieee80211_node.h b/sys/net80211/ieee80211_node.h
index 10599c82c126..0ca7197ab534 100644
--- a/sys/net80211/ieee80211_node.h
+++ b/sys/net80211/ieee80211_node.h
@@ -395,9 +395,6 @@ struct ieee80211_node_table {
 	int			nt_inact_init;	/* initial node inact setting */
 };
 
-struct ieee80211_node *ieee80211_alloc_node(struct ieee80211_node_table *,
-		struct ieee80211vap *,
-		const uint8_t macaddr[IEEE80211_ADDR_LEN]);
 struct ieee80211_node *ieee80211_tmp_node(struct ieee80211vap *,
 		const uint8_t macaddr[IEEE80211_ADDR_LEN]);
 struct ieee80211_node *ieee80211_dup_bss(struct ieee80211vap *,