From: "Ilias Apalodimas" <ilias.apalodimas@linaro.org>
To: "Sughosh Ganu" <sughosh.ganu@linaro.org>, <u-boot@lists.denx.de>
Cc: "Tom Rini" <trini@konsulko.com>,
"Casey Connolly" <casey.connolly@linaro.org>,
"Neil Armstrong" <neil.armstrong@linaro.org>,
"Mark Kettenis" <kettenis@openbsd.org>,
"Weijie Gao" <weijie.gao@mediatek.com>,
"Heinrich Schuchardt" <xypron.glpk@gmx.de>,
"Simon Glass" <sjg@chromium.org>
Subject: Re: [PATCH 3/5] lmb: staticise lmb_add_memory()
Date: Fri, 02 May 2025 09:55:02 +0300 [thread overview]
Message-ID: <D9LH7RFN7GRM.ELSYN1G3Z1CX@linaro.org> (raw)
In-Reply-To: <20250501120239.199829-4-sughosh.ganu@linaro.org>
On Thu May 1, 2025 at 3:02 PM EEST, Sughosh Ganu wrote:
> lmb_add_memory() is only called from the lmb module. Mark the function
> as static.
>
> Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
> ---
> include/lmb.h | 8 --------
> lib/lmb.c | 2 +-
> 2 files changed, 1 insertion(+), 9 deletions(-)
>
> diff --git a/include/lmb.h b/include/lmb.h
> index be723d9162a..73df4e07248 100644
> --- a/include/lmb.h
> +++ b/include/lmb.h
> @@ -120,14 +120,6 @@ int lmb_allocate_mem(enum lmb_mem_type type, u64 align, phys_addr_t *addr,
> */
> int lmb_init(void);
>
> -/**
> - * lmb_add_memory() - Add memory range for LMB allocations.
> - *
> - * Add the entire available memory range to the pool of memory that
> - * can be used by the LMB module for allocations.
> - */
> -void lmb_add_memory(void);
> -
> long lmb_add(phys_addr_t base, phys_size_t size);
>
> phys_size_t lmb_get_free_size(phys_addr_t addr);
> diff --git a/lib/lmb.c b/lib/lmb.c
> index a21f9c72204..55aca306a90 100644
> --- a/lib/lmb.c
> +++ b/lib/lmb.c
> @@ -605,7 +605,7 @@ static __maybe_unused void lmb_reserve_common_spl(void)
> }
> }
>
> -void lmb_add_memory(void)
> +static void lmb_add_memory(void)
> {
> int i;
> phys_addr_t bank_end;
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
next prev parent reply other threads:[~2025-05-02 6:55 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-01 12:02 [PATCH 0/5] lmb: use a single API for all allocations Sughosh Ganu
2025-05-01 12:02 ` [PATCH 1/5] lmb: replace lmb_reserve() and lmb_alloc_addr() API's Sughosh Ganu
2025-05-02 6:50 ` Ilias Apalodimas
2025-05-02 7:29 ` Sughosh Ganu
2025-05-01 12:02 ` [PATCH 2/5] lmb: replace the lmb_alloc() and lmb_alloc_base() API's Sughosh Ganu
2025-05-02 7:41 ` Ilias Apalodimas
2025-05-02 12:29 ` Sughosh Ganu
2025-05-02 13:41 ` Ilias Apalodimas
2025-05-01 12:02 ` [PATCH 3/5] lmb: staticise lmb_add_memory() Sughosh Ganu
2025-05-02 6:55 ` Ilias Apalodimas [this message]
2025-05-01 12:02 ` [PATCH 4/5] lmb: use a single function to free up memory Sughosh Ganu
2025-05-02 7:00 ` Ilias Apalodimas
2025-05-02 7:22 ` Sughosh Ganu
2025-05-01 12:02 ` [PATCH 5/5] doc: add lmb documentation Sughosh Ganu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=D9LH7RFN7GRM.ELSYN1G3Z1CX@linaro.org \
--to=ilias.apalodimas@linaro.org \
--cc=casey.connolly@linaro.org \
--cc=kettenis@openbsd.org \
--cc=neil.armstrong@linaro.org \
--cc=sjg@chromium.org \
--cc=sughosh.ganu@linaro.org \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
--cc=weijie.gao@mediatek.com \
--cc=xypron.glpk@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox