* [PATCH] mips: prom_free_prom_memory() returns `unsigned long'
@ 2005-10-28 4:42 Arthur Othieno
2005-10-28 10:12 ` Ralf Baechle
0 siblings, 1 reply; 2+ messages in thread
From: Arthur Othieno @ 2005-10-28 4:42 UTC (permalink / raw)
To: ralf; +Cc: linux-mips
Hi,
Some boards have, eg.:
arch/mips/momentum/ocelot_3/prom.c:242:void __init prom_free_prom_memory(void)
yet free_initmem() expects a return:
arch/mips/mm/init.c:285:extern unsigned long prom_free_prom_memory(void);
arch/mips/mm/init.c:291: freed = prom_free_prom_memory();
Fix those up and return 0 instead, just like everyone else does.
Signed-off-by: Arthur Othieno <a.othieno@bluewin.ch>
---
arch/mips/momentum/jaguar_atx/prom.c | 3 ++-
arch/mips/momentum/ocelot_3/prom.c | 3 ++-
arch/mips/pmc-sierra/yosemite/prom.c | 3 ++-
3 files changed, 6 insertions(+), 3 deletions(-)
718345abbb965ef544659d6cb0e90dee1535107b
diff --git a/arch/mips/momentum/jaguar_atx/prom.c b/arch/mips/momentum/jaguar_atx/prom.c
--- a/arch/mips/momentum/jaguar_atx/prom.c
+++ b/arch/mips/momentum/jaguar_atx/prom.c
@@ -236,8 +236,9 @@ void __init prom_init(void)
#endif
}
-void __init prom_free_prom_memory(void)
+unsigned long __init prom_free_prom_memory(void)
{
+ return 0;
}
void __init prom_fixup_mem_map(unsigned long start, unsigned long end)
diff --git a/arch/mips/momentum/ocelot_3/prom.c b/arch/mips/momentum/ocelot_3/prom.c
--- a/arch/mips/momentum/ocelot_3/prom.c
+++ b/arch/mips/momentum/ocelot_3/prom.c
@@ -239,8 +239,9 @@ void __init prom_init(void)
#endif
}
-void __init prom_free_prom_memory(void)
+unsigned long __init prom_free_prom_memory(void)
{
+ return 0;
}
void __init prom_fixup_mem_map(unsigned long start, unsigned long end)
diff --git a/arch/mips/pmc-sierra/yosemite/prom.c b/arch/mips/pmc-sierra/yosemite/prom.c
--- a/arch/mips/pmc-sierra/yosemite/prom.c
+++ b/arch/mips/pmc-sierra/yosemite/prom.c
@@ -132,8 +132,9 @@ void __init prom_init(void)
prom_grab_secondary();
}
-void __init prom_free_prom_memory(void)
+unsigned long __init prom_free_prom_memory(void)
{
+ return 0;
}
void __init prom_fixup_mem_map(unsigned long start, unsigned long end)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] mips: prom_free_prom_memory() returns `unsigned long'
2005-10-28 4:42 [PATCH] mips: prom_free_prom_memory() returns `unsigned long' Arthur Othieno
@ 2005-10-28 10:12 ` Ralf Baechle
0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2005-10-28 10:12 UTC (permalink / raw)
To: Arthur Othieno; +Cc: linux-mips
On Fri, Oct 28, 2005 at 12:42:56AM -0400, Arthur Othieno wrote:
> Some boards have, eg.:
>
> arch/mips/momentum/ocelot_3/prom.c:242:void __init prom_free_prom_memory(void)
>
> yet free_initmem() expects a return:
>
> arch/mips/mm/init.c:285:extern unsigned long prom_free_prom_memory(void);
> arch/mips/mm/init.c:291: freed = prom_free_prom_memory();
>
> Fix those up and return 0 instead, just like everyone else does.
Thanks alot, applied.
Ralf
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-10-28 10:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-28 4:42 [PATCH] mips: prom_free_prom_memory() returns `unsigned long' Arthur Othieno
2005-10-28 10:12 ` Ralf Baechle
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.