mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
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
This commit is contained in:
parent
992f93f18a
commit
2af0541572
@ -88,7 +88,7 @@ virHostCPUGetCountAppleFreeBSD(void)
|
|||||||
# define TICK_TO_NSEC (1000ull * 1000ull * 1000ull / (stathz ? stathz : hz))
|
# define TICK_TO_NSEC (1000ull * 1000ull * 1000ull / (stathz ? stathz : hz))
|
||||||
|
|
||||||
static int
|
static int
|
||||||
virHostCPUGetStatsFreebsd(int cpuNum,
|
virHostCPUGetStatsFreeBSD(int cpuNum,
|
||||||
virNodeCPUStatsPtr params,
|
virNodeCPUStatsPtr params,
|
||||||
int *nparams)
|
int *nparams)
|
||||||
{
|
{
|
||||||
@ -962,7 +962,7 @@ virHostCPUParseMapLinux(int max_cpuid, const char *path)
|
|||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
virHostCPUGetInfo(virArch hostarch,
|
virHostCPUGetInfo(virArch hostarch ATTRIBUTE_UNUSED,
|
||||||
unsigned int *cpus,
|
unsigned int *cpus,
|
||||||
unsigned int *mhz,
|
unsigned int *mhz,
|
||||||
unsigned int *nodes,
|
unsigned int *nodes,
|
||||||
|
Loading…
Reference in New Issue
Block a user