• Vinod Koul's avatar
    dmaengine: xdmac: fix print warning on size_t variable · c66ec04e
    Vinod Koul authored
    As documented in printk-formats.txt the size_t should be printed with
    %zu/%zd specfiers. This way it works on all archs.
    
    make.cross ARCH=avr32
    
    All warnings:
    
       drivers/dma/at_xdmac.c: In function 'at_xdmac_prep_dma_cyclic':
    >> drivers/dma/at_xdmac.c:663: warning: format '%d' expects type 'int', but argument 6 has type 'size_t'
    >> drivers/dma/at_xdmac.c:663: warning: format '%d' expects type 'int', but argument 7 has type 'size_t'
       drivers/dma/at_xdmac.c: In function 'at_xdmac_prep_dma_memcpy':
    >> drivers/dma/at_xdmac.c:765: warning: format '%d' expects type 'int', but argument 7 has type 'size_t'
    >> drivers/dma/at_xdmac.c:794: warning: format '%u' expects type 'unsigned int', but argument 5 has type 'size_t'
    >> drivers/dma/at_xdmac.c:815: warning: format '%u' expects type 'unsigned int', but argument 5 has type 'size_t'
    Reported-by: default avatarkbuild test robot <fengguang.wu@intel.com>
    Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
    c66ec04e
at_xdmac.c 48.1 KB