Re: [PATCH] watchdog: orion_wdt: Use %pa to print 'phys_addr_t'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jason,

On Mon, Feb 24, 2014 at 09:33:52PM +0100, Wim Van Sebroeck wrote:
> > When building an ARM multi_v7_defconfig with LPAE option selected we get the
> > following build warning:
> > 
> > drivers/watchdog/orion_wdt.c:272:2: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'phys_addr_t' [-Wformat=]
> > 
> > Fix it by using %pa to print 'phys_addr_t'.
> > 
> > Reported-by: Olof's autobuilder <build@xxxxxxxxx>
> > Signed-off-by: Fabio Estevam <fabio.estevam@xxxxxxxxxxxxx>
> > ---
> >  drivers/watchdog/orion_wdt.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/drivers/watchdog/orion_wdt.c b/drivers/watchdog/orion_wdt.c
> > index 15321aa..6f9b4c6 100644
> > --- a/drivers/watchdog/orion_wdt.c
> > +++ b/drivers/watchdog/orion_wdt.c
> > @@ -269,7 +269,7 @@ static void __iomem *orion_wdt_ioremap_rstout(struct platform_device *pdev,
> >  
> >  	rstout = internal_regs + ORION_RSTOUT_MASK_OFFSET;
> >  
> > -	WARN(1, FW_BUG "falling back to harcoded RSTOUT reg 0x%x\n", rstout);
> > +	WARN(1, FW_BUG "falling back to harcoded RSTOUT reg %pa\n", &rstout);
> >  	return devm_ioremap(&pdev->dev, rstout, 0x4);
> >  }
> >  
> > -- 
> > 1.8.1.2
> > 
> > 
> 
> Acked-by me also, but can this also go via the mvebu tree (since the patch that introduces this is also thereà?
> 

Can you pull this too? It's been acked by Wim and me.

Thanks,
-- 
Ezequiel García, Free Electrons
Embedded Linux, Kernel and Android Engineering
http://free-electrons.com
--
To unsubscribe from this list: send the line "unsubscribe linux-watchdog" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux