]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virnuma: Assume numa_bitmask_isbitset() exists
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 11 Sep 2020 11:10:25 +0000 (13:10 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 11 Sep 2020 11:57:21 +0000 (13:57 +0200)
This function was introduced in the 2.0.6 release which happened
in December 2010. I think it is safe to assume that all libnuma
we deal with have the function.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
meson.build
src/util/virnuma.c

index bcb978292b690f2c810cfafb69f507fa2d77331e..195d7cd784c5acf497ff1b8f0601b9f7414c931b 100644 (file)
@@ -1239,13 +1239,10 @@ else
   intl_dep = dependency('', required: false)
 endif
 
+numactl_version = '2.0.6'
 numactl_dep = cc.find_library('numa', required: get_option('numactl'))
 if numactl_dep.found()
   conf.set('WITH_NUMACTL', 1)
-
-  if cc.has_function('numa_bitmask_isbitset', dependencies: [ numactl_dep ])
-    conf.set('WITH_NUMA_BITMASK_ISBITSET', 1)
-  endif
 endif
 
 openwsman_version = '2.2.3'
index 2872ce3c5ee95085343b30b95af9319f6c968755..b8cf8b451043ac9748ac36d94a681bcba9811746 100644 (file)
@@ -423,7 +423,7 @@ virNumaGetMaxCPUs(void)
 }
 
 
-#if WITH_NUMACTL && WITH_NUMA_BITMASK_ISBITSET
+#if WITH_NUMACTL
 /**
  * virNumaNodeIsAvailable:
  * @node: node to check
@@ -493,7 +493,7 @@ virNumaGetDistances(int node,
     return 0;
 }
 
-#else /* !(WITH_NUMACTL && WITH_NUMA_BITMASK_ISBITSET) */
+#else /* !WITH_NUMACTL */
 
 bool
 virNumaNodeIsAvailable(int node)
@@ -518,7 +518,7 @@ virNumaGetDistances(int node G_GNUC_UNUSED,
     VIR_DEBUG("NUMA distance information isn't available on this host");
     return 0;
 }
-#endif /* !(WITH_NUMACTL && WITH_NUMA_BITMASK_ISBITSET) */
+#endif /* !WITH_NUMACTL */
 
 
 /* currently all the huge page stuff below is linux only */