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
Wed, Jan 8, 7:43 PM (2 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15726204
Default Alt Text
D39706.diff (436 B)

Event Timeline