compat: Add build support for cxgb3 driver
authorVipul Pandya <vipul@chelsio.com>
Mon, 7 May 2012 07:27:52 +0000 (12:57 +0530)
committerVipul Pandya vipul@chelsio.com <vipulp@openfabrics.org>
Tue, 15 May 2012 15:16:51 +0000 (08:16 -0700)
Signed-off-by: Vipul Pandya <vipul@chelsio.com>
include/net/dst.h

index f943fc4..08e0a8b 100644 (file)
@@ -3,9 +3,9 @@
 
 #include <linux/version.h>
 
-#if (LINUX_VERSION_CODE > KERNEL_VERSION(3,1,0))
-#include <net/dst.h>
-#else /* (LINUX_VERSION_CODE > KERNEL_VERSION(3,1,0)) */
+#if (LINUX_VERSION_CODE > KERNEL_VERSION(3, 0, 0))
+#include_next <net/dst.h>
+#else /* (LINUX_VERSION_CODE > KERNEL_VERSION(3,0,0)) */
 #include_next <net/dst.h>
 
 static inline struct neighbour *dst_get_neighbour(struct dst_entry *dst)
@@ -22,6 +22,6 @@ static inline struct neighbour *dst_get_neighbour_raw(struct dst_entry *dst)
 {
        return rcu_dereference_raw(dst->neighbour);
 }
-#endif /* (LINUX_VERSION_CODE > KERNEL_VERSION(3,1,0)) */
+#endif /* (LINUX_VERSION_CODE > KERNEL_VERSION(3,0,0)) */
 
 #endif /* _COMPAT_NET_DST_H */