summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-11-14 22:57:19 +0300
committerTom Rini <trini@konsulko.com>2019-12-03 02:23:08 +0300
commit8bef79bf3c30cd1fc5367cc1f78f72e6552629e9 (patch)
tree318647c77cc039fd2a0e8d611c2156027a3c4691 /lib
parentf083583786913de7652312c137dd4fea5c2e291f (diff)
downloadu-boot-8bef79bf3c30cd1fc5367cc1f78f72e6552629e9.tar.xz
common: Move sorting functions to their own header file
These don't need to be in common.h so move them out into a new header. Also add some missing comments. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/hashtable.c1
-rw-r--r--lib/qsort.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/hashtable.c b/lib/hashtable.c
index 2caab0a4c6..907e8a642f 100644
--- a/lib/hashtable.c
+++ b/lib/hashtable.c
@@ -14,6 +14,7 @@
#include <errno.h>
#include <malloc.h>
+#include <sort.h>
#ifdef USE_HOSTCC /* HOST build */
# include <string.h>
diff --git a/lib/qsort.c b/lib/qsort.c
index 57098841f9..f63d4ef726 100644
--- a/lib/qsort.c
+++ b/lib/qsort.c
@@ -18,6 +18,7 @@
#include <linux/types.h>
#include <common.h>
#include <exports.h>
+#include <sort.h>
void qsort(void *base,
size_t nel,