[lttng-dev] [PATCH lttng-modules] Fix: vmalloc wrapper on kernel >= 4.12

Michael Jeanson mjeanson at efficios.com
Tue Sep 26 17:46:30 UTC 2017


Signed-off-by: Michael Jeanson <mjeanson at efficios.com>
---
 wrapper/vmalloc.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/wrapper/vmalloc.h b/wrapper/vmalloc.h
index 2dd06cb..e117584 100644
--- a/wrapper/vmalloc.h
+++ b/wrapper/vmalloc.h
@@ -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.
-- 
2.7.4



More information about the lttng-dev mailing list