git: 6031b8fd03fa - stable/13 - net80211: MFC _debrefcnt_used

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

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

commit 6031b8fd03fa67851b8e73c9bde8f619fe432f56
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2023-11-29 01:05:49 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2023-11-29 16:36:10 +0000

    net80211: MFC _debrefcnt_used
    
    While 4a8e4d15465cbf6f1bc4c6a09f50f97ae2d5bd7d (fix IEEE80211_DEBUG_REFCNT
    builds) covers more parts, we cannot MFC all due to KPI/KBI stability.
    We only pick the conditional define of __debrefcnt_used in order to allow
    commits following the original one to be MFCed more easily.
    
    Sponsored by:   The FreeBSD Foundation
    
    (cherry picked from commit 4a8e4d15465cbf6f1bc4c6a09f50f97ae2d5bd7d)
---
 sys/net80211/ieee80211_node.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/sys/net80211/ieee80211_node.c b/sys/net80211/ieee80211_node.c
index 9d80630a6076..5ac611de9a39 100644
--- a/sys/net80211/ieee80211_node.c
+++ b/sys/net80211/ieee80211_node.c
@@ -57,6 +57,12 @@
 
 #include <net/bpf.h>
 
+#ifdef IEEE80211_DEBUG_REFCNT
+#define	__debrefcnt_used
+#else
+#define	__debrefcnt_used	__unused
+#endif
+
 /*
  * IEEE80211_NODE_HASHSIZE must be a power of 2.
  */