]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
lmb: Export the lmb data structure
authorSimon Glass <sjg@chromium.org>
Mon, 21 Oct 2024 08:19:31 +0000 (10:19 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 25 Oct 2024 20:22:24 +0000 (14:22 -0600)
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>
lib/lmb.c

index 7e90f178763b8cc1b44170f4578f82604118cfcd..eec99c185ee55b93851380936ecb4b072fcb02b3 100644 (file)
--- 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;