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.9.1~2 X-Git-Url: http://git.lttng.org./?a=commitdiff_plain;h=b6ad421bedd30251226d279023a13a7ef8933590;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,