From 7b128f96ee56a69a12bd00c16f8bce218a31daf7 Mon Sep 17 00:00:00 2001
Message-Id: <7b128f96ee56a69a12bd00c16f8bce218a31daf7.1383922566.git.jdenemar@redhat.com>
From: Jiri Denemark <jdenemar@redhat.com>
Date: Fri, 8 Nov 2013 12:33:22 +0100
Subject: [PATCH] cpu: x86: Rename x86MakeCPUData as virCPUx86MakeData
https://bugzilla.redhat.com/show_bug.cgi?id=1008989
(cherry picked from commit 4a530268c03b5596532de3ff0b9e036d8e20e5c5)
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
---
src/cpu/cpu_x86.c | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/src/cpu/cpu_x86.c b/src/cpu/cpu_x86.c
index e8e1990..a857559 100644
--- a/src/cpu/cpu_x86.c
+++ b/src/cpu/cpu_x86.c
@@ -216,7 +216,7 @@ virCPUx86DataFree(virCPUx86Data *data)
static virCPUDataPtr
-x86MakeCPUData(virArch arch, virCPUx86Data **data)
+virCPUx86MakeData(virArch arch, virCPUx86Data **data)
{
virCPUDataPtr cpuData;
@@ -1204,7 +1204,7 @@ x86CPUDataParse(const char *xmlStr)
goto cleanup;
}
- cpuData = x86MakeCPUData(VIR_ARCH_X86_64, &data);
+ cpuData = virCPUx86MakeData(VIR_ARCH_X86_64, &data);
cleanup:
VIR_FREE(nodes);
@@ -1367,7 +1367,7 @@ x86Compute(virCPUDefPtr host,
x86DataSubtract(guest_model->data, cpu_disable->data);
if (!(guestData = x86DataCopy(guest_model->data)) ||
- !(*guest = x86MakeCPUData(arch, &guestData))) {
+ !(*guest = virCPUx86MakeData(arch, &guestData))) {
virCPUx86DataFree(guestData);
goto error;
}
@@ -1624,22 +1624,22 @@ x86Encode(virArch arch,
}
if (forced &&
- !(*forced = x86MakeCPUData(arch, &data_forced)))
+ !(*forced = virCPUx86MakeData(arch, &data_forced)))
goto error;
if (required &&
- !(*required = x86MakeCPUData(arch, &data_required)))
+ !(*required = virCPUx86MakeData(arch, &data_required)))
goto error;
if (optional &&
- !(*optional = x86MakeCPUData(arch, &data_optional)))
+ !(*optional = virCPUx86MakeData(arch, &data_optional)))
goto error;
if (disabled &&
- !(*disabled = x86MakeCPUData(arch, &data_disabled)))
+ !(*disabled = virCPUx86MakeData(arch, &data_disabled)))
goto error;
if (forbidden &&
- !(*forbidden = x86MakeCPUData(arch, &data_forbidden)))
+ !(*forbidden = virCPUx86MakeData(arch, &data_forbidden)))
goto error;
if (vendor &&
- !(*vendor = x86MakeCPUData(arch, &data_vendor)))
+ !(*vendor = virCPUx86MakeData(arch, &data_vendor)))
goto error;
ret = 0;
@@ -1748,7 +1748,7 @@ x86NodeData(virArch arch)
goto error;
data->extended_len = ret;
- if (!(cpuData = x86MakeCPUData(arch, &data)))
+ if (!(cpuData = virCPUx86MakeData(arch, &data)))
goto error;
return cpuData;
--
1.8.4.2