From nobody Tue Mar 14 22:19:56 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 4PbnyN2bs9z3xYfh; Tue, 14 Mar 2023 22:19:56 +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 4PbnyN1zpCz3wLC; Tue, 14 Mar 2023 22:19:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678832396; 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=T0+CCm35EFtFrMN+8T63nqhL8d2vTlIMiez557gSKi4=; b=SLTapF69Ksj3osXJS8YU+pxIwa3jZQ3wGKrP4POzodsbJzRT9j8unS+MxOmGtkKcVPbFLc UocVjK82hhAfqsZ5G5rk9+D5J70mNpAF2fS+W6Ww1rtwShbBf3Cpl1Gj9ewOq3Ai07rFF/ Jf1OCYMk1H933zwJSjtrFUIVNKCwzO7LqhvkDZ5qvWtSWVLhTPZc0DYZr0j4keT/UgRE3Z 8THHLQKx5QPTNOGBYaYzCwRl2DD+slntTw3BqegMQ9E/2qThss9SFVksQ5wzw0+NF+R27E y3AADPEO44/fcXLBOxf5OTRzRj1yeyKdCFhgR3YBE+1dzOLMc/i/kuCxOt/JBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678832396; 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=T0+CCm35EFtFrMN+8T63nqhL8d2vTlIMiez557gSKi4=; b=HS+i3dZh65Urj6E+QB24xgzQEfd7ipOBqfjp+uTBgUn4rEMmZ6GB7kqorCyOi9W37Q3PVa KUcapP148ARtTCKv6GmHRa+CxyHV77BTz0UFdF1YEmDekwSsI0oX2AiihJWeXHhxix2iuH PA59+fMFz14QXLd2KRR5a6zz0dUo6VECru+erjFcJXldfhtc+wELOub60oCcRfQrGJqoyc GjfTMNqJHcMA3tp/vIRAdtLZ8M8ZR7nbjzW1ShzPbPPnOIRNndiQ/lO7qR9NgIvJjcWnlx evuZvZH5FGUSgKViCvOrG3OfaybMw6fpaquO5lmQIdKNHTQkKPzFAtcgo+5VUg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1678832396; a=rsa-sha256; cv=none; b=S5+VN926Y92UH1Y7lU98hQS8aacIin7ef1Mb06MZPB0M0qbai59pb88r8xKs4tQBTq8rS6 SKjJyv9krzdagE5RaWMUyvaDvMcCj3Z0S7ggnyGlGFfdGeC4+Y/3EqI7JiYpzCAUI6u33n S4Dhbd+ZMHIbFepnf1AeZ+PpAPS25BEHCAmc+v+vjlMWFg/I+R9P7glmQ8gaE0c66XeouI lTO1L01o5OuKk5YCz1j+cQDS8v/sQ09FGrB4HYcgKcyeFzNP8QqQUQ/3n9JXdEMcV3Toar NXngISuSP//V/exg69SnNS8oYy4PMcwH7QdtdwnAkswflidkljw5AZKEFuIxkw== 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 4PbnyN0qQvzsHY; Tue, 14 Mar 2023 22:19:56 +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 32EMJuR2034392; Tue, 14 Mar 2023 22:19:56 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 32EMJuEn034391; Tue, 14 Mar 2023 22:19:56 GMT (envelope-from git) Date: Tue, 14 Mar 2023 22:19:56 GMT Message-Id: <202303142219.32EMJuEn034391@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: d7fb679dc96b - main - 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/main X-Git-Reftype: branch X-Git-Commit: d7fb679dc96b07c38eedfa8c91817b44b214c799 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=d7fb679dc96b07c38eedfa8c91817b44b214c799 commit d7fb679dc96b07c38eedfa8c91817b44b214c799 Author: Bjoern A. Zeeb AuthorDate: 2023-03-14 21:01:19 +0000 Commit: Bjoern A. Zeeb 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,