Page MenuHomeFreeBSD

D38082.id116074.diff
No OneTemporary

D38082.id116074.diff

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

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)

Event Timeline