From nobody Mon Jun 26 12:08:18 2023 X-Original-To: dev-commits-src-all@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 4QqRSg0NTYz4k6TR; Mon, 26 Jun 2023 12:08:19 +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 4QqRSf61d5z3hG3; Mon, 26 Jun 2023 12:08:18 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687781299; 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=Vu4IG/DdOJkAcK8vN5p7pNvDNtuUmwyCn/9NpDPKjgg=; b=E1WKx8lsj3xf2pYI5bfsKK2u53aqrqXojrQHIU8oghGFH6mGeArS2niAoH3QA0D4jF46Ts qinKjURhyMun4p7dycqxmmAkWJIXzIytP8wqlTW38hHpMLdOIR7pJhXY3hNmIBeHc2c3Rz Vzn762svCSn8oW729ePN6RVFoZGI+x4HJhrJm2Qwo7hALT9OEa6WMx1iCOBN36ZbTz4hbC qVj/E7cJ6rVZgr3GnzyD//FRaTm9cooi2odnJQ1cM2AnNQ1HBpepeOX1GSkH+DJsDGF+dt hzl+w2PvNG81PncQJhHEF02RCuDCR/HVoFNzcLXKnj7XX/wDi/3yqcY65olGcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687781299; 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=Vu4IG/DdOJkAcK8vN5p7pNvDNtuUmwyCn/9NpDPKjgg=; b=Hm4RxKOpZlF2PSnLB+VrWHEGXZ3TjhomFIStJt3PvxMfi4WkY5ZF7g0dY6pI+ovvGPfqOE dTXeb+VSyF8Lc9j3AN3UMP8pEcksZNEHfSnDwh7atqtVGmz/DC2aIPFGbg2xgHkSY8K0mC a7ywnBLGApn1NdKxY2NhsvWbfD6iWiVgiy0swVMFemd8rn4J1nspokPsisuhfg80OWXhh1 22bM8OijqDU5fIXwyV5WHZzyx6aknubPJgglSQFUmwy1UrJ3wE/H4t6ZCGw+UEfGRTPkEb 0V9fN2xRHEOjJJuym6LGnr/8Wg6q5hIjGmJvNBktxZrsx7wTdIxJCC/YV3ey1Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1687781299; a=rsa-sha256; cv=none; b=HFnuKt3UoFi9ZmJnegWzEQM4xZ17/ufDDbvPPA6YiZdlznAWg3iz7vfe401kOOMqpDZAm+ k0qJ05YD/mDYm6pvSQGnS9ay2a92lkaeuxsy5zrZTnsot/XvK42AD6STIsbCQn6Jys5PIS YFkCv5Yl1mIguaOsxtx5sR2sFYgtV0Z/Yr6peiMXUQYDi7lBOCpmuyBgnbkNxWzWdXsRw9 +S4Rttgr6TX0jGkaFcEZxTyWhAh3rYREFSUZQa8tPhZLwBbau8i6EJdbT8OhO0S87S3Evx +nXvWfvJ6IbtQ6nsQvzTTLhFThfvimwqGcl1b8hMdAnZNfM+sXK8iQiDb133ig== 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 4QqRSf4ywVz18Nr; Mon, 26 Jun 2023 12:08:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 35QC8Ii5082751; Mon, 26 Jun 2023 12:08:18 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 35QC8Isl082750; Mon, 26 Jun 2023 12:08:18 GMT (envelope-from git) Date: Mon, 26 Jun 2023 12:08:18 GMT Message-Id: <202306261208.35QC8Isl082750@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: ca5e52ed3a5d - stable/13 - net80211: make ieee80211_scan_dump_channels private List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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: ca5e52ed3a5d46ee8ab0ed1af5b3616f1f7c188a Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=ca5e52ed3a5d46ee8ab0ed1af5b3616f1f7c188a commit ca5e52ed3a5d46ee8ab0ed1af5b3616f1f7c188a Author: Bjoern A. Zeeb AuthorDate: 2023-03-14 21:01:19 +0000 Commit: Bjoern A. Zeeb CommitDate: 2023-06-26 08:27:10 +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 Differential Revision: https://reviews.freebsd.org/D38833 (cherry picked from commit d7fb679dc96b07c38eedfa8c91817b44b214c799) --- 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 50b3151063fa..1e5b6a3f0d14 100644 --- a/sys/net80211/ieee80211_scan.c +++ b/sys/net80211/ieee80211_scan.c @@ -277,7 +277,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; @@ -294,7 +295,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 07d927cfa1e1..609339ae77e8 100644 --- a/sys/net80211/ieee80211_scan.h +++ b/sys/net80211/ieee80211_scan.h @@ -163,8 +163,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,