diff mbox series

[lttng-modules] Add missing include for kernels between 3.8 and 3.15

Message ID 20191028202843.17852-1-mjeanson@efficios.com
State Accepted, archived
Headers show
Series [lttng-modules] Add missing include for kernels between 3.8 and 3.15 | expand

Commit Message

Michael Jeanson Oct. 28, 2019, 8:28 p.m. UTC
This is required at least for:
 v3.13.x
 v3.11.x
 v3.9.x
 v3.8.x

Signed-off-by: Michael Jeanson <mjeanson at efficios.com>
---
 lttng-context-mnt-ns.c | 1 +
 lttng-context-net-ns.c | 1 +
 2 files changed, 2 insertions(+)

Comments

Mathieu Desnoyers Oct. 28, 2019, 8:35 p.m. UTC | #1
Merged into master, thanks!

Mathieu

----- On Oct 28, 2019, at 4:28 PM, Michael Jeanson mjeanson at efficios.com wrote:

> This is required at least for:
> v3.13.x
> v3.11.x
> v3.9.x
> v3.8.x
> 
> Signed-off-by: Michael Jeanson <mjeanson at efficios.com>
> ---
> lttng-context-mnt-ns.c | 1 +
> lttng-context-net-ns.c | 1 +
> 2 files changed, 2 insertions(+)
> 
> diff --git a/lttng-context-mnt-ns.c b/lttng-context-mnt-ns.c
> index 98d5b8e..b5bb955 100644
> --- a/lttng-context-mnt-ns.c
> +++ b/lttng-context-mnt-ns.c
> @@ -13,6 +13,7 @@
> #include <linux/slab.h>
> #include <linux/sched.h>
> #include <lttng-events.h>
> +#include <linux/nsproxy.h>
> #include <wrapper/ringbuffer/frontend_types.h>
> #include <wrapper/vmalloc.h>
> #include <wrapper/namespace.h>
> diff --git a/lttng-context-net-ns.c b/lttng-context-net-ns.c
> index 24d7ae3..6694037 100644
> --- a/lttng-context-net-ns.c
> +++ b/lttng-context-net-ns.c
> @@ -12,6 +12,7 @@
> #include <linux/module.h>
> #include <linux/slab.h>
> #include <linux/sched.h>
> +#include <linux/nsproxy.h>
> #include <net/net_namespace.h>
> #include <lttng-events.h>
> #include <wrapper/ringbuffer/frontend_types.h>
> --
> 2.17.1
diff mbox series

Patch

diff --git a/lttng-context-mnt-ns.c b/lttng-context-mnt-ns.c
index 98d5b8e..b5bb955 100644
--- a/lttng-context-mnt-ns.c
+++ b/lttng-context-mnt-ns.c
@@ -13,6 +13,7 @@ 
 #include <linux/slab.h>
 #include <linux/sched.h>
 #include <lttng-events.h>
+#include <linux/nsproxy.h>
 #include <wrapper/ringbuffer/frontend_types.h>
 #include <wrapper/vmalloc.h>
 #include <wrapper/namespace.h>
diff --git a/lttng-context-net-ns.c b/lttng-context-net-ns.c
index 24d7ae3..6694037 100644
--- a/lttng-context-net-ns.c
+++ b/lttng-context-net-ns.c
@@ -12,6 +12,7 @@ 
 #include <linux/module.h>
 #include <linux/slab.h>
 #include <linux/sched.h>
+#include <linux/nsproxy.h>
 #include <net/net_namespace.h>
 #include <lttng-events.h>
 #include <wrapper/ringbuffer/frontend_types.h>