From nobody Fri Apr 22 22:16:46 2022 X-Original-To: dev-commits-src-main@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 463B8198CBA5; Fri, 22 Apr 2022 22:16:47 +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 4KlTKC1788z4fFY; Fri, 22 Apr 2022 22:16:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650665807; 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=CjzvHOZxv0VzaJd78+QjmhzT/nuI8n+E/aTwlo1nWkM=; b=maS1B22aBgpsw5d08L1OCMhsb0g3fGHt/554CVFsL3BV8wC9VViUNh8qlvU0PjDkgAO/4k 6xDDvAAllQNLbYWuWaB451F6V1DRmnmjPFDXwR1kQL17FLM/dhvaEpegfQaltb9gO2tPbB k4KYAHe3e7NwE+t5YDhvZAg0LlQaOXbvjkBqEpR/MTFKy5CdCZBKCDq8PgENmN29azxNnY qGjXr4wCp/CgMcB/4XQ6adbumtCxyjrnKDiplqFbBI52WqwlCA1nMq4N9mQBlPrXIQ4qar MGUXfeaaBHXNrAaRCbwxjAhY67ZS+dPEEeFLUnGVu4VIDkc0PsAOeZS9cKHzog== 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 E8BB0254EA; Fri, 22 Apr 2022 22:16:46 +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 23MMGkgO039832; Fri, 22 Apr 2022 22:16:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23MMGkrE039831; Fri, 22 Apr 2022 22:16:46 GMT (envelope-from git) Date: Fri, 22 Apr 2022 22:16:46 GMT Message-Id: <202204222216.23MMGkrE039831@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mateusz Guzik Subject: git: f7daf710382a - main - iwm: plug set-but-not-used vars List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mjg X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f7daf710382afae9ba5824a89ef522800759c3f2 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650665807; 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=CjzvHOZxv0VzaJd78+QjmhzT/nuI8n+E/aTwlo1nWkM=; b=iwUueNzWHUgkkmprQIQJ8Q9Wsvntu7+JHJdeuNfkJmsqha+CLNX6LVz5J7sIlQJ/3Y9nNi UEho+qp5GHdoa9HRCGwY27vhcsFcbU/4EOZ+ZvBGQYqIC7IhkfvGdHVhxrgJwlGL+CU9Wk KRPxJzgU6lDZJsG8epLBfhsFKC+2kqMpKQzwMV2pjrn0UO3BmXkUHiTr7IKp63n5YQkG/r LOTBP4twDWsGz6ZhD2VJj+0jNaV6sEj4jZSoY3dFoRnTYyg/SSk9LJv0+OwnLq94hXZ2AB gPJX5LkHXGdSdl59gBvsVehy0BobY3yaBX6GGjIWCC9875RYdzBLcJSWu//3QA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1650665807; a=rsa-sha256; cv=none; b=VH03e7N6niM/eJFIkLgJHQtu2TFXd5BnZYFohHmaNLfAbpqKKKaGJH21y2zieCcJpoo0XM gxii7ZqFoB7es4TGhGFel+Kyi+qKFDvgigNjHWrLip6QGBWVHEW1XdFwH6Mp6H03Kgf5tR lefDgdpTUoakrdeKOPGdoH1XS3RodFSTNYrogS5wzM0eYeV3o/GGQ9giPoj0S2vVxxIE5a TmAOjYn4DL+3P8CHNq9uZnFV/Bq79yE1jqljKnbJRRCU2fv3Ggom7hOrj7ttE0iyVuR/VG I6KuK/UX8Lypw6YV42FykPtYrbtbMkiENkU7VfE1Rd3Q+D1aIuQFco3I+ng3yA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=f7daf710382afae9ba5824a89ef522800759c3f2 commit f7daf710382afae9ba5824a89ef522800759c3f2 Author: Mateusz Guzik AuthorDate: 2022-04-22 22:16:25 +0000 Commit: Mateusz Guzik CommitDate: 2022-04-22 22:16:25 +0000 iwm: plug set-but-not-used vars Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/dev/iwm/if_iwm.c | 11 ++++++++++- sys/dev/iwm/if_iwm_time_event.c | 2 ++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/sys/dev/iwm/if_iwm.c b/sys/dev/iwm/if_iwm.c index 439a68da9253..257441531a37 100644 --- a/sys/dev/iwm/if_iwm.c +++ b/sys/dev/iwm/if_iwm.c @@ -3056,7 +3056,12 @@ static int iwm_get_noise(struct iwm_softc *sc, const struct iwm_statistics_rx_non_phy *stats) { - int i, total, nbant, noise; + int i, noise; +#ifdef IWM_DEBUG + int nbant, total; +#else + int nbant __unused, total __unused; +#endif total = nbant = noise = 0; for (i = 0; i < 3; i++) { @@ -5487,12 +5492,14 @@ iwm_handle_rxb(struct iwm_softc *sc, struct mbuf *m) break; case IWM_SCAN_ITERATION_COMPLETE_UMAC: { +#ifdef IWM_DEBUG struct iwm_umac_scan_iter_complete_notif *notif; notif = (void *)pkt->data; IWM_DPRINTF(sc, IWM_DEBUG_SCAN, "UMAC scan iteration " "complete, status=0x%x, %d channels scanned\n", notif->status, notif->scanned_channels); +#endif break; } @@ -5522,6 +5529,7 @@ iwm_handle_rxb(struct iwm_softc *sc, struct mbuf *m) break; case IWM_SCD_QUEUE_CFG: { +#ifdef IWM_DEBUG struct iwm_scd_txq_cfg_rsp *rsp; rsp = (void *)pkt->data; @@ -5530,6 +5538,7 @@ iwm_handle_rxb(struct iwm_softc *sc, struct mbuf *m) "tid=%d scd_queue=%d\n", rsp->token, rsp->sta_id, rsp->tid, rsp->scd_queue); +#endif break; } diff --git a/sys/dev/iwm/if_iwm_time_event.c b/sys/dev/iwm/if_iwm_time_event.c index 03aefb11b021..57c7e389a6be 100644 --- a/sys/dev/iwm/if_iwm_time_event.c +++ b/sys/dev/iwm/if_iwm_time_event.c @@ -187,6 +187,7 @@ iwm_te_handle_notif(struct iwm_softc *sc, le32toh(notif->action)); if (!le32toh(notif->status)) { +#ifdef IWM_DEBUG const char *msg; if (notif->action & htole32(IWM_TE_V2_NOTIF_HOST_EVENT_START)) @@ -195,6 +196,7 @@ iwm_te_handle_notif(struct iwm_softc *sc, msg = "Time Event end notification failure"; IWM_DPRINTF(sc, IWM_DEBUG_TE, "%s\n", msg); +#endif } if (le32toh(notif->action) & IWM_TE_V2_NOTIF_HOST_EVENT_END) {