From nobody Mon Feb 9 18:19:43 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) client-ip=63.128.21.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1607094574; cv=none; d=zohomail.com; s=zohoarc; b=Nwaop1JTmeCi1vNCDbM72AqkDDbqlxGn0jH26C9oEJchLxbPSfYUGkua00wN6dcWo42zyw95RaEPhJrVKqYCra0EPPROhEMOUprM2eC5S+ucEeHp4E/G57WBpZoOPPaTjbLgFnEV/8gnmfuHBi2uxfr+U7nsDuPosQWO7RRE11w= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1607094574; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=PLBGP93lBADQ43HvAHeG7p8V5qeNl+Gs5vhB0luhVKM=; b=BAuG6BGQFKmx23FM8h7B7ibaY2GMTy8Kq/0QjL1Li9FtqZZql3rZfVMfVH0fkTj62/Yh9o7J+SV1RoCPRdL23FUWPkMQHbfVKvxluqrDdWuoTQ5fobh4B+0i4JLkibm9NhIxmXjB6Q7xwe9kahd0jUrQEFQuD9coKc7JPrudJnM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by mx.zohomail.com with SMTPS id 1607094574373181.63203698862435; Fri, 4 Dec 2020 07:09:34 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-482-S2lG_2pvOx202n6X1C6IeA-1; Fri, 04 Dec 2020 10:09:28 -0500 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 35E9D180A09A; Fri, 4 Dec 2020 15:09:23 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0D5991002391; Fri, 4 Dec 2020 15:09:23 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id CC5C74EA6C; Fri, 4 Dec 2020 15:09:22 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 0B4F8HZY031299 for ; Fri, 4 Dec 2020 10:08:17 -0500 Received: by smtp.corp.redhat.com (Postfix) id D6CC45D9DB; Fri, 4 Dec 2020 15:08:17 +0000 (UTC) Received: from speedmetal.lan (unknown [10.40.208.3]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3140A5D9D7 for ; Fri, 4 Dec 2020 15:08:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1607094572; h=from:from:sender:sender: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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=PLBGP93lBADQ43HvAHeG7p8V5qeNl+Gs5vhB0luhVKM=; b=UPNtu/R2qk/yERvidyvGB0uoAc8HYfHEmZHLMtXXFqI1Uo0AhNykYtSXmwqyWMaFVuupaT mKHGaBdGy9fexZX5IX2N315naG5rKIJpM/lTtlPQqp7bmBC+f6J4unGxM6LbPAUaa/iqsW D61gcplZlSNE23BAvR47BFJupic69iw= X-MC-Unique: S2lG_2pvOx202n6X1C6IeA-1 From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 6/7] qemu: monitor: Remove unused qemuMonitorGetBlockJobInfo Date: Fri, 4 Dec 2020 16:08:01 +0100 Message-Id: <69dbec4a000b2a3639f05c4940065895a27eae5d.1607094319.git.pkrempa@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Signed-off-by: Peter Krempa --- src/qemu/qemu_monitor.c | 29 ----------------------------- src/qemu/qemu_monitor.h | 4 ---- 2 files changed, 33 deletions(-) diff --git a/src/qemu/qemu_monitor.c b/src/qemu/qemu_monitor.c index 551b65e778..40f2997cb6 100644 --- a/src/qemu/qemu_monitor.c +++ b/src/qemu/qemu_monitor.c @@ -3393,35 +3393,6 @@ qemuMonitorGetAllBlockJobInfo(qemuMonitorPtr mon, } -/** - * qemuMonitorGetBlockJobInfo: - * Parse Block Job information, and populate info for the named device. - * Return 1 if info available, 0 if device has no block job, and -1 on err= or. - */ -int -qemuMonitorGetBlockJobInfo(qemuMonitorPtr mon, - const char *alias, - qemuMonitorBlockJobInfoPtr info) -{ - GHashTable *all; - qemuMonitorBlockJobInfoPtr data; - int ret =3D 0; - - VIR_DEBUG("alias=3D%s, info=3D%p", alias, info); - - if (!(all =3D qemuMonitorGetAllBlockJobInfo(mon, true))) - return -1; - - if ((data =3D virHashLookup(all, alias))) { - *info =3D *data; - ret =3D 1; - } - - virHashFree(all); - return ret; -} - - int qemuMonitorJobDismiss(qemuMonitorPtr mon, const char *jobname) diff --git a/src/qemu/qemu_monitor.h b/src/qemu/qemu_monitor.h index a2f28f9492..3a09b995ce 100644 --- a/src/qemu/qemu_monitor.h +++ b/src/qemu/qemu_monitor.h @@ -1123,10 +1123,6 @@ struct _qemuMonitorBlockJobInfo { GHashTable *qemuMonitorGetAllBlockJobInfo(qemuMonitorPtr mon, bool rawjobname); -int qemuMonitorGetBlockJobInfo(qemuMonitorPtr mon, - const char *device, - qemuMonitorBlockJobInfoPtr info) - ATTRIBUTE_NONNULL(2) ATTRIBUTE_NONNULL(3); int qemuMonitorJobDismiss(qemuMonitorPtr mon, const char *jobname) --=20 2.28.0