• Dan Carpenter's avatar
    USB: musb: silence printk format warning · 2fbcf3fa
    Dan Carpenter authored
    Gcc gives the following warnings:
    
    drivers/usb/musb/cppi_dma.c: In function ‘cppi_next_tx_segment’:
    drivers/usb/musb/cppi_dma.c:600: warning: format ‘%x’ expects type ‘unsigned int’, but argument 8 has type ‘dma_addr_t’
    drivers/usb/musb/cppi_dma.c: In function ‘cppi_next_rx_segment’:
    drivers/usb/musb/cppi_dma.c:822: warning: format ‘%x’ expects type ‘unsigned int’, but argument 9 has type ‘dma_addr_t’
    drivers/usb/musb/cppi_dma.c: In function ‘cppi_rx_scan’:
    drivers/usb/musb/cppi_dma.c:1042: warning: format ‘%08x’ expects type ‘unsigned int’, but argument 4 has type ‘dma_addr_t’
    drivers/usb/musb/cppi_dma.c:1114: warning: format ‘%08x’ expects type ‘unsigned int’, but argument 7 has type ‘dma_addr_t’
    
    dma_addr_t is sometimes 32 bit and sometimes 64.  We normally cast them
    to unsigned long long for printk().
    Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
    Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
    2fbcf3fa
cppi_dma.c 43.6 KB