From nobody Mon Feb 9 00:07:20 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.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 170.10.133.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=1626864346; cv=none; d=zohomail.com; s=zohoarc; b=JjabxZhumYrEP5XhSVFwtQeCaisApACnsZJxcD3mI1xUVZyI2sjSGGod/nKSaIFF8dmYVNtHFoTgrwU/a6w8Br0pyuXS2EPIl/uYSl6hV/N7CQBPJ8qY07YfZIW5jgAVuMF90WmqymV3o+7DjImJdYx0aS1TnlpkSsKBzWt8VUU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1626864346; 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=+GFfJfVVTZSYQDhhHKoH0Ep4BGjzktiWYdqIGgbAEws=; b=QkRAHxdVjQ63L9N+EVJAplP6Vngj5De39u3U/V0htBuYyTHJzqLuQwADtIo+YGiClAa4wVMbqbUOHcZV5bVH6uKdD1Z6NL/TBnaMDI18U83nzO6HtccaDXf62cAs/HJ9RrVRJLaWapZOC9txEulPI3gKRFDqydwz3j4MsPBXfmQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1626864346106445.8212860493089; Wed, 21 Jul 2021 03:45:46 -0700 (PDT) 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-598-168KRem4Oe661Pn5rPdEZw-1; Wed, 21 Jul 2021 06:45:42 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 8F2BC10086CB; Wed, 21 Jul 2021 10:45:37 +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 6398F1970E; Wed, 21 Jul 2021 10:45:37 +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 2CE3C4A705; Wed, 21 Jul 2021 10:45:37 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 16LAgvDx000865 for ; Wed, 21 Jul 2021 06:42:57 -0400 Received: by smtp.corp.redhat.com (Postfix) id E78B019D9B; Wed, 21 Jul 2021 10:42:57 +0000 (UTC) Received: from andariel.local (unknown [10.40.193.36]) by smtp.corp.redhat.com (Postfix) with ESMTP id 560D719C79 for ; Wed, 21 Jul 2021 10:42:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1626864345; 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=+GFfJfVVTZSYQDhhHKoH0Ep4BGjzktiWYdqIGgbAEws=; b=V3Hf+bnw4XWdCZIYtlmHu65q+2ULFJbf38dzXE50LvaC3iuXl30wi1brfnP6FKi0dsVa1P /7OHeEChKglUFifHAUZJkv1tA+F3PnLCSAU7GPuKD8OxtdJcGvi/ukqgBUqdaBeq8ZIa7D etfpu5kpLx9NMRzbHaAUQ4a7lwB3Y8c= X-MC-Unique: 168KRem4Oe661Pn5rPdEZw-1 From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 07/33] qemu: Remove return value from qemuMonitorDomainResumeCallback Date: Wed, 21 Jul 2021 12:42:19 +0200 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 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.23 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) X-ZM-MESSAGEID: 1626864346640100005 Content-Type: text/plain; charset="utf-8" Change the callback prototype and fix the callback registered in the process code. Signed-off-by: Peter Krempa --- src/qemu/qemu_monitor.h | 6 +++--- src/qemu/qemu_process.c | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/qemu/qemu_monitor.h b/src/qemu/qemu_monitor.h index f35f07f3ac..db995de93e 100644 --- a/src/qemu/qemu_monitor.h +++ b/src/qemu/qemu_monitor.h @@ -172,9 +172,9 @@ typedef void (*qemuMonitorDomainResetCallback)(qemuMoni= tor *mon, typedef void (*qemuMonitorDomainStopCallback)(qemuMonitor *mon, virDomainObj *vm, void *opaque); -typedef int (*qemuMonitorDomainResumeCallback)(qemuMonitor *mon, - virDomainObj *vm, - void *opaque); +typedef void (*qemuMonitorDomainResumeCallback)(qemuMonitor *mon, + virDomainObj *vm, + void *opaque); typedef int (*qemuMonitorDomainRTCChangeCallback)(qemuMonitor *mon, virDomainObj *vm, long long offset, diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c index c501a981ca..80e8e20128 100644 --- a/src/qemu/qemu_process.c +++ b/src/qemu/qemu_process.c @@ -703,7 +703,7 @@ qemuProcessHandleStop(qemuMonitor *mon G_GNUC_UNUSED, } -static int +static void qemuProcessHandleResume(qemuMonitor *mon G_GNUC_UNUSED, virDomainObj *vm, void *opaque) @@ -743,7 +743,6 @@ qemuProcessHandleResume(qemuMonitor *mon G_GNUC_UNUSED, virObjectUnlock(vm); virObjectEventStateQueue(driver->domainEventState, event); - return 0; } static int --=20 2.31.1