From: Fabio Estevam Date: Tue, 25 Feb 2014 16:17:33 +0000 (-0300) Subject: watchdog: orion_wdt: Use %pa to print 'phys_addr_t' X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=edd9d3cffc90d4ed9b7b9d7d0645bd64a593c1d3;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git watchdog: orion_wdt: Use %pa to print 'phys_addr_t' 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 Reviewed-by: Guenter Roeck Acked-by: Ezequiel Garcia Acked-by: Wim Van Sebroeck Signed-off-by: Fabio Estevam Signed-off-by: Jason Cooper --- diff --git a/drivers/watchdog/orion_wdt.c b/drivers/watchdog/orion_wdt.c index 15321aa0bb94..6f9b4c6e9bca 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); }