From nobody Wed Nov 29 16:38:47 2023 X-Original-To: dev-commits-src-branches@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 4SgQ4l602Wz52x5j; Wed, 29 Nov 2023 16:38:47 +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 4SgQ4l5Xssz3Kcp; Wed, 29 Nov 2023 16:38:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1701275927; 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=9zip6/yHIMwWf3tpOeg5pjAWD0gY8Qs8iJwz1d6nVjk=; b=QPDe5QnmAgAtafqmDDY2KwK6Hw3WVGJQB0+S10cIysdNgxy+ThpThqaYzQdeLZM9waZgeH ul1DPwU9gQJZ2x9Aa0pddzFv+rxUmqsPYBJAXWgjPQW07f1zu1Vi493Csn8gwsMR8RRYWp Aiv4P7xIzp2fQ54LCeXSsVRLQ8ihPSTfNwhxRrxcW7PilUdcdkep4U1Gi1We56aW82uubf wozh3rzT4Vd+4olHYSZQo9mL9LSzF4uCMvzzVXNxUmdBJvbMjK8oOt3eR5rnOiCagtWmvA 1uezUBdZlyTXHvfW+yv4i3BTWyodfjVlzwwY1MHtnXLyUnhQx5CwUbGdyrSOzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1701275927; 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=9zip6/yHIMwWf3tpOeg5pjAWD0gY8Qs8iJwz1d6nVjk=; b=MRVbku0H3fv3aOWXQoFjZhIVdL85BHfAa0EXh23EUflECjYsrfF3VoYSO9NwMokKvmbsAm G5uh0rafklt8PCU8rz0zWpsr4OYaLzEdx30IIoyNlrudVGw7bYclEYlL4kypRF74rItzbC Jfq/TNSf46RiSpbN8E5fb4rBIUqTs4BoPqyUvu95ckfJ58VutxeQOulbRORl5a5vXy78XY +yG9WBBeMscr4itMsefCXb9+svakKjagQvy17NpZkXbqwrF5P1xt/AiRNHJWX3IKd2aS8j hBC5PpDeNRJxTVuQ0on36QwcdZg5PnnVPB36my5FpVyOVdCVlMhupMofmrmZlg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1701275927; a=rsa-sha256; cv=none; b=MsvT72PKOyA0YllKgICuuCFcIO8spAO6Ss/Y3TQb5Jyi2+aa26RHnDgCPEilghGT+lmx/7 z/Zeolr1yNFRK5FBkHraSI51jNolfcnw0O7W890uP4o4joRks+2zAdMmMULEQDi34H0OqC rWS5eKFJ3k3TgpID5NOqrlWewizvl4E6DsakPKGGmlT7yybWgXd45FXc3L1OiOvACWo4Zf dP00iQUhdA2KOVOgHnevhkgfesVCkvXStp/mTxPzPmp+seyE7q4B7roSRo8qm8H8UAG++z zvkmk+tvDXWRguTaBb8IUxMu232jIvwnFFjxIknSQR2RAtdlgETtCq8iGydQ7Q== 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 4SgQ4l4c1vz1CgW; Wed, 29 Nov 2023 16:38:47 +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 3ATGcl6J046793; Wed, 29 Nov 2023 16:38:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3ATGclQk046790; Wed, 29 Nov 2023 16:38:47 GMT (envelope-from git) Date: Wed, 29 Nov 2023 16:38:47 GMT Message-Id: <202311291638.3ATGclQk046790@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: 2f8b5e1af04a - stable/13 - net80211: make ieee80211_alloc_node() private List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bz X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 2f8b5e1af04a948b1d00e70196b38867e46a6157 Auto-Submitted: auto-generated The branch stable/13 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=2f8b5e1af04a948b1d00e70196b38867e46a6157 commit 2f8b5e1af04a948b1d00e70196b38867e46a6157 Author: Bjoern A. Zeeb AuthorDate: 2023-10-02 13:57:45 +0000 Commit: Bjoern A. Zeeb 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 *,