@@ -2166,4 +2166,8 @@ static inline unsigned long nsecs_to_jiffies_static(u64 n)
#endif
+#ifdef NEED_U32_MAX
+#define U32_MAX ((u32)~0U)
+#endif
+
#endif /* _COMPAT_H */
@@ -704,6 +704,7 @@ sub check_other_dependencies()
check_files_for_func("KEY_APPSELECT", "NEED_KEY_APPSELECT", "include/uapi/linux/input-event-codes.h");
check_files_for_func("PCI_DEVICE_SUB", "NEED_PCI_DEVICE_SUB", "include/linux/pci.h");
check_files_for_func("annotate_reachable", "NEED_ANNOTATE_REACHABLE", "include/linux/compiler.h");
+ check_files_for_func("U32_MAX", "NEED_U32_MAX", "include/linux/kernel.h");
# For tests for uapi-dependent logic
check_files_for_func_uapi("usb_endpoint_maxp", "NEED_USB_ENDPOINT_MAXP", "usb/ch9.h");