Fix: vmalloc wrapper on kernel >= 4.12
[lttng-modules.git] / wrapper / vmalloc.h
index 2dd06cbf53e0fe565538b99fd633be504f7b7f9f..e117584f37b6ae66a7ccae65dced8c061444d58e 100644 (file)
@@ -27,6 +27,7 @@
 
 #include <linux/version.h>
 #include <linux/vmalloc.h>
+#include <linux/mm.h>
 
 #ifdef CONFIG_KALLSYMS
 
@@ -105,7 +106,6 @@ void lttng_kvfree(const void *addr)
 #else
 
 #include <linux/slab.h>
-#include <linux/mm.h>
 
 /*
  * kallsyms wrapper of __vmalloc_node with a fallback to kmalloc_node.
This page took 0.024003 seconds and 4 git commands to generate.