fix: ifdef linux specific cpu count compat
authorMichael Jeanson <mjeanson@efficios.com>
Mon, 15 Aug 2022 15:11:54 +0000 (11:11 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 17 Aug 2022 14:57:05 +0000 (10:57 -0400)
commitda44a94383dab6fcf2001e6d447a503259476760
tree51bff7d72c86f08bf8c83701549161cadd8ece1b
parent4de89c1129d52f0f13b63ec037802e095c506875
fix: ifdef linux specific cpu count compat

Expand the '#ifdef __linux__' block in src/compat-cpu.h to all static
inline functions related to sysfs since they are only useful on Linux
and fail to build on some non-Linux platforms. This issue was reported
on QNX.

The corresponding unit tests have to be skipped on non-Linux platforms.

Thanks to Elad Lahav <e2lahav@gmail.com> for reporting this issue.

Change-Id: I17c88a9a2fb5b9be6cf5325234a18ff40788cd09
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
src/compat-smp.h
tests/unit/get_cpu_mask_from_sysfs.c
tests/unit/get_max_cpuid_from_sysfs.c
tests/unit/test_get_cpu_mask_from_sysfs
tests/unit/test_get_cpu_mask_from_sysfs_cxx
tests/unit/test_get_max_cpuid_from_mask.c
tests/unit/test_get_max_cpuid_from_sysfs
tests/unit/test_get_max_cpuid_from_sysfs_cxx
tests/unit/test_get_possible_cpus_array_len.c
This page took 0.025473 seconds and 4 git commands to generate.