[PATCH 2/4] hostcpu: fix build on FreeBSD

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

 



 * Fix misspelt function name:
    s/virHostCPUGetStatsFreebsd/virHostCPUGetStatsFreeBSD/
 * Mark the first argument to virHostCPUGetInfo with ATTRIBUTE_UNUSED
   as it's not actually used on non-Linux
---
 src/util/virhostcpu.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/util/virhostcpu.c b/src/util/virhostcpu.c
index 72ea943..00c09cd 100644
--- a/src/util/virhostcpu.c
+++ b/src/util/virhostcpu.c
@@ -88,7 +88,7 @@ virHostCPUGetCountAppleFreeBSD(void)
 # define TICK_TO_NSEC (1000ull * 1000ull * 1000ull / (stathz ? stathz : hz))
 
 static int
-virHostCPUGetStatsFreebsd(int cpuNum,
+virHostCPUGetStatsFreeBSD(int cpuNum,
                           virNodeCPUStatsPtr params,
                           int *nparams)
 {
@@ -962,7 +962,7 @@ virHostCPUParseMapLinux(int max_cpuid, const char *path)
 
 
 int
-virHostCPUGetInfo(virArch hostarch,
+virHostCPUGetInfo(virArch hostarch ATTRIBUTE_UNUSED,
                   unsigned int *cpus,
                   unsigned int *mhz,
                   unsigned int *nodes,
-- 
2.7.4

--
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]