From nobody Wed Feb 11 10:11:57 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1489768621200273.5588692849451; Fri, 17 Mar 2017 09:37:01 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A7FD2437F50; Fri, 17 Mar 2017 16:37:00 +0000 (UTC) Received: from colo-mx.corp.redhat.com (unknown [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7B98560A99; Fri, 17 Mar 2017 16:37:00 +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 08F3A4BB75; Fri, 17 Mar 2017 16:37:00 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id v2HGaxYb007094 for ; Fri, 17 Mar 2017 12:36:59 -0400 Received: by smtp.corp.redhat.com (Postfix) id 62DC11887F; Fri, 17 Mar 2017 16:36:59 +0000 (UTC) Received: from mamuti.net (ovpn-204-109.brq.redhat.com [10.40.204.109]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3331960A99 for ; Fri, 17 Mar 2017 16:36:57 +0000 (UTC) Received: by mamuti.net (Postfix, from userid 500) id 24E321061C5; Fri, 17 Mar 2017 17:36:55 +0100 (CET) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com A7FD2437F50 Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=libvir-list-bounces@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com A7FD2437F50 From: Jiri Denemark To: libvir-list@redhat.com Date: Fri, 17 Mar 2017 17:36:41 +0100 Message-Id: <6322ab1536f71e4252f5ee482033491e7f8ae0ea.1489768416.git.jdenemar@redhat.com> In-Reply-To: References: In-Reply-To: References: Mail-Followup-To: libvir-list@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 03/14] cpu: Drop unused flags from cpuArchDecode 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: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Fri, 17 Mar 2017 16:37:01 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Jiri Denemark --- src/cpu/cpu.c | 2 +- src/cpu/cpu.h | 3 +-- src/cpu/cpu_ppc64.c | 7 ++----- src/cpu/cpu_x86.c | 7 +++---- 4 files changed, 7 insertions(+), 12 deletions(-) diff --git a/src/cpu/cpu.c b/src/cpu/cpu.c index 5604db1d1..33581e5fe 100644 --- a/src/cpu/cpu.c +++ b/src/cpu/cpu.c @@ -250,7 +250,7 @@ cpuDecode(virCPUDefPtr cpu, return -1; } =20 - return driver->decode(cpu, data, models, nmodels, preferred, 0); + return driver->decode(cpu, data, models, nmodels, preferred); } =20 =20 diff --git a/src/cpu/cpu.h b/src/cpu/cpu.h index 5a8728bce..92b0f788e 100644 --- a/src/cpu/cpu.h +++ b/src/cpu/cpu.h @@ -54,8 +54,7 @@ typedef int const virCPUData *data, const char **models, unsigned int nmodels, - const char *preferred, - unsigned int flags); + const char *preferred); =20 typedef int (*cpuArchEncode) (virArch arch, diff --git a/src/cpu/cpu_ppc64.c b/src/cpu/cpu_ppc64.c index 6e16ffd13..0ad8d17d4 100644 --- a/src/cpu/cpu_ppc64.c +++ b/src/cpu/cpu_ppc64.c @@ -665,15 +665,12 @@ ppc64DriverDecode(virCPUDefPtr cpu, const virCPUData *data, const char **models, unsigned int nmodels, - const char *preferred ATTRIBUTE_UNUSED, - unsigned int flags) + const char *preferred ATTRIBUTE_UNUSED) { int ret =3D -1; struct ppc64_map *map; const struct ppc64_model *model; =20 - virCheckFlags(VIR_CONNECT_BASELINE_CPU_EXPAND_FEATURES, -1); - if (!data || !(map =3D ppc64LoadMap())) return -1; =20 @@ -740,7 +737,7 @@ virCPUppc64GetHost(virCPUDefPtr cpu, #endif data->pvr[0].mask =3D 0xfffffffful; =20 - ret =3D ppc64DriverDecode(cpu, cpuData, models, nmodels, NULL, 0); + ret =3D ppc64DriverDecode(cpu, cpuData, models, nmodels, NULL); =20 cleanup: virCPUppc64DataFree(cpuData); diff --git a/src/cpu/cpu_x86.c b/src/cpu/cpu_x86.c index 442f0ce44..9c480398f 100644 --- a/src/cpu/cpu_x86.c +++ b/src/cpu/cpu_x86.c @@ -1984,10 +1984,9 @@ x86DecodeCPUData(virCPUDefPtr cpu, const virCPUData *data, const char **models, unsigned int nmodels, - const char *preferred, - unsigned int flags) + const char *preferred) { - return x86Decode(cpu, &data->data.x86, models, nmodels, preferred, fla= gs); + return x86Decode(cpu, &data->data.x86, models, nmodels, preferred, 0); } =20 =20 @@ -2452,7 +2451,7 @@ virCPUx86GetHost(virCPUDefPtr cpu, cpuidSet(CPUX86_EXTENDED, cpuData) < 0) goto cleanup; =20 - ret =3D x86DecodeCPUData(cpu, cpuData, models, nmodels, NULL, 0); + ret =3D x86DecodeCPUData(cpu, cpuData, models, nmodels, NULL); =20 cleanup: virCPUx86DataFree(cpuData); --=20 2.12.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list