datapath: Support for kernel 3.3
[sliver-openvswitch.git] / datapath / linux / compat / include / linux / etherdevice.h
index 7a8178e..7f04c96 100644 (file)
@@ -1,15 +1,15 @@
 #ifndef __LINUX_ETHERDEVICE_WRAPPER_H
 #define __LINUX_ETHERDEVICE_WRAPPER_H 1
 
-#include_next <linux/etherdevice.h>
 #include <linux/version.h>
+#include_next <linux/etherdevice.h>
 
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,36)
 static inline void eth_hw_addr_random(struct net_device *dev)
 {
        random_ether_addr(dev->dev_addr);
 }
-#elif LINUX_VERSION_CODE < KERNEL_VERSION(3,3,0)
+#elif LINUX_VERSION_CODE < KERNEL_VERSION(3,4,0)
 static inline void eth_hw_addr_random(struct net_device *dev)
 {
        dev_hw_addr_random(dev, dev->dev_addr);