Since v2.6.23-173-g881d966 we must provide the net namespace to use for dev_get_by_name. Older kernels didn't provide that functionality and we must ignore that argument.
Signed-off-by: Sven Eckelmann sven.eckelmann@gmx.de --- batman-adv/compat.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/batman-adv/compat.h b/batman-adv/compat.h index 5bf1532..617d23c 100644 --- a/batman-adv/compat.h +++ b/batman-adv/compat.h @@ -90,6 +90,8 @@ static inline int skb_cow_head(struct sk_buff *skb, unsigned int headroom) #define pr_warning(fmt, ...) \ printk(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
+#define dev_get_by_name(x, y) dev_get_by_name(y) + #endif /* < KERNEL_VERSION(2, 6, 24) */
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 25)