git: d7fb679dc96b - main - net80211: make ieee80211_scan_dump_channels private

From: Bjoern A. Zeeb <bz_at_FreeBSD.org>
Date: Tue, 14 Mar 2023 22:19:56 UTC
The branch main has been updated by bz:

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

commit d7fb679dc96b07c38eedfa8c91817b44b214c799
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2023-03-14 21:01:19 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2023-03-14 22:17:03 +0000

    net80211: make ieee80211_scan_dump_channels private
    
    ieee80211_scan_dump_channels() is only used locally and only when
    IEEE80211_DEBUG is compiled.  Stop exporting it, make it file local
    and hide under the #ifdef to reduce the footprint for production
    kernels a tiny bit.
    
    Sponsored by:   The FreeBSD Foundation
    MFC after:      3 days
    Differential Revision: https://reviews.freebsd.org/D38833
---
 sys/net80211/ieee80211_scan.c | 4 ++--
 sys/net80211/ieee80211_scan.h | 2 --
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/sys/net80211/ieee80211_scan.c b/sys/net80211/ieee80211_scan.c
index fd387e68e39f..e1cced8a4b06 100644
--- a/sys/net80211/ieee80211_scan.c
+++ b/sys/net80211/ieee80211_scan.c
@@ -278,7 +278,8 @@ ieee80211_scan_update_locked(struct ieee80211vap *vap,
 	}
 }
 
-void
+#ifdef IEEE80211_DEBUG
+static void
 ieee80211_scan_dump_channels(const struct ieee80211_scan_state *ss)
 {
 	struct ieee80211com *ic = ss->ss_ic;
@@ -295,7 +296,6 @@ ieee80211_scan_dump_channels(const struct ieee80211_scan_state *ss)
 	}
 }
 
-#ifdef IEEE80211_DEBUG
 void
 ieee80211_scan_dump(struct ieee80211_scan_state *ss)
 {
diff --git a/sys/net80211/ieee80211_scan.h b/sys/net80211/ieee80211_scan.h
index 8db7bd03e2d7..a214dc435813 100644
--- a/sys/net80211/ieee80211_scan.h
+++ b/sys/net80211/ieee80211_scan.h
@@ -164,8 +164,6 @@ void	ieee80211_scan_detach(struct ieee80211com *);
 void	ieee80211_scan_vattach(struct ieee80211vap *);
 void	ieee80211_scan_vdetach(struct ieee80211vap *);
 
-void	ieee80211_scan_dump_channels(const struct ieee80211_scan_state *);
-
 #define	IEEE80211_SCAN_FOREVER	0x7fffffff
 int	ieee80211_start_scan(struct ieee80211vap *, int flags,
 		u_int duration, u_int mindwell, u_int maxdwell,