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@xxxxxxxxxxx> --- 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);