summaryrefslogtreecommitdiffstats
path: root/lib/list_sort.c
diff options
context:
space:
mode:
authorBaeuerle, Florian <Florian.Baeuerle@allegion.com>2018-12-19 14:02:03 +0000
committerSascha Hauer <s.hauer@pengutronix.de>2019-01-08 16:37:40 +0100
commit99c1263dce3902a8961bcdcac9398bce51fccd1b (patch)
tree0e014ee901e55dad8c2cd74d074622baea4d0be1 /lib/list_sort.c
parentbaf8fc002ce67ca80f3bd7456b52a9bd2f10402d (diff)
downloadbarebox-99c1263dce3902a8961bcdcac9398bce51fccd1b.tar.gz
barebox-99c1263dce3902a8961bcdcac9398bce51fccd1b.tar.xz
recursive_action: add ACTION_SORT flag
Add a flag to sort directory entries before recursing into them. Since this part of lib/ is used inside barebox as well as in scripts/bareboxenv.c, we cannot easily use stringlists from lib/, which would have made the code a bit nicer. Signed-off-by: Florian Bäuerle <florian.baeuerle@allegion.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'lib/list_sort.c')
-rw-r--r--lib/list_sort.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/list_sort.c b/lib/list_sort.c
index b7e74f260d..84c6f6465b 100644
--- a/lib/list_sort.c
+++ b/lib/list_sort.c
@@ -1,7 +1,6 @@
#ifndef __BAREBOX__
#include <linux/kernel.h>
-#include <linux/module.h>
-#include <linux/slab.h>
+#define EXPORT_SYMBOL(x)
#else
#include <common.h>
#include <malloc.h>