Commit 7b30d19a authored by Felipe Balbi's avatar Felipe Balbi

usb: gadget: net2272: fix compile warnings

This patch fixes the following compile warnings:

drivers/usb/gadget/net2272.c: In function ‘net2272_kick_dma’:
drivers/usb/gadget/net2272.c:740:2: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 6 has type ‘dma_addr_t’ [-Wformat]
drivers/usb/gadget/net2272.c: In function ‘net2272_queue’:
drivers/usb/gadget/net2272.c:859:2: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 8 has type ‘dma_addr_t’ [-Wformat]
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent b9af9ea4
...@@ -737,8 +737,8 @@ net2272_kick_dma(struct net2272_ep *ep, struct net2272_request *req) ...@@ -737,8 +737,8 @@ net2272_kick_dma(struct net2272_ep *ep, struct net2272_request *req)
if (req->req.length & 1) if (req->req.length & 1)
return -EINVAL; return -EINVAL;
dev_vdbg(ep->dev->dev, "kick_dma %s req %p dma %08x\n", dev_vdbg(ep->dev->dev, "kick_dma %s req %p dma %08llx\n",
ep->ep.name, req, req->req.dma); ep->ep.name, req, (unsigned long long) req->req.dma);
net2272_ep_write(ep, EP_RSPSET, 1 << ALT_NAK_OUT_PACKETS); net2272_ep_write(ep, EP_RSPSET, 1 << ALT_NAK_OUT_PACKETS);
...@@ -856,9 +856,9 @@ net2272_queue(struct usb_ep *_ep, struct usb_request *_req, gfp_t gfp_flags) ...@@ -856,9 +856,9 @@ net2272_queue(struct usb_ep *_ep, struct usb_request *_req, gfp_t gfp_flags)
req->mapped = 1; req->mapped = 1;
} }
dev_vdbg(dev->dev, "%s queue req %p, len %d buf %p dma %08x %s\n", dev_vdbg(dev->dev, "%s queue req %p, len %d buf %p dma %08llx %s\n",
_ep->name, _req, _req->length, _req->buf, _ep->name, _req, _req->length, _req->buf,
_req->dma, _req->zero ? "zero" : "!zero"); (unsigned long long) _req->dma, _req->zero ? "zero" : "!zero");
spin_lock_irqsave(&dev->lock, flags); spin_lock_irqsave(&dev->lock, flags);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment