From nobody Sat Apr 27 00:28:58 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) client-ip=207.211.31.81; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.81 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=1589532513; cv=none; d=zohomail.com; s=zohoarc; b=Hbx6KFqZyAgI07OCf//M6diLh3vbXr6mFdW4JM5zCBvlUFynSmVZahdFQtL8tBc8eckpC8unU3D3jjEXn1nwKt7hQWd/KGlhe1nmNXvsAG0O2kPeH2pxIhqygFdiJFDsmqi4U6UIWig+EDZR/j2rOEI6I1I4bJNEKWa6qhm7It8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1589532513; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=kdp1sb4FlbabF2SHs+vApEdy3htRA/TcL9/FUcMyA0s=; b=mgL+sVrx0+BAUq8g1NNDNTTzlHa08srBcTkwcIpZgg+Hu/xoqW8RY1edQDgNLqWnjhaNsx1T8uFAWk0q7IHnpLaKSUn+4HSqR/qWIu3Jhu/80cGg/QTdRuUnbMDCt2D2TWHe0r4giuKZUEZHzfdhKvGWxsIcPww5ueBpVCucbgo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.81 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-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.81]) by mx.zohomail.com with SMTPS id 1589532513299573.3686536367051; Fri, 15 May 2020 01:48:33 -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-199--iasMfCzPEGpxfran7xw8Q-1; Fri, 15 May 2020 04:48:29 -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 AEA321083E85; Fri, 15 May 2020 08:48:23 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7012E46; Fri, 15 May 2020 08:48:22 +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 8882A1809543; Fri, 15 May 2020 08:48:20 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 04F8lURR006524 for ; Fri, 15 May 2020 04:47:30 -0400 Received: by smtp.corp.redhat.com (Postfix) id F3D1C5C541; Fri, 15 May 2020 08:47:29 +0000 (UTC) Received: from virval.usersys.redhat.com (unknown [10.40.193.140]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C557D5C1D6 for ; Fri, 15 May 2020 08:47:26 +0000 (UTC) Received: by virval.usersys.redhat.com (Postfix, from userid 500) id 89DE9240EBC; Fri, 15 May 2020 10:46:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1589532511; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=kdp1sb4FlbabF2SHs+vApEdy3htRA/TcL9/FUcMyA0s=; b=NL0fx5ickTBLSeRozeV7cMzUMPkZTR4ZX/r866hnLWB7pWhVH/GKgc4oPd3QNpjgx0maNO yYqewKcecY0WGBNxlrNteaGPHa91jnZwQS9cjJ6PdeN3ufNJLKB+tJ09w59ell4aqfkGEW lTPf0b07fJcK/w+Ko5EXXrbqw/Pl7a8= X-MC-Unique: -iasMfCzPEGpxfran7xw8Q-1 From: Jiri Denemark To: libvir-list@redhat.com Subject: [libvirt PATCH] cpu: Properly define g_autoptr for virCPUData Date: Fri, 15 May 2020 10:46:45 +0200 Message-Id: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 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 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" The structure is not specific to x86 and thus its cleanup function should be defined in cpu.h and be available to all users. Signed-off-by: Jiri Denemark Reviewed-by: Michal Privoznik --- src/cpu/cpu.h | 1 + src/cpu/cpu_x86.c | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cpu/cpu.h b/src/cpu/cpu.h index f779d2be17..1d7900a829 100644 --- a/src/cpu/cpu.h +++ b/src/cpu/cpu.h @@ -182,6 +182,7 @@ virCPUDataNew(virArch arch); =20 void virCPUDataFree(virCPUDataPtr data); +G_DEFINE_AUTOPTR_CLEANUP_FUNC(virCPUData, virCPUDataFree); =20 bool virCPUGetHostIsSupported(virArch arch); diff --git a/src/cpu/cpu_x86.c b/src/cpu/cpu_x86.c index 9183259bce..e3c553e943 100644 --- a/src/cpu/cpu_x86.c +++ b/src/cpu/cpu_x86.c @@ -495,7 +495,6 @@ virCPUx86DataFree(virCPUDataPtr data) virCPUx86DataClear(&data->data.x86); VIR_FREE(data); } -G_DEFINE_AUTOPTR_CLEANUP_FUNC(virCPUData, virCPUx86DataFree); =20 =20 static void --=20 2.26.2