Skip to content
Snippets Groups Projects
Commit 5a515132 authored by Heinrich Schuchardt's avatar Heinrich Schuchardt :speech_balloon: Committed by Heinrich Schuchardt
Browse files

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's avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
Acked-by: default avatarIlias Apalodimas <ilias.apalodimas@linaro.org>
parent 454a9748
No related branches found
No related tags found
No related merge requests found
......@@ -124,13 +124,6 @@ void board_lmb_reserve(struct lmb *lmb);
void arch_lmb_reserve(struct lmb *lmb);
void arch_lmb_reserve_generic(struct lmb *lmb, ulong sp, ulong end, ulong align);
/* Low level functions */
static inline bool lmb_is_nomap(struct lmb_property *m)
{
return m->flags & LMB_NOMAP;
}
#endif /* __KERNEL__ */
#endif /* _LINUX_LMB_H */
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment