Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144513740
D53203.1775144613.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
738 B
Referenced Files
None
Subscribers
None
D53203.1775144613.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
@@ -31,6 +31,7 @@
#define _LINUXKPI_LINUX_COMPILER_H_
#include <sys/cdefs.h>
+#include <sys/endian.h>
#define __user
#define __kernel
@@ -79,6 +80,13 @@
#else
#define __counted_by(_x)
#endif
+#if BYTE_ORDER == LITTLE_ENDIAN
+#define __counted_by_le(_x) __counted_by(_x)
+#define __counted_by_be(_x)
+#else
+#define __counted_by_le(_x)
+#define __counted_by_be(_x) __counted_by(_x)
+#endif
#define likely(x) __builtin_expect(!!(x), 1)
#define unlikely(x) __builtin_expect(!!(x), 0)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 2, 3:43 PM (11 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28246041
Default Alt Text
D53203.1775144613.diff (738 B)
Attached To
Mode
D53203: LinuxKPI: add __counted_by_le()
Attached
Detach File
Event Timeline
Log In to Comment