Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F150483601
D38082.id116074.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
744 B
Referenced Files
None
Subscribers
None
D38082.id116074.diff
View Options
diff --git a/sys/compat/linuxkpi/common/include/linux/list.h b/sys/compat/linuxkpi/common/include/linux/list.h
--- a/sys/compat/linuxkpi/common/include/linux/list.h
+++ b/sys/compat/linuxkpi/common/include/linux/list.h
@@ -504,7 +504,12 @@
(pos) && ({ n = (pos)->member.next; 1; }); \
pos = hlist_entry_safe(n, typeof(*(pos)), member))
+#if defined(LINUXKPI_VERSION) && LINUXKPI_VERSION >= 51300
+extern void list_sort(void *priv, struct list_head *head, int (*cmp)(void *priv,
+ const struct list_head *a, const struct list_head *b));
+#else
extern void list_sort(void *priv, struct list_head *head, int (*cmp)(void *priv,
struct list_head *a, struct list_head *b));
+#endif
#endif /* _LINUXKPI_LINUX_LIST_H_ */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 2, 3:06 PM (9 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30726916
Default Alt Text
D38082.id116074.diff (744 B)
Attached To
Mode
D38082: linuxkpi: `list_sort()`'s callback now takes list arguments
Attached
Detach File
Event Timeline
Log In to Comment