mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
nodeinfo: don't define nodeGetCellMemory if it isn't ever used
Signed-off-by: Hu Tao <hutao@cn.fujitsu.com>
This commit is contained in:
parent
2fc5ff11ab
commit
5c86ace1e7
@ -102,7 +102,6 @@ static int linuxNodeGetMemoryStats(FILE *meminfo,
|
|||||||
int cellNum,
|
int cellNum,
|
||||||
virNodeMemoryStatsPtr params,
|
virNodeMemoryStatsPtr params,
|
||||||
int *nparams);
|
int *nparams);
|
||||||
static unsigned long long nodeGetCellMemory(int cell);
|
|
||||||
|
|
||||||
/* Return the positive decimal contents of the given
|
/* Return the positive decimal contents of the given
|
||||||
* DIR/cpu%u/FILE, or -1 on error. If DEFAULT_VALUE is non-negative
|
* DIR/cpu%u/FILE, or -1 on error. If DEFAULT_VALUE is non-negative
|
||||||
@ -1473,6 +1472,8 @@ cleanup:
|
|||||||
# define MASK_CPU_ISSET(mask, cpu) \
|
# define MASK_CPU_ISSET(mask, cpu) \
|
||||||
(((mask)[((cpu) / n_bits(*(mask)))] >> ((cpu) % n_bits(*(mask)))) & 1)
|
(((mask)[((cpu) / n_bits(*(mask)))] >> ((cpu) % n_bits(*(mask)))) & 1)
|
||||||
|
|
||||||
|
static unsigned long long nodeGetCellMemory(int cell);
|
||||||
|
|
||||||
static virBitmapPtr
|
static virBitmapPtr
|
||||||
virNodeGetSiblingsList(const char *dir, int cpu_id)
|
virNodeGetSiblingsList(const char *dir, int cpu_id)
|
||||||
{
|
{
|
||||||
@ -1733,11 +1734,4 @@ unsigned long long nodeGetFreeMemory(virConnectPtr conn ATTRIBUTE_UNUSED)
|
|||||||
_("NUMA memory information not available on this platform"));
|
_("NUMA memory information not available on this platform"));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned long long nodeGetCellMemory(int cell)
|
|
||||||
{
|
|
||||||
virReportError(VIR_ERR_NO_SUPPORT, "%s",
|
|
||||||
_("NUMA memory information not available on this platform"));
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user