From: Mathieu Desnoyers Date: Mon, 23 Jan 2017 20:16:22 +0000 (-0500) Subject: Fix: only include linux/cpuhotplug.h for kernels >= 4.10 X-Git-Tag: v2.8.5~8 X-Git-Url: https://git.lttng.org/?p=lttng-modules.git;a=commitdiff_plain;h=bd965bd73f23e63831330fbbc7408e9c3bdbcb61 Fix: only include linux/cpuhotplug.h for kernels >= 4.10 Kernels at least <= 4.4 did not have this header file. Signed-off-by: Mathieu Desnoyers --- diff --git a/lttng-cpuhotplug.h b/lttng-cpuhotplug.h index da965d2f..76a7cb80 100644 --- a/lttng-cpuhotplug.h +++ b/lttng-cpuhotplug.h @@ -21,11 +21,12 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include - struct lttng_cpuhp_node; #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,10,0)) + +#include + enum lttng_cpuhp_component { LTTNG_RING_BUFFER_FRONTEND, LTTNG_RING_BUFFER_BACKEND,