Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F103036882
D44587.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
779 B
Referenced Files
None
Subscribers
None
D44587.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
@@ -67,6 +67,17 @@
#define ____cacheline_aligned_in_smp __aligned(CACHE_LINE_SIZE)
#define fallthrough /* FALLTHROUGH */ do { } while(0)
+#if __has_attribute(__nonstring__)
+#define __nonstring __attribute__((__nonstring__))
+#else
+#define __nonstring
+#endif
+#if __has_attribute(__counted_by__)
+#define __counted_by(_x) __attribute__((__counted_by__(_x)))
+#else
+#define __counted_by(_x)
+#endif
+
#define likely(x) __builtin_expect(!!(x), 1)
#define unlikely(x) __builtin_expect(!!(x), 0)
#define typeof(x) __typeof(x)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 21, 2:59 AM (8 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14743231
Default Alt Text
D44587.diff (779 B)
Attached To
Mode
D44587: LinuxKPI: add __counted_by() and __nonstring
Attached
Detach File
Event Timeline
Log In to Comment