summaryrefslogtreecommitdiff
path: root/package/kernel/mac80211/patches
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2015-06-26 00:43:03 +0000
committerNicolas Thill <nico@openwrt.org>2015-06-26 00:43:03 +0000
commit0aa351196ae3c5262b38a61dab6d1672b4070a2f (patch)
tree946a5ac73375408f56258e61d74e506e75d13ad2 /package/kernel/mac80211/patches
parent2b1964181c9182bf57981d5ab7c9f04752f30417 (diff)
downloadmtk-20170518-0aa351196ae3c5262b38a61dab6d1672b4070a2f.zip
mtk-20170518-0aa351196ae3c5262b38a61dab6d1672b4070a2f.tar.gz
mtk-20170518-0aa351196ae3c5262b38a61dab6d1672b4070a2f.tar.bz2
mac80211: fix build on UML
A duplicate include guard prevents inclusion of barrier.h in UML build and this prevents mac80211 from building. This patch re-enables mac80211 hwsim and renames the include guard. See https://lists.openwrt.org/pipermail/openwrt-devel/2015-June/033614.html for details. Signed-off-by: Martin Tippmann <martin.tippmann@gmail.com> Signed-off-by: Nicolas Thill <nico@openwrt.org> SVN-Revision: 46133
Diffstat (limited to 'package/kernel/mac80211/patches')
-rw-r--r--package/kernel/mac80211/patches/010-fix-uml-build.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/package/kernel/mac80211/patches/010-fix-uml-build.patch b/package/kernel/mac80211/patches/010-fix-uml-build.patch
new file mode 100644
index 0000000..0d53e08
--- /dev/null
+++ b/package/kernel/mac80211/patches/010-fix-uml-build.patch
@@ -0,0 +1,15 @@
+--- a/backport-include/asm/barrier.h
++++ b/backport-include/asm/barrier.h
+@@ -1,9 +1,9 @@
+-#ifndef __BACKPORT_ASM_GENERIC_BARRIER_H
+-#define __BACKPORT_ASM_GENERIC_BARRIER_H
++#ifndef __BACKPORT_ASM_BARRIER_H
++#define __BACKPORT_ASM_BARRIER_H
+ #include_next <asm/barrier.h>
+
+ #ifndef dma_rmb
+ #define dma_rmb() rmb()
+ #endif
+
+-#endif /* __BACKPORT_ASM_GENERIC_BARRIER_H */
++#endif /* __BACKPORT_ASM_BARRIER_H */