Author: marek Date: 2010-08-20 21:16:04 +0200 (Fri, 20 Aug 2010) New Revision: 1771
Modified: trunk/batman-adv/compat.h Log: batman-adv: Provide old dev_get_by_name for kernel prior 2.6.24
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
Modified: trunk/batman-adv/compat.h =================================================================== --- trunk/batman-adv/compat.h 2010-08-20 19:16:02 UTC (rev 1770) +++ trunk/batman-adv/compat.h 2010-08-20 19:16:04 UTC (rev 1771) @@ -90,6 +90,8 @@ #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)