[libvirt] [PATCH 2/2] build: fix bitmap conversion when !CPU_ALLOC

Eric Blake eblake at redhat.com
Mon Oct 1 23:07:51 UTC 2012


Commit f1a43a8 missed one side of an #if/#else.

* src/util/processinfo.c (virProcessInfoGetAffinity): Use correct
bitmap operation.
---

Pushing under the build-breaker rule.

 src/util/processinfo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/util/processinfo.c b/src/util/processinfo.c
index d9d255c..d4f8f4b 100644
--- a/src/util/processinfo.c
+++ b/src/util/processinfo.c
@@ -161,7 +161,7 @@ realloc:

     for (i = 0 ; i < maxcpu ; i++)
         if (CPU_ISSET(i, &mask))
-            VIR_USE_CPU(map, i);
+            ignore_value(virBitmapSetBit(*map, i));
 # endif

     return 0;
-- 
1.7.11.4




More information about the libvir-list mailing list