package/mac80211: fix atomic64 issues on x86 / uml
authorNicolas Thill <nico@openwrt.org>
Mon, 21 Nov 2011 21:40:26 +0000 (21:40 +0000)
committerNicolas Thill <nico@openwrt.org>
Mon, 21 Nov 2011 21:40:26 +0000 (21:40 +0000)
SVN-Revision: 29289

package/mac80211/patches/022-atomic64_backport.patch

index ab77f76ad0207b06128598e7e8667b3bade7c3d0..673b7c336a6b5a3777718cf8e66f51a458b4489a 100644 (file)
@@ -38,7 +38,7 @@
 +#include <linux/spinlock.h>
 +#include <linux/module.h>
 +
-+#if !defined(CONFIG_X86) && !((LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) && defined(CONFIG_ARM) && !defined(CONFIG_GENERIC_ATOMIC64))
++#if !((LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,31)) && (defined(CONFIG_UML) || defined(CONFIG_X86))) && !((LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) && defined(CONFIG_ARM) && !defined(CONFIG_GENERIC_ATOMIC64))
 +
 +static DEFINE_SPINLOCK(lock);
 +