[PATCH 8/8] cpu: Rename PowerPCUpdate and PowerPCDataFree functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



For consistency with other functions in PowerPC CPU driver, the two
functions are renamed as ppcUpdate and ppcDataFree, respectively.
---
 src/cpu/cpu_powerpc.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/cpu/cpu_powerpc.c b/src/cpu/cpu_powerpc.c
index 967fa6e..ebf4036 100644
--- a/src/cpu/cpu_powerpc.c
+++ b/src/cpu/cpu_powerpc.c
@@ -350,7 +350,7 @@ cleanup:
 
 
 static void
-PowerPCDataFree(union cpuData *data)
+ppcDataFree(union cpuData *data)
 {
     if (data == NULL)
         return;
@@ -377,11 +377,12 @@ ppcNodeData(void)
 #endif
 
 static int
-PowerPCUpdate(virCPUDefPtr guest ATTRIBUTE_UNUSED,
+ppcUpdate(virCPUDefPtr guest ATTRIBUTE_UNUSED,
           const virCPUDefPtr host ATTRIBUTE_UNUSED)
 {
    return 0;
 }
+
 static virCPUDefPtr
 ppcBaseline(virCPUDefPtr *cpus,
             unsigned int ncpus,
@@ -478,7 +479,7 @@ struct cpuArchDriver cpuDriverPowerPC = {
     .compare    = ppcCompare,
     .decode     = ppcDecode,
     .encode     = NULL,
-    .free       = PowerPCDataFree,
+    .free       = ppcDataFree,
 #if defined(__powerpc__) || defined(__powerpc64__)
     .nodeData   = ppcNodeData,
 #else
@@ -486,6 +487,6 @@ struct cpuArchDriver cpuDriverPowerPC = {
 #endif
     .guestData  = NULL,
     .baseline   = ppcBaseline,
-    .update     = PowerPCUpdate,
+    .update     = ppcUpdate,
     .hasFeature = NULL,
 };
-- 
1.8.0.2

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]