* [PATCH] MIPS: mark prom_free_prom_memory() everywhere with __init
@ 2015-02-25 23:31 Aaro Koskinen
2015-02-25 23:36 ` David Daney
0 siblings, 1 reply; 2+ messages in thread
From: Aaro Koskinen @ 2015-02-25 23:31 UTC (permalink / raw)
To: Ralf Baechle, David Daney, linux-mips; +Cc: Aaro Koskinen
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>
---
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)
{
}
--
2.2.0
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] MIPS: mark prom_free_prom_memory() everywhere with __init
2015-02-25 23:31 [PATCH] MIPS: mark prom_free_prom_memory() everywhere with __init Aaro Koskinen
@ 2015-02-25 23:36 ` David Daney
0 siblings, 0 replies; 2+ messages in thread
From: David Daney @ 2015-02-25 23:36 UTC (permalink / raw)
To: Aaro Koskinen; +Cc: Ralf Baechle, David Daney, linux-mips
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)
> {
> }
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-02-25 23:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox