From: David Daney <ddaney.cavm@gmail.com>
To: Aaro Koskinen <aaro.koskinen@iki.fi>
Cc: Ralf Baechle <ralf@linux-mips.org>,
David Daney <david.daney@cavium.com>,
linux-mips@linux-mips.org
Subject: Re: [PATCH] MIPS: mark prom_free_prom_memory() everywhere with __init
Date: Wed, 25 Feb 2015 15:36:46 -0800 [thread overview]
Message-ID: <54EE5C8E.7080501@gmail.com> (raw)
In-Reply-To: <1424907064-31621-1-git-send-email-aaro.koskinen@iki.fi>
On 02/25/2015 03:31 PM, Aaro Koskinen wrote:
> Mark prom_free_prom_memory with() everywhere with __init.
>
> On OCTEON the function is non-trivial and we can potentially even
> save some memory.
>
> Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
OCTEON part:
Acked-by: David Daney <david.daney@cavium.com>
> ---
> arch/mips/cavium-octeon/setup.c | 2 +-
> arch/mips/lantiq/prom.c | 2 +-
> arch/mips/mti-sead3/sead3-init.c | 2 +-
> 3 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/arch/mips/cavium-octeon/setup.c b/arch/mips/cavium-octeon/setup.c
> index a42110e..d0fa0bc 100644
> --- a/arch/mips/cavium-octeon/setup.c
> +++ b/arch/mips/cavium-octeon/setup.c
> @@ -1043,7 +1043,7 @@ int prom_putchar(char c)
> }
> EXPORT_SYMBOL(prom_putchar);
>
> -void prom_free_prom_memory(void)
> +void __init prom_free_prom_memory(void)
> {
> if (CAVIUM_OCTEON_DCACHE_PREFETCH_WAR) {
> /* Check for presence of Core-14449 fix. */
> diff --git a/arch/mips/lantiq/prom.c b/arch/mips/lantiq/prom.c
> index 39ab3e7..0db099e 100644
> --- a/arch/mips/lantiq/prom.c
> +++ b/arch/mips/lantiq/prom.c
> @@ -41,7 +41,7 @@ int ltq_soc_type(void)
> return soc_info.type;
> }
>
> -void prom_free_prom_memory(void)
> +void __init prom_free_prom_memory(void)
> {
> }
>
> diff --git a/arch/mips/mti-sead3/sead3-init.c b/arch/mips/mti-sead3/sead3-init.c
> index bfbd17b..3572ea3 100644
> --- a/arch/mips/mti-sead3/sead3-init.c
> +++ b/arch/mips/mti-sead3/sead3-init.c
> @@ -147,6 +147,6 @@ void __init prom_init(void)
> #endif
> }
>
> -void prom_free_prom_memory(void)
> +void __init prom_free_prom_memory(void)
> {
> }
>
prev parent reply other threads:[~2015-02-25 23:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-25 23:31 [PATCH] MIPS: mark prom_free_prom_memory() everywhere with __init Aaro Koskinen
2015-02-25 23:36 ` David Daney [this message]
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=54EE5C8E.7080501@gmail.com \
--to=ddaney.cavm@gmail.com \
--cc=aaro.koskinen@iki.fi \
--cc=david.daney@cavium.com \
--cc=linux-mips@linux-mips.org \
--cc=ralf@linux-mips.org \
/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