]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blame - include/linux/list_sort.h
Merge tag 'pm-5.14-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
[mirror_ubuntu-jammy-kernel.git] / include / linux / list_sort.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
2c761270
DC
2#ifndef _LINUX_LIST_SORT_H
3#define _LINUX_LIST_SORT_H
4
5#include <linux/types.h>
6
7struct list_head;
8
4f0f586b
ST
9typedef int __attribute__((nonnull(2,3))) (*list_cmp_func_t)(void *,
10 const struct list_head *, const struct list_head *);
11
043b3f7b 12__attribute__((nonnull(2,3)))
4f0f586b 13void list_sort(void *priv, struct list_head *head, list_cmp_func_t cmp);
2c761270 14#endif