From nobody Tue Dec 14 14:08:42 2021 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 9EDE218E8932; Tue, 14 Dec 2021 14:08:43 +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 4JD0bb0krpz4jjx; Tue, 14 Dec 2021 14:08:43 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 EE30018E7; Tue, 14 Dec 2021 14:08:42 +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 1BEE8glB080508; Tue, 14 Dec 2021 14:08:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BEE8gu8080507; Tue, 14 Dec 2021 14:08:42 GMT (envelope-from git) Date: Tue, 14 Dec 2021 14:08:42 GMT Message-Id: <202112141408.1BEE8gu8080507@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: 0d3b2bd7e6aa - main - vtnet: plug set-but-not-used vars 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: mjg X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0d3b2bd7e6aabed080095249fb08105982ee827a Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639490923; 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=0oIVtN1BnuT0t2pUC9OzwYJkChml8OgqgDkx98wWojI=; b=UTJXj/ROz6CLX1tcb70ynjuXiRK4lkg21GHK4cXSY0En6GUKsI2Cxq+3j3UIN/cuDrJQfF ApKn330mCLXiBFzwScWoTyQ9n53yYZd5Gv3+aNey4p/qCVuMZfeZNZudg2TmphMFIUYNNl NyNL2c9GKkZF44VCN8Hu6Su9f+JMFXHjXQCTi3EPE51ZJUH1Zf7M1xnKByNGK+06IxWtti 7gaKzwTO1QlqyWoRvmj0gPvTBQJc2Kdyjo6oGz8s1oyVjoBWg4sq342P7QjtTqTxgeQePh yqTgqFAZi4AtzWj2rZNMa6NvUtGmoVf1gRxyZGztKO0g4ippHJPLaJF0zxW5xw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639490923; a=rsa-sha256; cv=none; b=TbkrewPWayDyoShieb+3jDuvVSlJlwbGylA1m2s+QvKX0eh/rlA0g/6fNnY2YuWFvtRYSp 3upIk/SiyuFQXTr/fvvn2JpGdsNLA4ZXDn/Lr0p8009djRFZ7/T1LTihQnUKCVyfRrrdEu F3Oec6bPM2PEWM+MN5PcmHn8npKPVUhPSQnP+LflyGSPXAg+JtzP9P+M/BewFIhk/7c+uP OW6UEmuNCJY77Yq2/hIiolC1DyLFZMSFJx5f7S81UtjzwbfHF8XjqpcB2No14IxNpnQgla y9XQ4gDmH9odqeF8Q0t/bkc2J/lis8nW21PnMuYYunYE9fbMiv8j9NV8TbhM9Q== 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=0d3b2bd7e6aabed080095249fb08105982ee827a commit 0d3b2bd7e6aabed080095249fb08105982ee827a Author: Mateusz Guzik AuthorDate: 2021-12-14 14:04:36 +0000 Commit: Mateusz Guzik CommitDate: 2021-12-14 14:08:28 +0000 vtnet: plug set-but-not-used vars Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/dev/virtio/network/if_vtnet.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sys/dev/virtio/network/if_vtnet.c b/sys/dev/virtio/network/if_vtnet.c index bbda5cb90707..913ae5e50efc 100644 --- a/sys/dev/virtio/network/if_vtnet.c +++ b/sys/dev/virtio/network/if_vtnet.c @@ -1811,10 +1811,14 @@ static int vtnet_rxq_csum_data_valid(struct vtnet_rxq *rxq, struct mbuf *m, uint16_t etype, int hoff, struct virtio_net_hdr *hdr __unused) { +#if 0 struct vtnet_softc *sc; +#endif int protocol; +#if 0 sc = rxq->vtnrx_sc; +#endif switch (etype) { #if defined(INET) @@ -1905,7 +1909,7 @@ vtnet_rxq_discard_merged_bufs(struct vtnet_rxq *rxq, int nbufs) static void vtnet_rxq_discard_buf(struct vtnet_rxq *rxq, struct mbuf *m) { - int error; + int error __diagused; /* * Requeue the discarded mbuf. This should always be successful @@ -3392,11 +3396,9 @@ vtnet_update_rx_offloads(struct vtnet_softc *sc) static int vtnet_reinit(struct vtnet_softc *sc) { - device_t dev; struct ifnet *ifp; int error; - dev = sc->vtnet_dev; ifp = sc->vtnet_ifp; bcopy(IF_LLADDR(ifp), sc->vtnet_hwaddr, ETHER_ADDR_LEN); @@ -3431,10 +3433,8 @@ vtnet_reinit(struct vtnet_softc *sc) static void vtnet_init_locked(struct vtnet_softc *sc, int init_mode) { - device_t dev; struct ifnet *ifp; - dev = sc->vtnet_dev; ifp = sc->vtnet_ifp; VTNET_CORE_LOCK_ASSERT(sc);