]> git.hungrycats.org Git - linux/commitdiff
xilinx usb2 gadget: get rid of incredibly annoying compile warning
authorLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Feb 2015 18:52:56 +0000 (10:52 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Feb 2017 08:43:04 +0000 (09:43 +0100)
commit 7796c11c728ad40ba4151d559a949c002deffb9a upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/udc/udc-xilinx.c

index ed27e1687a4efc9fc04a3cdc8e936b8500f73bd6..da289786d5977f0f10a0c605b6e7a71acdeff52e 100644 (file)
@@ -2132,8 +2132,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;