Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid
[linux-block.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
043b3f7b 9__attribute__((nonnull(2,3)))
2c761270
DC
10void list_sort(void *priv, struct list_head *head,
11 int (*cmp)(void *priv, struct list_head *a,
12 struct list_head *b));
13#endif