* [PATCH] serial: samsung: Use %pa to print 'resource_size_t' type
@ 2014-06-04 23:06 Fabio Estevam
2014-06-05 1:12 ` Jingoo Han
0 siblings, 1 reply; 2+ messages in thread
From: Fabio Estevam @ 2014-06-04 23:06 UTC (permalink / raw)
To: gregkh; +Cc: jg1.han, linux-serial, Fabio Estevam
From: Fabio Estevam <fabio.estevam@freescale.com>
When building multi_v7_defconfig with CONFIG_ARM_LPAE=y the following warning
is seen:
drivers/tty/serial/samsung.c: In function 's3c24xx_serial_init_port':
drivers/tty/serial/samsung.c:1229:2: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'resource_size_t' [-Wformat]
Use %pa to print 'resource_size_t' type to fix the warning.
Reported-by: Olof's autobuilder <build@lixom.net>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
drivers/tty/serial/samsung.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/tty/serial/samsung.c b/drivers/tty/serial/samsung.c
index 3293377..b7b8185 100644
--- a/drivers/tty/serial/samsung.c
+++ b/drivers/tty/serial/samsung.c
@@ -1226,8 +1226,8 @@ static int s3c24xx_serial_init_port(struct s3c24xx_uart_port *ourport,
wr_regl(port, S3C64XX_UINTSP, 0xf);
}
- dbg("port: map=%08x, mem=%p, irq=%d (%d,%d), clock=%u\n",
- port->mapbase, port->membase, port->irq,
+ dbg("port: map=%pa, mem=%p, irq=%d (%d,%d), clock=%u\n",
+ &port->mapbase, port->membase, port->irq,
ourport->rx_irq, ourport->tx_irq, port->uartclk);
/* reset the fifos (and setup the uart) */
--
1.8.3.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] serial: samsung: Use %pa to print 'resource_size_t' type
2014-06-04 23:06 [PATCH] serial: samsung: Use %pa to print 'resource_size_t' type Fabio Estevam
@ 2014-06-05 1:12 ` Jingoo Han
0 siblings, 0 replies; 2+ messages in thread
From: Jingoo Han @ 2014-06-05 1:12 UTC (permalink / raw)
To: 'Fabio Estevam', 'Greg Kroah-Hartman'
Cc: linux-serial, 'Fabio Estevam', 'Jingoo Han'
On Thursday, June 05, 2014 8:07 AM, Fabio Estevam wrote:
>
> From: Fabio Estevam <fabio.estevam@freescale.com>
>
> When building multi_v7_defconfig with CONFIG_ARM_LPAE=y the following warning
> is seen:
>
> drivers/tty/serial/samsung.c: In function 's3c24xx_serial_init_port':
> drivers/tty/serial/samsung.c:1229:2: warning: format '%x' expects argument of type 'unsigned int', but
> argument 2 has type 'resource_size_t' [-Wformat]
>
> Use %pa to print 'resource_size_t' type to fix the warning.
>
> Reported-by: Olof's autobuilder <build@lixom.net>
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Reviewed-by: Jingoo Han <jg1.han@samsung.com>
Best regards,
Jingoo Han
> ---
> drivers/tty/serial/samsung.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/tty/serial/samsung.c b/drivers/tty/serial/samsung.c
> index 3293377..b7b8185 100644
> --- a/drivers/tty/serial/samsung.c
> +++ b/drivers/tty/serial/samsung.c
> @@ -1226,8 +1226,8 @@ static int s3c24xx_serial_init_port(struct s3c24xx_uart_port *ourport,
> wr_regl(port, S3C64XX_UINTSP, 0xf);
> }
>
> - dbg("port: map=%08x, mem=%p, irq=%d (%d,%d), clock=%u\n",
> - port->mapbase, port->membase, port->irq,
> + dbg("port: map=%pa, mem=%p, irq=%d (%d,%d), clock=%u\n",
> + &port->mapbase, port->membase, port->irq,
> ourport->rx_irq, ourport->tx_irq, port->uartclk);
>
> /* reset the fifos (and setup the uart) */
> --
> 1.8.3.2
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-06-05 1:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-04 23:06 [PATCH] serial: samsung: Use %pa to print 'resource_size_t' type Fabio Estevam
2014-06-05 1:12 ` Jingoo Han
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox