Skip to contentSkip to conversation

batman-adv: Use eth_hw_addr_random compat also for kernel 3.3

PATCH Applied Sven Eckelmann 2 participants 2 messages Mar 28, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 batman-adv: Use eth_hw_addr_random compat also for kernel 3.3

The changes for eth_hw_addr_random were not merged in linux 3.3. Therefore, the compat layer has to provide it.

---
 compat.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
compat.h +2 -2
index 46de8b0..92379ef 100644
@@ -132,13 +132,13 @@ void free_rcu_backbone_gw(struct rcu_head *rcu);
 #endif /* < KERNEL_VERSION(3, 0, 0) */
 
 
-#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 3, 0)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 4, 0)
 
 static inline void eth_hw_addr_random(struct net_device *dev)
 {
 	random_ether_addr(dev->dev_addr);
 }
 
-#endif /* < KERNEL_VERSION(3, 0, 0) */
+#endif /* < KERNEL_VERSION(3, 4, 0) */
 
 #endif /* _NET_BATMAN_ADV_COMPAT_H_ */
Signature · 1 line
1.7.9.1
#1 lore raw
Quoted 2 lines · On Wednesday, March 28, 2012 14:35:05 Sven Eckelmann wrote:

The changes for eth_hw_addr_random were not merged in linux 3.3. Therefore, the compat layer has to provide it.

Applied in revision 6b49cab.

Thanks,
Marek