Search Linux Wireless

[PATCH 2/2] compat: Add linux/version.h include before using it.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This causes problems if theses header files are used without including
linux/compat-2.6.h

Signed-off-by: Hauke Mehrtens <hauke@xxxxxxxxxx>
---
 include/linux/tracepoint.h   |    2 ++
 include/net/net_namespace.h  |    2 ++
 include/trace/define_trace.h |    2 ++
 3 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/include/linux/tracepoint.h b/include/linux/tracepoint.h
index 7484716..9f5add1 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 <linux/version.h>
+
 #if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,27))
 #include_next <linux/tracepoint.h>
 #endif /* (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,27)) */
diff --git a/include/net/net_namespace.h b/include/net/net_namespace.h
index 206c0c1..0f74944 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 <linux/version.h>
+
 #if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,23))
 #include_next <net/net_namespace.h>
 #endif /* (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,23)) */
diff --git a/include/trace/define_trace.h b/include/trace/define_trace.h
index f5c01de..a31105a 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 <linux/version.h>
+
 #if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,30))
 #include_next <trace/define_trace.h>
 #endif /* (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,30)) */
-- 
1.6.3.3

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux