]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - drivers/dma/at_xdmac.c
dmaengine: xdmac: fix print warning on size_t variable
authorVinod Koul <vinod.koul@intel.com>
Thu, 6 Nov 2014 12:07:48 +0000 (17:37 +0530)
committerVinod Koul <vinod.koul@intel.com>
Mon, 17 Nov 2014 08:35:02 +0000 (14:05 +0530)
commitc66ec04ed73c2355fa17e8d114808eea90d95711
treec6f42c9136206b0ac456fab198ee51d460463ead
parent2abd4198090fbe88af653a4a0be3735d286356b2
dmaengine: xdmac: fix print warning on size_t variable

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: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/at_xdmac.c