In 2.6.29, __alloc_percpu doesn't take a align argument, so ignore this.
Signed-off-by: Martin Hundebøll martin@hundeboll.net --- compat.h | 9 +++++++++ 1 file changed, 9 insertions(+)
diff --git a/compat.h b/compat.h index 1cf5210..98b2b4c 100644 --- a/compat.h +++ b/compat.h @@ -148,4 +148,13 @@ static inline void eth_hw_addr_random(struct net_device *dev)
#endif /* < KERNEL_VERSION(3, 4, 0) */
+ +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 30) + +#undef __alloc_percpu +#define __alloc_percpu(size, align) \ + percpu_alloc_mask((size), GFP_KERNEL, cpu_possible_map) + +#endif /* < KERNEL_VERSION(2, 6, 30) */ + #endif /* _NET_BATMAN_ADV_COMPAT_H_ */