aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/linuxkpi/common/include/linux/list.h
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <dumbbell@FreeBSD.org>2023-01-11 22:22:07 +0000
committerJean-Sébastien Pédron <dumbbell@FreeBSD.org>2023-01-31 22:36:33 +0000
commita83b3ec719eb6c53658656b7b90607564d3c64d3 (patch)
treefc2afc4d9b13b4b75ae3971e1f280864cc9e2569 /sys/compat/linuxkpi/common/include/linux/list.h
parent53545967642d850eee4f2dd9fa27cae52ae981b9 (diff)
Diffstat (limited to 'sys/compat/linuxkpi/common/include/linux/list.h')
-rw-r--r--sys/compat/linuxkpi/common/include/linux/list.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/list.h b/sys/compat/linuxkpi/common/include/linux/list.h
index 80ac57fecf6d..6ec715291807 100644
--- a/sys/compat/linuxkpi/common/include/linux/list.h
+++ b/sys/compat/linuxkpi/common/include/linux/list.h
@@ -504,7 +504,12 @@ static inline int list_is_last(const struct list_head *list,
(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_ */