[PATCH v4 7/8] lmb: Export the lmb data structure
Ilias Apalodimas
ilias.apalodimas at linaro.org
Mon Oct 21 10:55:25 CEST 2024
On Mon, 21 Oct 2024 at 11:19, Simon Glass <sjg at chromium.org> wrote:
>
> Provide a way to access this data structure so that the meminfo command
> can use it.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
> Changes in v4:
> - Add patch to export the lmb data structure
>
> lib/lmb.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> 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;
> --
> 2.43.0
>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas at linaro.org>
More information about the U-Boot
mailing list