Repository : ssh://git@open-mesh.org/batman-adv
On branches: master,next
commit 1b94faba9e1fa9f064becba044cc944cb8f496ee Author: Sven Eckelmann sven@narfation.org Date: Sun Oct 30 11:07:31 2016 +0100
batman-adv: Ignore MODULE_ALIAS_GENL_FAMILY on old kernels
Signed-off-by: Sven Eckelmann sven@narfation.org
1b94faba9e1fa9f064becba044cc944cb8f496ee compat-include/linux/{random.h => genetlink.h} | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/compat-include/linux/random.h b/compat-include/linux/genetlink.h similarity index 72% copy from compat-include/linux/random.h copy to compat-include/linux/genetlink.h index 7e2eaef..9c5983d 100644 --- a/compat-include/linux/random.h +++ b/compat-include/linux/genetlink.h @@ -18,16 +18,16 @@ * of the Linux kernel. */
-#ifndef _NET_BATMAN_ADV_COMPAT_LINUX_RANDOM_H_ -#define _NET_BATMAN_ADV_COMPAT_LINUX_RANDOM_H_ +#ifndef _NET_BATMAN_ADV_COMPAT_LINUX_GENETLINK_H_ +#define _NET_BATMAN_ADV_COMPAT_LINUX_GENETLINK_H_
#include <linux/version.h> -#include_next <linux/random.h> +#include_next <linux/genetlink.h>
-#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 9, 0) +#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 5, 0)
-#define prandom_u32() random32() +#define MODULE_ALIAS_GENL_FAMILY(family)
-#endif /* < KERNEL_VERSION(3, 9, 0) */ +#endif /* < KERNEL_VERSION(3, 5, 0) */
-#endif /* _NET_BATMAN_ADV_COMPAT_LINUX_RANDOM_H_ */ +#endif /* _NET_BATMAN_ADV_COMPAT_LINUX_GENETLINK_H_ */