Fix: only include linux/cpuhotplug.h for kernels >= 4.10
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 23 Jan 2017 20:16:22 +0000 (15:16 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 23 Jan 2017 20:17:06 +0000 (15:17 -0500)
Kernels at least <= 4.4 did not have this header file.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
lttng-cpuhotplug.h

index da965d2f7ccc26041e842b508220deb233bb2dc0..76a7cb80bd1ed98d5680b5fcb9db20bdee21e96b 100644 (file)
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#include <linux/cpuhotplug.h>
-
 struct lttng_cpuhp_node;
 
 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,10,0))
+
+#include <linux/cpuhotplug.h>
+
 enum lttng_cpuhp_component {
        LTTNG_RING_BUFFER_FRONTEND,
        LTTNG_RING_BUFFER_BACKEND,
This page took 0.026229 seconds and 4 git commands to generate.