* [PATCH] rb532: do not use phys_t
@ 2008-09-11 15:55 Florian Fainelli
2008-09-11 16:15 ` Maciej W. Rozycki
0 siblings, 1 reply; 2+ messages in thread
From: Florian Fainelli @ 2008-09-11 15:55 UTC (permalink / raw)
To: ralf; +Cc: Linux MIPS Org
MIPS include types.h says that using phys_t is bad, which in
fact is an unsigned long, so use an unsigned long directly.
Signed-off-by: Florian Fainelli <florian@openwrt.org>
---
diff --git a/arch/mips/rb532/prom.c b/arch/mips/rb532/prom.c
index 46ca24d..c37ceda 100644
--- a/arch/mips/rb532/prom.c
+++ b/arch/mips/rb532/prom.c
@@ -123,8 +123,8 @@ void __init prom_setup_cmdline(void)
void __init prom_init(void)
{
struct ddr_ram __iomem *ddr;
- phys_t memsize;
- phys_t ddrbase;
+ unsigned long memsize;
+ unsigned long ddrbase;
ddr = ioremap_nocache(ddr_reg[0].start,
ddr_reg[0].end - ddr_reg[0].start);
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] rb532: do not use phys_t
2008-09-11 15:55 [PATCH] rb532: do not use phys_t Florian Fainelli
@ 2008-09-11 16:15 ` Maciej W. Rozycki
0 siblings, 0 replies; 2+ messages in thread
From: Maciej W. Rozycki @ 2008-09-11 16:15 UTC (permalink / raw)
To: Florian Fainelli; +Cc: ralf, Linux MIPS Org
On Thu, 11 Sep 2008, Florian Fainelli wrote:
> MIPS include types.h says that using phys_t is bad, which in
> fact is an unsigned long, so use an unsigned long directly.
That is bad indeed. A physical address might not fit in unsigned long.
Actually the upstream is apparently adopting phys_addr_t for this purpose
right now, so you might consider waiting with your patch till the thing
settles down. Note that by using a generic type you take away semantics
which will make future adjustments more difficult.
Maciej
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-09-11 16:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-11 15:55 [PATCH] rb532: do not use phys_t Florian Fainelli
2008-09-11 16:15 ` Maciej W. Rozycki
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.