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.10.0-rc1~26 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=da3b99a6386302158785e1f8fd1679c106850d0e;p=lttng-modules.git 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,