From bb189141906cb3ed0d5bf240616c27b3dd67369c Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Sun, 18 Apr 2010 15:37:57 +0200 Subject: [PATCH] compat: Add linux/version.h include before using it. This causes problems if theses header files are used without including linux/compat-2.6.h Signed-off-by: Hauke Mehrtens --- include/linux/tracepoint.h | 2 ++ include/net/net_namespace.h | 2 ++ include/trace/define_trace.h | 2 ++ 3 files changed, 6 insertions(+) diff --git a/include/linux/tracepoint.h b/include/linux/tracepoint.h index 7484716fa8c0..9f5add1ceb59 100644 --- a/include/linux/tracepoint.h +++ b/include/linux/tracepoint.h @@ -1,6 +1,8 @@ #ifndef _COMPAT_LINUX_TRACEPOINT_H #define _COMPAT_LINUX_TRACEPOINT_H 1 +#include + #if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,27)) #include_next #endif /* (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,27)) */ diff --git a/include/net/net_namespace.h b/include/net/net_namespace.h index 206c0c15b25b..0f74944b3823 100644 --- a/include/net/net_namespace.h +++ b/include/net/net_namespace.h @@ -1,6 +1,8 @@ #ifndef _COMPAT_NET_NET_NAMESPACE_H #define _COMPAT_NET_NET_NAMESPACE_H 1 +#include + #if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,23)) #include_next #endif /* (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,23)) */ diff --git a/include/trace/define_trace.h b/include/trace/define_trace.h index f5c01de413aa..a31105a4c34e 100644 --- a/include/trace/define_trace.h +++ b/include/trace/define_trace.h @@ -1,6 +1,8 @@ #ifndef _COMPAT_TRACE_DEFINE_TRACE_H #define _COMPAT_TRACE_DEFINE_TRACE_H 1 +#include + #if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,30)) #include_next #endif /* (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,30)) */ -- 2.30.2