summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2021-11-14 08:41:07 +0100
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2021-11-20 10:53:00 +0100
commit5a515132d9f25b1ff2c15e2013de9be33bf71067 (patch)
tree92f19a4b5aa0ba82cfbd2f2da523de123d05d291 /test
parent454a97485a1854d4ac4f3b7d408caf3b355beca0 (diff)
downloadu-boot-5a515132d9f25b1ff2c15e2013de9be33bf71067.tar.gz
u-boot-5a515132d9f25b1ff2c15e2013de9be33bf71067.tar.bz2
u-boot-5a515132d9f25b1ff2c15e2013de9be33bf71067.zip
lmb: remove lmb_is_nomap() from include
Defining static functions in includes should be avoided. Function lmb_is_nomap() is only used in the unit test. So move it to the unit test. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Diffstat (limited to 'test')
-rw-r--r--test/lib/lmb.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/lib/lmb.c b/test/lib/lmb.c
index b2c2b99ef1..157c26394d 100644
--- a/test/lib/lmb.c
+++ b/test/lib/lmb.c
@@ -12,6 +12,11 @@
#include <test/test.h>
#include <test/ut.h>
+static inline bool lmb_is_nomap(struct lmb_property *m)
+{
+ return m->flags & LMB_NOMAP;
+}
+
static int check_lmb(struct unit_test_state *uts, struct lmb *lmb,
phys_addr_t ram_base, phys_size_t ram_size,
unsigned long num_reserved,