From nobody Tue Dec 14 14:15:11 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 8318418EA88E; Tue, 14 Dec 2021 14:15:11 +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 4JD0l32199z4lYL; Tue, 14 Dec 2021 14:15:11 +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 2174B1A2E; Tue, 14 Dec 2021 14:15:11 +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 1BEEFBne094212; Tue, 14 Dec 2021 14:15:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BEEFBik094211; Tue, 14 Dec 2021 14:15:11 GMT (envelope-from git) Date: Tue, 14 Dec 2021 14:15:11 GMT Message-Id: <202112141415.1BEEFBik094211@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: 4d78ef3e811f - main - virtio console: 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: 4d78ef3e811f5fb61ba2b550f0ea990ab12b83a9 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639491311; 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=Nm4QMOJFWgkX5UY/Z1Z3QGbsWdraE/jBXnaihWaQlgo=; b=RuhmBiMDXlXUHGegMFlKiMaY6I3awizu3eCQ4SXdz0UuqEov+OITxa9ia3W49c7bUvhOQt 8wgEcR4XuwE80RlNaaIzFdNZ9mwUzdweTzALYe092bv4lua84Y7D1jY26uqlHv5aA3giuB D7titqlLtSVjz29yQ/vEy0xL4RS+RZ+Va8uT9Et5QAJnUOIayZxLtG9AhBDtfRA05lOdyn FIaAikBos8mhB8Ti/eC5yF15M6yMln+3AfDEUVFoY/p5D/pjF+wdirJ20pSvUBQ9DJseXV Twk6AJjZXR5vs+to2FKYZKzDyE/ViybXlsUo7CHjNryq8MucPDShKplbr0Q/hg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639491311; a=rsa-sha256; cv=none; b=UpNMJZHT+NfZGFhLc20DXCl33+ppYFnaY4Xkk4frN7h+ZvbqpvLFNlUk3+NysEIbDlThRM UguDJwWXBZ097EGN6LZDsIkH4WXa96OxDYag7UtiI794drTSr6L5W34lKtIavXdQcgANZU o2SwYf6MJQ/Fc0SjMMqomz+ThUSg6xD2DT5RMvoj8oMKizpMu8qOU6l4x0l4TFJcmLJwTt 05JAiAZ57qx+xxWCdVLVEmFpS+0cyLhU9vkFuIB3U1Bo8BIEuJvX0jgZd8WVb3oQFyn5sv VXstv5yYUogNVAi90EMuIzxZx0SnUjLEZ8IP64SRKFdeXwj78p2tW6VimRLKJA== 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=4d78ef3e811f5fb61ba2b550f0ea990ab12b83a9 commit 4d78ef3e811f5fb61ba2b550f0ea990ab12b83a9 Author: Mateusz Guzik AuthorDate: 2021-12-14 14:14:34 +0000 Commit: Mateusz Guzik CommitDate: 2021-12-14 14:14:34 +0000 virtio console: plug set-but-not-used vars Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/dev/virtio/console/virtio_console.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/virtio/console/virtio_console.c b/sys/dev/virtio/console/virtio_console.c index b65935303b21..33192f0bf618 100644 --- a/sys/dev/virtio/console/virtio_console.c +++ b/sys/dev/virtio/console/virtio_console.c @@ -616,7 +616,7 @@ vtcon_ctrl_event_enqueue(struct vtcon_softc *sc, struct sglist_seg segs[2]; struct sglist sg; struct virtqueue *vq; - int error; + int error __diagused; vq = sc->vtcon_ctrl_rxvq; @@ -649,7 +649,7 @@ static void vtcon_ctrl_event_requeue(struct vtcon_softc *sc, struct virtio_console_control *control) { - int error; + int error __diagused; bzero(control, VTCON_CTRL_BUFSZ); @@ -1048,7 +1048,7 @@ vtcon_port_create_buf(struct vtcon_port *port) static void vtcon_port_requeue_buf(struct vtcon_port *port, void *buf) { - int error; + int error __diagused; error = vtcon_port_enqueue_buf(port, buf, VTCON_BULK_BUFSZ); KASSERT(error == 0,