@@ -2275,4 +2275,9 @@ static inline bool fwnode_device_is_available(struct fwnode_handle *fwnode)
setup_timer_on_stack((timer), (callback), (flags))
#endif
+#ifdef NEED_READ_ONCE
+#define READ_ONCE(x) ACCESS_ONCE(x)
+#endif
+
+
#endif /* _COMPAT_H */
@@ -712,6 +712,7 @@ sub check_other_dependencies()
check_files_for_func("fwnode_for_each_child_node", "NEED_FWNODE_FOR_EACH_CHILD_NODE", "include/linux/property.h");
check_files_for_func("fwnode_graph_get_port_parent", "NEED_FWNODE_GRAPH_GET_PORT_PARENT", "include/linux/property.h");
check_files_for_func("timer_setup_on_stack", "NEED_TIMER_SETUP_ON_STACK", "include/linux/timer.h");
+ check_files_for_func("READ_ONCE", "NEED_READ_ONCE", "include/linux/compiler.h");
# For tests for uapi-dependent logic
check_files_for_func_uapi("usb_endpoint_maxp", "NEED_USB_ENDPOINT_MAXP", "usb/ch9.h");