diff options
Diffstat (limited to 'meta/recipes-kernel/lttng/lttng-modules/0007-Fix-vmalloc-wrapper-on-kernel-4.12.patch')
-rw-r--r-- | meta/recipes-kernel/lttng/lttng-modules/0007-Fix-vmalloc-wrapper-on-kernel-4.12.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/meta/recipes-kernel/lttng/lttng-modules/0007-Fix-vmalloc-wrapper-on-kernel-4.12.patch b/meta/recipes-kernel/lttng/lttng-modules/0007-Fix-vmalloc-wrapper-on-kernel-4.12.patch new file mode 100644 index 0000000000..1412db35d6 --- /dev/null +++ b/meta/recipes-kernel/lttng/lttng-modules/0007-Fix-vmalloc-wrapper-on-kernel-4.12.patch | |||
@@ -0,0 +1,37 @@ | |||
1 | From ecda9325cd5ad6b69600fd4d88c46095d22f95e1 Mon Sep 17 00:00:00 2001 | ||
2 | From: Michael Jeanson <mjeanson@efficios.com> | ||
3 | Date: Tue, 26 Sep 2017 13:46:30 -0400 | ||
4 | Subject: [PATCH 7/8] Fix: vmalloc wrapper on kernel >= 4.12 | ||
5 | Organization: O.S. Systems Software LTDA. | ||
6 | |||
7 | Upstream-Status: Backport [2.9.4] | ||
8 | |||
9 | Signed-off-by: Michael Jeanson <mjeanson@efficios.com> | ||
10 | Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> | ||
11 | --- | ||
12 | wrapper/vmalloc.h | 2 +- | ||
13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
14 | |||
15 | diff --git a/wrapper/vmalloc.h b/wrapper/vmalloc.h | ||
16 | index 2dd06cb..e117584 100644 | ||
17 | --- a/wrapper/vmalloc.h | ||
18 | +++ b/wrapper/vmalloc.h | ||
19 | @@ -27,6 +27,7 @@ | ||
20 | |||
21 | #include <linux/version.h> | ||
22 | #include <linux/vmalloc.h> | ||
23 | +#include <linux/mm.h> | ||
24 | |||
25 | #ifdef CONFIG_KALLSYMS | ||
26 | |||
27 | @@ -105,7 +106,6 @@ void lttng_kvfree(const void *addr) | ||
28 | #else | ||
29 | |||
30 | #include <linux/slab.h> | ||
31 | -#include <linux/mm.h> | ||
32 | |||
33 | /* | ||
34 | * kallsyms wrapper of __vmalloc_node with a fallback to kmalloc_node. | ||
35 | -- | ||
36 | 2.14.1 | ||
37 | |||