From: Hauke Mehrtens Date: Sun, 18 Apr 2010 13:37:57 +0000 (+0200) Subject: compat: Add linux/version.h include before using it. X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=bb189141906cb3ed0d5bf240616c27b3dd67369c;p=openwrt%2Fstaging%2Fblogic.git 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 --- 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)) */