From: Simon Glass Date: Mon, 21 Oct 2024 08:19:31 +0000 (+0200) Subject: lmb: Export the lmb data structure X-Git-Url: http://git.dujemihanovic.xyz/img/static/git-logo.png?a=commitdiff_plain;h=1c30f7a844fbedfa6b08bfab9e2ad98088ce1967;p=u-boot.git 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 Reviewed-by: Ilias Apalodimas --- diff --git a/lib/lmb.c b/lib/lmb.c index 7e90f17876..eec99c185e 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;