Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F101998918
D39706.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
436 B
Referenced Files
None
Subscribers
None
D39706.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D39706: LinuxKPI: fix READ_ONCE() -Wcast-equal warnings
Attached
Detach File
Event Timeline
Log In to Comment