]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: sh: fix print specifier warnings
authorVinod Koul <vinod.koul@intel.com>
Mon, 2 Jun 2014 04:02:59 +0000 (09:32 +0530)
committerVinod Koul <vinod.koul@intel.com>
Tue, 3 Jun 2014 06:05:24 +0000 (11:35 +0530)
commit96971e7e6a16ffa4fe7d82fcfc83fd1039aa2fc8
tree43a9be74ba0ef8676b0752da96e5c46ff5068b09
parent87bea411e4378c37a054adfa960217b8053af39d
dmaengine: sh: fix print specifier warnings

As documented in Documentation/printk-formats.txt we should use %zu/%zx
specifiers for size_t type variables for the code to compile on different
architectures. This is uncovered as COMPILE_TEST has been enabled recently for
this driver

   drivers/dma/sh/shdma-base.c: In function 'shdma_prep_dma_cyclic':
>> drivers/dma/sh/shdma-base.c:683:4: warning: format '%d' expects argument of
>> type 'int', but argument 4 has type 'size_t' [-Wformat=]
       __func__, buf_len, period_len, slave_id);
>> drivers/dma/sh/shdma-base.c:683:4: warning: format '%d' expects argument of
>> type 'int', but argument 5 has type 'size_t' [-Wformat=]

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/sh/shdma-base.c