All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] gpio: gpio-pl061: Use %pa to print 'resource_size_t'
@ 2014-02-26 11:12 Fabio Estevam
  2014-03-07  1:21 ` Linus Walleij
  0 siblings, 1 reply; 2+ messages in thread
From: Fabio Estevam @ 2014-02-26 11:12 UTC (permalink / raw)
  To: linus.walleij; +Cc: linux-gpio, Fabio Estevam

From: Fabio Estevam <fabio.estevam@freescale.com>

The following build warning is generated when building multi_v7_defconfig with
LPAE option selected:

drivers/gpio/gpio-pl061.c:358:2: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'resource_size_t' [-Wformat=]

Fix it by using %pa to print 'resource_size_t'.

Reported-by: Olof's autobuilder <build@lixom.net>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
 drivers/gpio/gpio-pl061.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpio/gpio-pl061.c b/drivers/gpio/gpio-pl061.c
index e528cb2..391766e 100644
--- a/drivers/gpio/gpio-pl061.c
+++ b/drivers/gpio/gpio-pl061.c
@@ -355,8 +355,8 @@ static int pl061_probe(struct amba_device *adev, const struct amba_id *id)
 	}
 
 	amba_set_drvdata(adev, chip);
-	dev_info(&adev->dev, "PL061 GPIO chip @%08x registered\n",
-		adev->res.start);
+	dev_info(&adev->dev, "PL061 GPIO chip @%pa registered\n",
+		 &adev->res.start);
 
 	return 0;
 }
-- 
1.8.1.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] gpio: gpio-pl061: Use %pa to print 'resource_size_t'
  2014-02-26 11:12 [PATCH] gpio: gpio-pl061: Use %pa to print 'resource_size_t' Fabio Estevam
@ 2014-03-07  1:21 ` Linus Walleij
  0 siblings, 0 replies; 2+ messages in thread
From: Linus Walleij @ 2014-03-07  1:21 UTC (permalink / raw)
  To: Fabio Estevam; +Cc: linux-gpio, Fabio Estevam

On Wed, Feb 26, 2014 at 7:12 PM, Fabio Estevam <festevam@gmail.com> wrote:

> From: Fabio Estevam <fabio.estevam@freescale.com>
>
> The following build warning is generated when building multi_v7_defconfig with
> LPAE option selected:
>
> drivers/gpio/gpio-pl061.c:358:2: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'resource_size_t' [-Wformat=]
>
> Fix it by using %pa to print 'resource_size_t'.
>
> Reported-by: Olof's autobuilder <build@lixom.net>

I love this guy.

> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>

Patch applied.

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-03-07  1:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-26 11:12 [PATCH] gpio: gpio-pl061: Use %pa to print 'resource_size_t' Fabio Estevam
2014-03-07  1:21 ` Linus Walleij

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.