summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorAlexander Stein <alexander.stein@systec-electronic.com>2016-03-17 11:00:21 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2016-04-08 13:33:18 +0200
commitf01ed88aac0d36c64ea82a28317a945de418742f (patch)
tree2d2c0f932e49caed8e5f18387edb0a215bf0d145 /include/linux
parent97cef9084335959ad2e9d088d6d8adadf6c6e861 (diff)
downloadbarebox-f01ed88aac0d36c64ea82a28317a945de418742f.tar.gz
barebox-f01ed88aac0d36c64ea82a28317a945de418742f.tar.xz
Add list_sort from u-boot v2016.03
This is required by UBIFS update. Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/list_sort.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/list_sort.h b/include/linux/list_sort.h
new file mode 100644
index 0000000000..1a2df2efb7
--- /dev/null
+++ b/include/linux/list_sort.h
@@ -0,0 +1,11 @@
+#ifndef _LINUX_LIST_SORT_H
+#define _LINUX_LIST_SORT_H
+
+#include <linux/types.h>
+
+struct list_head;
+
+void list_sort(void *priv, struct list_head *head,
+ int (*cmp)(void *priv, struct list_head *a,
+ struct list_head *b));
+#endif