]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
net80211: fix IEEE80211_DEBUG_REFCNT builds
authorBjoern A. Zeeb <bz@FreeBSD.org>
Tue, 29 Nov 2022 18:21:05 +0000 (18:21 +0000)
committerBjoern A. Zeeb <bz@FreeBSD.org>
Tue, 29 Nov 2022 21:20:37 +0000 (21:20 +0000)
commit4a8e4d15465cbf6f1bc4c6a09f50f97ae2d5bd7d
treee568cfa649867e5994abec3ac47b14d36e2e6513
parent67d2aaf078e967bb626cf50c53d679aad71aeaf9
net80211: fix IEEE80211_DEBUG_REFCNT builds

Remove the KPI/KBI changes from ieee80211_node.h and always use the
macros to pass in __func__ and __LINE__ to the functions.
The actual implementations are prefixed by "_" rather than suffixed
by "_debug" as they no longer are "debug"-specific.

Some of the select functions were not actually using the passed in
func, line options; however they are calling other functions which
use them.  Directly call the internal implementation in those cases
passing the arguments on.

Use a file-local __debrefcnt_used define to mark the arguments __unused
in cases when we compile without IEEE80211_DEBUG_REFCNT and hope the
toolchain is intelligent enough to not pass them at all in those cases.

Also _ieee80211_free_node() now has a conflict so make the previous
_ieee80211_free_node() the new __ieee80211_free_node().

Add IEEE80211_DEBUG_REFCNT to the NOTES file on amd64 to keep exercising
the option.

Sponsored by: The FreeBSD Foundation
X-MFC: never
Discussed on: freebsd-wireless
Reviewed by: adrian
Differential Revision: https://reviews.freebsd.org/D37529
sys/amd64/conf/NOTES
sys/net80211/ieee80211_node.c
sys/net80211/ieee80211_node.h