mirror of
https://github.com/Ysurac/openmptcprouter.git
synced 2025-02-12 19:31:52 +00:00
Fix compilation
This commit is contained in:
parent
f67b4186b0
commit
731d646f99
1 changed files with 13 additions and 0 deletions
13
root/package/kernel/mt76/patches/access_once.patch
Normal file
13
root/package/kernel/mt76/patches/access_once.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
--- a/mt76.h 2019-06-26 07:20:16.824670280 +0200
|
||||
+++ b/mt76.h 2019-06-26 07:20:45.660340322 +0200
|
||||
@@ -32,6 +32,10 @@
|
||||
#define MT_RX_BUF_SIZE 2048
|
||||
#define MT_SKB_HEAD_LEN 128
|
||||
|
||||
+#ifndef ACCESS_ONCE
|
||||
+#define ACCESS_ONCE(x) (*(volatile typeof(x) *)&(x))
|
||||
+#endif
|
||||
+
|
||||
struct mt76_dev;
|
||||
struct mt76_wcid;
|
||||
|
Loading…
Reference in a new issue