render / rpms / libvirt

Forked from rpms/libvirt 9 months ago
Clone
Pablo Greco 40546a
From c3573dbf60524401d06da6f6c5ce70a780494509 Mon Sep 17 00:00:00 2001
Pablo Greco 40546a
Message-Id: <c3573dbf60524401d06da6f6c5ce70a780494509@dist-git>
Pablo Greco 40546a
From: Jiri Denemark <jdenemar@redhat.com>
Pablo Greco 40546a
Date: Fri, 21 Jun 2019 09:25:30 +0200
Pablo Greco 40546a
Subject: [PATCH] cpu_x86: Rename virCPUx86VendorToCPUID
Pablo Greco 40546a
MIME-Version: 1.0
Pablo Greco 40546a
Content-Type: text/plain; charset=UTF-8
Pablo Greco 40546a
Content-Transfer-Encoding: 8bit
Pablo Greco 40546a
Pablo Greco 40546a
Renamed as virCPUx86VendorToData.
Pablo Greco 40546a
Pablo Greco 40546a
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Pablo Greco 40546a
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Pablo Greco 40546a
(cherry picked from commit 3eff71a2d5048b30ded73bc6e542cbbd3e5b6193)
Pablo Greco 40546a
Pablo Greco 40546a
https://bugzilla.redhat.com/show_bug.cgi?id=1697627
Pablo Greco 40546a
Pablo Greco 40546a
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Pablo Greco 40546a
Message-Id: <01af4e7922b394abeb1ea11856c188cb80ffb9a8.1561068591.git.jdenemar@redhat.com>
Pablo Greco 40546a
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Pablo Greco 40546a
---
Pablo Greco 40546a
 src/cpu/cpu_x86.c | 8 ++++----
Pablo Greco 40546a
 1 file changed, 4 insertions(+), 4 deletions(-)
Pablo Greco 40546a
Pablo Greco 40546a
diff --git a/src/cpu/cpu_x86.c b/src/cpu/cpu_x86.c
Pablo Greco 40546a
index 6d48c9264c..9c0f39e76d 100644
Pablo Greco 40546a
--- a/src/cpu/cpu_x86.c
Pablo Greco 40546a
+++ b/src/cpu/cpu_x86.c
Pablo Greco 40546a
@@ -526,8 +526,8 @@ x86DataToVendor(const virCPUx86Data *data,
Pablo Greco 40546a
 
Pablo Greco 40546a
 
Pablo Greco 40546a
 static int
Pablo Greco 40546a
-virCPUx86VendorToCPUID(const char *vendor,
Pablo Greco 40546a
-                       virCPUx86DataItemPtr data)
Pablo Greco 40546a
+virCPUx86VendorToData(const char *vendor,
Pablo Greco 40546a
+                      virCPUx86DataItemPtr data)
Pablo Greco 40546a
 {
Pablo Greco 40546a
     virCPUx86CPUIDPtr cpuid = &data->cpuid;
Pablo Greco 40546a
 
Pablo Greco 40546a
@@ -759,7 +759,7 @@ x86VendorParse(xmlXPathContextPtr ctxt,
Pablo Greco 40546a
         goto cleanup;
Pablo Greco 40546a
     }
Pablo Greco 40546a
 
Pablo Greco 40546a
-    if (virCPUx86VendorToCPUID(string, &vendor->data) < 0)
Pablo Greco 40546a
+    if (virCPUx86VendorToData(string, &vendor->data) < 0)
Pablo Greco 40546a
         goto cleanup;
Pablo Greco 40546a
 
Pablo Greco 40546a
     if (VIR_APPEND_ELEMENT(map->vendors, map->nvendors, vendor) < 0)
Pablo Greco 40546a
@@ -3114,7 +3114,7 @@ virCPUx86DataSetVendor(virCPUDataPtr cpuData,
Pablo Greco 40546a
 {
Pablo Greco 40546a
     virCPUx86DataItem item = CPUID(0);
Pablo Greco 40546a
 
Pablo Greco 40546a
-    if (virCPUx86VendorToCPUID(vendor, &item) < 0)
Pablo Greco 40546a
+    if (virCPUx86VendorToData(vendor, &item) < 0)
Pablo Greco 40546a
         return -1;
Pablo Greco 40546a
 
Pablo Greco 40546a
     return virCPUx86DataAdd(cpuData, &item);
Pablo Greco 40546a
-- 
Pablo Greco 40546a
2.22.0
Pablo Greco 40546a