From nobody Mon Feb 9 06:34:01 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.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.129.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=1652793434; cv=none; d=zohomail.com; s=zohoarc; b=SOirUe7m+OvmX7V+TNFa4r1JSYeLwqoZSHztJ14OaHldf9W5G8udQM4j499GzckBABgodRiuOSclIklBkruBy0kttrC9+qmUpIU8tI1P6xyZl6/mbVdza6YJ0E+v3KRpWWkVsLJvgXOtQri8R/JvtiZa1JHsHR6tLWKQANEaEoU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1652793434; 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=bDGPT9AMPECKJy6FpKeNXyiUCQ+jKNLjjBDq91yrcPw=; b=MQKDiPvgcHEiwnoKcqkzwx35vqttXW/kEH+jy6eifms/G1HhIdY1FLkwwhqAq0mBlLKYUUB3+YLKkmcyEYBdzSPO4tQtwbISRVWzMEoR9drHdecdKImMUOyR+H5OB+E2PRTkv5YaKT5kbjN8JEYEtgsoMmdpUS0Ah49AkZRTigg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.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.129.124]) by mx.zohomail.com with SMTPS id 1652793434546525.8528213636678; Tue, 17 May 2022 06:17:14 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-661-xDKZMf2eNXyTOMHtrkppBg-1; Tue, 17 May 2022 09:17:07 -0400 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 1CD4A18A658E; Tue, 17 May 2022 13:16:55 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 019C240316B; Tue, 17 May 2022 13:16:55 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id BBC4A194705F; Tue, 17 May 2022 13:16:54 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 77278194707B for ; Tue, 17 May 2022 13:16:53 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 4C3A542D4EA; Tue, 17 May 2022 13:16:53 +0000 (UTC) Received: from speedmetal.lan (unknown [10.40.208.21]) by smtp.corp.redhat.com (Postfix) with ESMTP id BE29042D4E7 for ; Tue, 17 May 2022 13:16:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652793433; 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=bDGPT9AMPECKJy6FpKeNXyiUCQ+jKNLjjBDq91yrcPw=; b=R+lDEuy0/AM9EGBHSeqqyWo2Dh4TWVLbkZ4E+U+mtaTIZXTSsGv3EidImhwEpWO8kc0EXq y6JUwdLeUtsg7SkZhrYqfOHozIFOY4ai8y1T1Exgag6GdED5IoAQNKqnCd6adgt+TbXzqi AxOSh6dwvGdKNVqMgHraK0NgkhEFlNw= X-MC-Unique: xDKZMf2eNXyTOMHtrkppBg-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 06/10] qemuMigrationSrcCleanup: Use 'driver' from VM private data Date: Tue, 17 May 2022 15:16:41 +0200 Message-Id: <6d440cbaff61ed3900d29e1d413382958a64bdf6.1652790229.git.pkrempa@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.9 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 2.85 on 10.11.54.10 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: 1652793434824100005 Content-Type: text/plain; charset="utf-8" Access the 'driver' struct from the private data rather than the passed opaque pointer in preparation to remove the opaque pointer. Signed-off-by: Peter Krempa --- src/qemu/qemu_migration.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qemu/qemu_migration.c b/src/qemu/qemu_migration.c index 6b3815ac58..7de0929a36 100644 --- a/src/qemu/qemu_migration.c +++ b/src/qemu/qemu_migration.c @@ -2164,10 +2164,10 @@ qemuMigrationDstRun(virQEMUDriver *driver, static void qemuMigrationSrcCleanup(virDomainObj *vm, virConnectPtr conn, - void *opaque) + void *opaque G_GNUC_UNUSED) { - virQEMUDriver *driver =3D opaque; qemuDomainObjPrivate *priv =3D vm->privateData; + virQEMUDriver *driver =3D priv->driver; qemuDomainJobPrivate *jobPriv =3D priv->job.privateData; VIR_DEBUG("vm=3D%s, conn=3D%p, asyncJob=3D%s, phase=3D%s", --=20 2.35.3