Repository : ssh://git@open-mesh.org/batman-adv
On branch : maint
commit 227df84f96206b2b26cecdc3d5d75d0ab675f577 Author: Simon Wunderlich simon@open-mesh.com Date: Thu Oct 3 23:02:13 2013 +0200
batman-adv: fix compat of net_ratelimited_function for >3.2.46
Appearently net_ratelimited_function was added to the stable series of from 3.2.47, which results in a lot of warnings when compiling against this kernel. This patch avoids this redefinition.
Signed-off-by: Simon Wunderlich simon@open-mesh.com Signed-off-by: Marek Lindner mareklindner@neomailbox.ch
227df84f96206b2b26cecdc3d5d75d0ab675f577 compat.h | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/compat.h b/compat.h index 35ed4d9..3e11f89 100644 --- a/compat.h +++ b/compat.h @@ -210,11 +210,13 @@ static inline void batadv_eth_hw_addr_random(struct net_device *dev)
#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 5, 0)
+#ifndef net_ratelimited_function #define net_ratelimited_function(func, ...) \ do { \ if (net_ratelimit()) \ func(__VA_ARGS__); \ } while (0) +#endif /* ifndef net_ratelimited_function */
#endif /* < KERNEL_VERSION(3, 5, 0) */