All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch] usb: renesas_usbhs: silence a gcc warning
@ 2011-12-15 11:31 Dan Carpenter
  2011-12-15 11:46 ` Felipe Balbi
  0 siblings, 1 reply; 2+ messages in thread
From: Dan Carpenter @ 2011-12-15 11:31 UTC (permalink / raw)
  To: kernel-janitors

Gcc complains about this printk:
drivers/usb/renesas_usbhs/mod_gadget.c:188:3: warning: format ‘%x’
	expects argument of type ‘unsigned int’, but argument 3 has type
	‘dma_addr_t’ [-Wformat]

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>

diff --git a/drivers/usb/renesas_usbhs/mod_gadget.c b/drivers/usb/renesas_usbhs/mod_gadget.c
index db2a1c6..528691d5f 100644
--- a/drivers/usb/renesas_usbhs/mod_gadget.c
+++ b/drivers/usb/renesas_usbhs/mod_gadget.c
@@ -185,7 +185,7 @@ static int usbhsg_dma_map(struct device *dev,
 	}
 
 	if (dma_mapping_error(dev, pkt->dma)) {
-		dev_err(dev, "dma mapping error %x\n", pkt->dma);
+		dev_err(dev, "dma mapping error %llx\n", (u64)pkt->dma);
 		return -EIO;
 	}
 

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

* Re: [patch] usb: renesas_usbhs: silence a gcc warning
  2011-12-15 11:31 [patch] usb: renesas_usbhs: silence a gcc warning Dan Carpenter
@ 2011-12-15 11:46 ` Felipe Balbi
  0 siblings, 0 replies; 2+ messages in thread
From: Felipe Balbi @ 2011-12-15 11:46 UTC (permalink / raw)
  To: kernel-janitors

[-- Attachment #1: Type: text/plain, Size: 375 bytes --]

On Thu, Dec 15, 2011 at 02:31:37PM +0300, Dan Carpenter wrote:
> Gcc complains about this printk:
> drivers/usb/renesas_usbhs/mod_gadget.c:188:3: warning: format ‘%x’
> 	expects argument of type ‘unsigned int’, but argument 3 has type
> 	‘dma_addr_t’ [-Wformat]
> 
> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>

applied, thanks

-- 
balbi

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

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

end of thread, other threads:[~2011-12-15 11:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-15 11:31 [patch] usb: renesas_usbhs: silence a gcc warning Dan Carpenter
2011-12-15 11:46 ` Felipe Balbi

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.