[pisa-src] r2136 - trunk/kernel/pisa.c

  • From: Mircea Gherzan <mircea.gherzan@xxxxxxxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Sat, 13 Mar 2010 01:06:37 +0100

Author: gherzan
Date: Sat Mar 13 01:06:37 2010
New Revision: 2136

Log:
kpisa: check version when aliasing netdev_tx_t

The preprocessor was unaware of this "symbol"...

Modified:
   trunk/kernel/pisa.c

Modified: trunk/kernel/pisa.c
==============================================================================
--- trunk/kernel/pisa.c Sat Mar 13 00:47:14 2010        (r2135)
+++ trunk/kernel/pisa.c Sat Mar 13 01:06:37 2010        (r2136)
@@ -11,6 +11,7 @@
 
 #include <linux/kernel.h>
 #include <linux/module.h>
+#include <linux/version.h>
 #include <linux/netdevice.h>
 #include <linux/rtnetlink.h>
 #include <linux/if_arp.h>
@@ -21,7 +22,7 @@
  * the type of the value returned by the _xmit routine.
  * The following typedef is provided for backward compatibility.
  */
-#ifndef netdev_tx_t
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,32)
 typedef int netdev_tx_t;
 #endif
 

Other related posts:

  • » [pisa-src] r2136 - trunk/kernel/pisa.c - Mircea Gherzan