summaryrefslogtreecommitdiff
path: root/lib/lmb.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2024-10-21 10:19:31 +0200
committerTom Rini <trini@konsulko.com>2024-10-25 14:22:24 -0600
commit1c30f7a844fbedfa6b08bfab9e2ad98088ce1967 (patch)
tree7b64eee7e54f660a6eb47c0b5396749bcaa9421e /lib/lmb.c
parentf18c048e6e6194b4f64d440f514dc158e4eb12a7 (diff)
lmb: Export the lmb data structure
Provide a way to access this data structure so that the meminfo command can use it. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Diffstat (limited to 'lib/lmb.c')
-rw-r--r--lib/lmb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lmb.c b/lib/lmb.c
index 7e90f178763..eec99c185ee 100644
--- a/lib/lmb.c
+++ b/lib/lmb.c
@@ -887,12 +887,12 @@ int lmb_init(void)
return 0;
}
-#if CONFIG_IS_ENABLED(UNIT_TEST)
struct lmb *lmb_get(void)
{
return &lmb;
}
+#if CONFIG_IS_ENABLED(UNIT_TEST)
int lmb_push(struct lmb *store)
{
int ret;