Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / tools / include / linux / list_sort.h
blob453105f74e050451b4c65748218b9fbd03b5db0f
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _LINUX_LIST_SORT_H
3 #define _LINUX_LIST_SORT_H
5 #include <linux/types.h>
7 struct list_head;
9 typedef int __attribute__((nonnull(2,3))) (*list_cmp_func_t)(void *,
10 const struct list_head *, const struct list_head *);
12 __attribute__((nonnull(2,3)))
13 void list_sort(void *priv, struct list_head *head, list_cmp_func_t cmp);
14 #endif