2017-11-01 15:07:57 +01:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
2010-01-12 17:39:16 +11:00
|
|
|
#ifndef _LINUX_LIST_SORT_H
|
|
|
|
|
#define _LINUX_LIST_SORT_H
|
|
|
|
|
|
|
|
|
|
#include <linux/types.h>
|
|
|
|
|
|
|
|
|
|
struct list_head;
|
|
|
|
|
|
2021-04-08 11:28:34 -07:00
|
|
|
typedef int __attribute__((nonnull(2,3))) (*list_cmp_func_t)(void *,
|
|
|
|
|
const struct list_head *, const struct list_head *);
|
|
|
|
|
|
2019-05-14 15:42:58 -07:00
|
|
|
__attribute__((nonnull(2,3)))
|
2021-04-08 11:28:34 -07:00
|
|
|
void list_sort(void *priv, struct list_head *head, list_cmp_func_t cmp);
|
2010-01-12 17:39:16 +11:00
|
|
|
#endif
|