summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorHeiko Schocher <hs@denx.de>2014-06-24 08:10:01 (GMT)
committerTom Rini <trini@ti.com>2014-08-25 21:02:33 (GMT)
commitc068d44aac8e3bc3fa14ea60ecdfe52598d83096 (patch)
tree1149dbbd206ca2170818a25ac3785a6d69c04b58 /include/linux
parent9dd228b5e702edb3295fe5cfee5e46e87233dc72 (diff)
downloadu-boot-c068d44aac8e3bc3fa14ea60ecdfe52598d83096.tar.xz
lib, list_sort: add list_sort from linux 3.14
from linux 3.14: commit 455c6fdbd219161bd09b1165f11699d6d73de11c Author: Linus Torvalds <torvalds@linux-foundation.org> Date: Sun Mar 30 20:40:15 2014 -0700 Linux 3.14 Needed for the MTD/UBI/UBIFS resync Just copied the files from Linux, and added in the c-file the "#define __UBOOT__" for adding U-Boot special code. In this case we use this just for adding including U-Boot headers. Signed-off-by: Heiko Schocher <hs@denx.de> Cc: Marek Vasut <marex@denx.de> Cc: Sergey Lapin <slapin@ossfans.org> Cc: Scott Wood <scottwood@freescale.com> Cc: Tom Rini <trini@ti.com>
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 0000000..1a2df2e
--- /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