提交 2af05415 编写于 作者: R Roman Bogorodskiy

hostcpu: fix build on FreeBSD

 * 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
上级 992f93f1
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册