1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter.git synced 2025-02-24 06:54:16 +00:00
openmptcprouter/root/package/kernel/mt76/patches/access_once.patch
Ycarus (Yannick Chabanois) 731d646f99 Fix compilation
2019-06-26 07:46:32 +02:00

13 lines
310 B
Diff

--- 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;