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