From: Hu Tao Date: Mon, 11 Mar 2013 08:57:26 +0000 (+0800) Subject: nodeinfo: don't define nodeGetCellMemory if it isn't ever used X-Git-Tag: v1.0.4-rc1~124 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c86ace1e79c4d61675cbac6fd45aac54fc16b72;p=thirdparty%2Flibvirt.git nodeinfo: don't define nodeGetCellMemory if it isn't ever used Signed-off-by: Hu Tao --- diff --git a/src/nodeinfo.c b/src/nodeinfo.c index b80e389a71..415c2e5f6c 100644 --- a/src/nodeinfo.c +++ b/src/nodeinfo.c @@ -102,7 +102,6 @@ static int linuxNodeGetMemoryStats(FILE *meminfo, int cellNum, virNodeMemoryStatsPtr params, int *nparams); -static unsigned long long nodeGetCellMemory(int cell); /* Return the positive decimal contents of the given * 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) \ (((mask)[((cpu) / n_bits(*(mask)))] >> ((cpu) % n_bits(*(mask)))) & 1) +static unsigned long long nodeGetCellMemory(int cell); + static virBitmapPtr 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")); 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