staging: dwc2: fix compiler warnings
authorPaul Zimmerman <Paul.Zimmerman@synopsys.com>
Thu, 14 Mar 2013 20:12:00 +0000 (13:12 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Mar 2013 20:38:42 +0000 (13:38 -0700)
Fix some compiler warnings when building for i386 arch. Reported by
Fengguang's build-bot.

Signed-off-by: Paul Zimmerman <paulz@synopsys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dwc2/hcd.c
drivers/staging/dwc2/hcd_intr.c

index cdb142d..246b483 100644 (file)
@@ -1890,8 +1890,9 @@ void dwc2_hcd_dump_state(struct dwc2_hsotg *hsotg)
                                dev_dbg(hsotg->dev,
                                        "      transfer_buffer: %p\n",
                                        urb->buf);
-                               dev_dbg(hsotg->dev, "      transfer_dma: %p\n",
-                                       (void *)urb->dma);
+                               dev_dbg(hsotg->dev,
+                                       "      transfer_dma: %08lx\n",
+                                       (unsigned long)urb->dma);
                                dev_dbg(hsotg->dev,
                                        "      transfer_buffer_length: %d\n",
                                        urb->length);
@@ -2296,10 +2297,10 @@ static void dwc2_dump_urb_info(struct usb_hcd *hcd, struct urb *urb,
                 usb_maxpacket(urb->dev, urb->pipe, usb_pipeout(urb->pipe)));
        dev_vdbg(hsotg->dev, "  Data buffer length: %d\n",
                 urb->transfer_buffer_length);
-       dev_vdbg(hsotg->dev, "  Transfer buffer: %p, Transfer DMA: %p\n",
-                urb->transfer_buffer, (void *)urb->transfer_dma);
-       dev_vdbg(hsotg->dev, "  Setup buffer: %p, Setup DMA: %p\n",
-                urb->setup_packet, (void *)urb->setup_dma);
+       dev_vdbg(hsotg->dev, "  Transfer buffer: %p, Transfer DMA: %08lx\n",
+                urb->transfer_buffer, (unsigned long)urb->transfer_dma);
+       dev_vdbg(hsotg->dev, "  Setup buffer: %p, Setup DMA: %08lx\n",
+                urb->setup_packet, (unsigned long)urb->setup_dma);
        dev_vdbg(hsotg->dev, "  Interval: %d\n", urb->interval);
 
        if (usb_pipetype(urb->pipe) == PIPE_ISOCHRONOUS) {
index 01addd0..4b007ab 100644 (file)
@@ -1535,10 +1535,10 @@ static void dwc2_hc_ahberr_intr(struct dwc2_hsotg *hsotg,
        dev_err(hsotg->dev, "  Max packet size: %d\n",
                dwc2_hcd_get_mps(&urb->pipe_info));
        dev_err(hsotg->dev, "  Data buffer length: %d\n", urb->length);
-       dev_err(hsotg->dev, "  Transfer buffer: %p, Transfer DMA: %p\n",
-               urb->buf, (void *)urb->dma);
-       dev_err(hsotg->dev, "  Setup buffer: %p, Setup DMA: %p\n",
-               urb->setup_packet, (void *)urb->setup_dma);
+       dev_err(hsotg->dev, "  Transfer buffer: %p, Transfer DMA: %08lx\n",
+               urb->buf, (unsigned long)urb->dma);
+       dev_err(hsotg->dev, "  Setup buffer: %p, Setup DMA: %08lx\n",
+               urb->setup_packet, (unsigned long)urb->setup_dma);
        dev_err(hsotg->dev, "  Interval: %d\n", urb->interval);
 
        /* Core halts the channel for Descriptor DMA mode */