Skip to content

Commit

Permalink
xilinx usb2 gadget: get rid of incredibly annoying compile warning
Browse files Browse the repository at this point in the history
This one was driving me mad, with several lines of warnings during the
allmodconfig build for a single bogus pointer cast.  The warning was so
verbose due to the indirect macro expansion explanation, and the whole
thing was just for a debug printout.

The bogus pointer-to-integer cast was pointless anyway, so just remove
it, and use '%p' to show the pointer.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Linus Torvalds committed Feb 11, 2015
1 parent 540a7c5 commit 7796c11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/usb/gadget/udc/udc-xilinx.c
Original file line number Diff line number Diff line change
Expand Up @@ -2131,8 +2131,8 @@ static int xudc_probe(struct platform_device *pdev)

platform_set_drvdata(pdev, udc);

dev_vdbg(&pdev->dev, "%s at 0x%08X mapped to 0x%08X %s\n",
driver_name, (u32)res->start, (u32 __force)udc->addr,
dev_vdbg(&pdev->dev, "%s at 0x%08X mapped to %p %s\n",
driver_name, (u32)res->start, udc->addr,
udc->dma_enabled ? "with DMA" : "without DMA");

return 0;
Expand Down

0 comments on commit 7796c11

Please sign in to comment.