diff options
| author | Vinod Koul <[email protected]> | 2016-09-13 22:18:32 +0530 |
|---|---|---|
| committer | Vinod Koul <[email protected]> | 2016-09-26 22:27:27 +0530 |
| commit | 3fd386625679bd2adb94d2a3d25dd2fdd38b52e3 (patch) | |
| tree | c7aabb49601732536aa0e3686000955f02dc4238 /tools/perf/scripts/python/compaction-times.py | |
| parent | 4f5db8c8f8ee965436de24256bbd7a01778d4cdb (diff) | |
dmaengine: coh901318: use correct print specifiers
This driver when compiled on 64 bits gave warnings:
drivers/dma/coh901318.c: In function 'coh901318_list_print':
warning: format '%x' expects argument of type 'unsigned int', but argument 7 has type 'dma_addr_t' [-Wformat=]
warning: format '%x' expects argument of type 'unsigned int', but argument 8 has type 'dma_addr_t' [-Wformat=]
warning: format '%x' expects argument of type 'unsigned int', but argument 9 has type 'dma_addr_t' [-Wformat=]
drivers/dma/coh901318.c: In function 'coh901318_prep_memcpy':
warning: format '%x' expects argument of type 'unsigned int', but argument 6 has type 'dma_addr_t' [-Wformat=]
warning: format '%x' expects argument of type 'unsigned int', but argument 7 has type 'dma_addr_t' [-Wformat=]
warning: format '%d' expects argument of type 'int', but argument 8 has type 'size_t' [-Wformat=]
We should use %pad to print 'dma_addr_t' values and %zu to print size_t
values
Acked-by: Linus Walleij <[email protected]>
Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/compaction-times.py')
0 files changed, 0 insertions, 0 deletions