* [B.A.T.M.A.N.] [PATCH] batman-adv: Use eth_hw_addr_random compat also for kernel 3.3
@ 2012-03-28 11:35 Sven Eckelmann
2012-03-28 15:03 ` Marek Lindner
0 siblings, 1 reply; 2+ messages in thread
From: Sven Eckelmann @ 2012-03-28 11:35 UTC (permalink / raw)
To: b.a.t.m.a.n
The changes for eth_hw_addr_random were not merged in linux 3.3. Therefore, the
compat layer has to provide it.
Signed-off-by: Sven Eckelmann <sven@narfation.org>
---
compat.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/compat.h b/compat.h
index 46de8b0..92379ef 100644
--- a/compat.h
+++ b/compat.h
@@ -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_ */
--
1.7.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [B.A.T.M.A.N.] [PATCH] batman-adv: Use eth_hw_addr_random compat also for kernel 3.3
2012-03-28 11:35 [B.A.T.M.A.N.] [PATCH] batman-adv: Use eth_hw_addr_random compat also for kernel 3.3 Sven Eckelmann
@ 2012-03-28 15:03 ` Marek Lindner
0 siblings, 0 replies; 2+ messages in thread
From: Marek Lindner @ 2012-03-28 15:03 UTC (permalink / raw)
To: The list for a Better Approach To Mobile Ad-hoc Networking
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-03-28 15:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-28 11:35 [B.A.T.M.A.N.] [PATCH] batman-adv: Use eth_hw_addr_random compat also for kernel 3.3 Sven Eckelmann
2012-03-28 15:03 ` Marek Lindner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox