Page MenuHomeFreeBSD

D39706.diff
No OneTemporary

D39706.diff

diff --git a/sys/compat/linuxkpi/common/include/linux/compiler.h b/sys/compat/linuxkpi/common/include/linux/compiler.h
--- a/sys/compat/linuxkpi/common/include/linux/compiler.h
+++ b/sys/compat/linuxkpi/common/include/linux/compiler.h
@@ -98,7 +98,7 @@
#define READ_ONCE(x) ({ \
__typeof(x) __var = ({ \
barrier(); \
- ACCESS_ONCE(x); \
+ (*(const volatile __typeof(x) *)&(x)); \
}); \
barrier(); \
__var; \

File Metadata

Mime Type
text/plain
Expires
Thu, Nov 7, 9:21 AM (22 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14508367
Default Alt Text
D39706.diff (436 B)

Event Timeline