From nobody Mon Feb 9 17:08:03 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=1652793435; cv=none; d=zohomail.com; s=zohoarc; b=eUa/oY9TqCOLXb2CWZfZOPbGJCM34Urvsd/e9RfO64MBEXqGIDqulL0YF/lollsdhZVcZAk30a0f2JbYn1anwTevm92GjyVnUBRmHFKqPH3+XCyqSLrcr85lCE9wjgN8JV9K5+GaxGR7FtJBW2Xp8fG21KW6QcLpM832/OEFzuQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1652793435; 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=kmLwlWT7enYMfwePU8tEzP3i3Mgj8Z2A7gcSy4pmMVo=; b=nWFWPgVZZa824OadRopOFnydh7FcB4fMpovKGeHPLIzDxOd7sU6XEfLPPE0XrwoxDTcfhunVKZBew0FOH3lHLRm2fXZ0WD/KoFoovSMJMyH4J4XputTlIADBa8enTKYWbWF7hn2dX0oflkE044pZCz4wES7yP6DqIfKCLMtpL5E= 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 1652793435405407.70048295659103; Tue, 17 May 2022 06:17:15 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-675-eZ53z4WGP9WgoiGLrv0HAA-1; Tue, 17 May 2022 09:17:12 -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 7AD293C16199; Tue, 17 May 2022 13:16:57 +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 644B140336A; Tue, 17 May 2022 13:16:57 +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 27BC4194705F; Tue, 17 May 2022 13:16:57 +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 2354A194705F for ; Tue, 17 May 2022 13:16:55 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 041A842D4F2; Tue, 17 May 2022 13:16:55 +0000 (UTC) Received: from speedmetal.lan (unknown [10.40.208.21]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7C68042D4EB for ; Tue, 17 May 2022 13:16:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652793434; 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=kmLwlWT7enYMfwePU8tEzP3i3Mgj8Z2A7gcSy4pmMVo=; b=aSzsPjvRA2/5IXUG/bq1TCTVN4GGZe9ZPaP8AnT7RSRlNES7uaoXfHTaXASxMSq8wKcF5A BVy+O5Z8BVkFs70xT+nO5eE7qdvI9DX/oLrRzwH80XZvEjOCuAeiiB9Gd7wZSB6nPs++mN vZAB6BCms6EloqeDlg1ktqT4bWAq6J0= X-MC-Unique: eZ53z4WGP9WgoiGLrv0HAA-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 08/10] lxcProcessAutoDestroy: Use 'driver' from VM private data Date: Tue, 17 May 2022 15:16:43 +0200 Message-Id: <93b988840988257d9cd6a50ba303798b7e01aced.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: 1652793436812100008 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/lxc/lxc_process.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/lxc/lxc_process.c b/src/lxc/lxc_process.c index 0222e8a9b3..368adaea7e 100644 --- a/src/lxc/lxc_process.c +++ b/src/lxc/lxc_process.c @@ -63,15 +63,14 @@ VIR_LOG_INIT("lxc.lxc_process"); static void lxcProcessAutoDestroy(virDomainObj *dom, virConnectPtr conn, - void *opaque) + void *opaque G_GNUC_UNUSED) { - virLXCDriver *driver =3D opaque; virObjectEvent *event =3D NULL; - virLXCDomainObjPrivate *priv; + virLXCDomainObjPrivate *priv =3D dom->privateData; + virLXCDriver *driver =3D priv->driver; VIR_DEBUG("driver=3D%p dom=3D%s conn=3D%p", driver, dom->def->name, co= nn); - priv =3D dom->privateData; VIR_DEBUG("Killing domain"); virLXCProcessStop(driver, dom, VIR_DOMAIN_SHUTOFF_DESTROYED); virDomainAuditStop(dom, "destroyed"); --=20 2.35.3