]> xenbits.xensource.com Git - libvirt.git/commitdiff
hostcpu: fix build on FreeBSD
authorRoman Bogorodskiy <bogorodskiy@gmail.com>
Sun, 12 Jun 2016 07:53:23 +0000 (10:53 +0300)
committerRoman Bogorodskiy <bogorodskiy@gmail.com>
Sun, 12 Jun 2016 07:53:23 +0000 (10:53 +0300)
 * 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

index 72ea943f89f53bb870a6626f64002e382aa54613..00c09cd4e805f6c6916849fd147e56ff9fd17541 100644 (file)
@@ -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,