From nobody Tue Apr 05 19:55:58 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 AD5501A92EF6; Tue, 5 Apr 2022 19:55:58 +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 4KXz0Z37gNz4XZp; Tue, 5 Apr 2022 19:55:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649188558; 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=FU3YbRcHzOLFJLxLAUPjt1kCbdguQKgKGZsJMTOcOjc=; b=AJ/Yko0zLvs5xFAIoxnibr0xuQA8PoXF4MwklKD7otAbSXyk+WdcEFdYA5PtJQdiXgnxwj DpUGY00jskd5T7rNJmQ5KnjE5SXvyEwF226YcgL2x19n3cA6p3x/dXgyt3+Xeki4+///zk 33u6v+LmlCMB34NIjwSoGvhCHmmi0TEaqRMt7dbyJnebLB7tfwUXPYcmHMNcev4NYEeNTQ GnO6zmoNpi1WIpUo4BuU+c+BJwVdEpr8JVqlbGwwgpOy9WaEcC+dfk5Gi2cj2ewSkdbAz0 SwYXPdUo05cEWkgcCoTuXiRCJqoc6jxwl1ecJjV7ta7ykojhmyC4iEU3qhvlFw== 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 299FF4F4B; Tue, 5 Apr 2022 19:55:58 +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 235JtwEd052431; Tue, 5 Apr 2022 19:55:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 235Jtw4n052430; Tue, 5 Apr 2022 19:55:58 GMT (envelope-from git) Date: Tue, 5 Apr 2022 19:55:58 GMT Message-Id: <202204051955.235Jtw4n052430@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 5035b5f5b0ec - main - bwi: Mark write-only variable as __unused 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: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5035b5f5b0ec3de3f4569fc2c73f516194aae723 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649188558; 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=FU3YbRcHzOLFJLxLAUPjt1kCbdguQKgKGZsJMTOcOjc=; b=Qr5fnrdy7X+/7uOFw4haiweeZbPjLb0U8Lw/UtbZOJluu2sJia5m+xX4TciC/FoIzdsUpV SYKchfuamzbNV+yRMwJlCjK9JrhdiyUmepDJnYlafwccjAuhYrY5MM03tG9DXRpnkMVL+c z2vFXn/LXBgNBv5bcaA19JlT7fCX/r+o4003AwuYE8q+0njV5VIxctwdu26E9hnguLaNMy 65/hui2i0OvcdRrXLYSTt0pIr6jnopgCeSVWykQJlVsN1X5EhhBbJZVAUDpQnWMr4loC9T SfHXeWhXTTXNUgEUf3+Fo+qYTk0fbSXpF7uU6qwfuVWR5/Z2qNpt8Hd0nEmOFg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649188558; a=rsa-sha256; cv=none; b=tuslh6Vr4aVvXs2oYNbGCfN+br7wXgeFEN7xQkj4D9Fjb6PG37tbf5sSVtLtR3LfOnP4vr 523Emo/eP2qzo4XOuEXjRMDUfgiOeEw/nIl76sxBrJD2MLj9ZtvuKaefFYnQtyhgKsQpBW UJtR3ghNI5h/k7TSRcMA+s3nYAiKaCGVfgUouzpYlylOhM81MN2rRjCZ7RoftVKwW3sQsE HPlTH73CcVPYE4cRdtpIiDxXtkSnxfTbLcZrZmOhHEnRE1i8kNfBRoKqO/Jc+Ve72jBU9Q N+kTffU+Out3sXti4ttY9clzeEZzXaU2Atj7Ex1Ck9lpuUIBBYQwlVX0Yq+srg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=5035b5f5b0ec3de3f4569fc2c73f516194aae723 commit 5035b5f5b0ec3de3f4569fc2c73f516194aae723 Author: Warner Losh AuthorDate: 2022-04-05 19:09:27 +0000 Commit: Warner Losh CommitDate: 2022-04-05 19:52:55 +0000 bwi: Mark write-only variable as __unused We read TX_STATUS1 to acknowledge a TX interrupt. We don't use this value for anything, so mark it as unused. We may be able to eliminate this read, but since this hardware is poorly documented and difficult to test, I'm leaving the read in place. Sponsored by: Netflix --- sys/dev/bwi/if_bwi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/bwi/if_bwi.c b/sys/dev/bwi/if_bwi.c index 340de78d6ae2..1c73581728a0 100644 --- a/sys/dev/bwi/if_bwi.c +++ b/sys/dev/bwi/if_bwi.c @@ -3394,7 +3394,7 @@ bwi_txeof(struct bwi_softc *sc) { for (;;) { - uint32_t tx_status0, tx_status1; + uint32_t tx_status0, tx_status1 __unused; uint16_t tx_id; int data_txcnt;