Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102860407
D31942.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
851 B
Referenced Files
None
Subscribers
None
D31942.diff
View Options
diff --git a/sys/compat/linuxkpi/common/include/linux/overflow.h b/sys/compat/linuxkpi/common/include/linux/overflow.h
--- a/sys/compat/linuxkpi/common/include/linux/overflow.h
+++ b/sys/compat/linuxkpi/common/include/linux/overflow.h
@@ -34,18 +34,9 @@
#include <sys/stdint.h>
#include <sys/types.h>
-#ifndef __has_builtin
-#define __has_builtin(x) 0
-#endif
-
-#if __has_builtin(__builtin_add_overflow)
#define check_add_overflow(a, b, c) \
__builtin_add_overflow(a, b, c)
-#else
-#error "Compiler does not support __builtin_add_overflow"
-#endif
-#if __has_builtin(__builtin_mul_overflow)
#define check_mul_overflow(a, b, c) \
__builtin_mul_overflow(a, b, c)
@@ -58,8 +49,5 @@
retval = SIZE_MAX;
return (retval);
}
-#else
-#error "Compiler does not support __builtin_mul_overflow"
-#endif
#endif /* __LINUX_OVERFLOW_H__ */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 19, 2:52 AM (21 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14709090
Default Alt Text
D31942.diff (851 B)
Attached To
Mode
D31942: <linux/overflow.h>: Don't use __has_builtin().
Attached
Detach File
Event Timeline
Log In to Comment