summaryrefslogtreecommitdiff
path: root/include/uapi/linux/kernel.h
diff options
context:
space:
mode:
authorMitchel Humpherys <mitchelh@codeaurora.org>2015-04-09 14:34:17 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-22 11:04:28 -0700
commit114a9f67b6466c43cc2ebb8a97eea94b3d87086a (patch)
tree6e52d5a83505eed2d12d81e3cf87184a8eb2e8ab /include/uapi/linux/kernel.h
parent01d99f383f31c5189429cb016c2d3584c9d841d7 (diff)
staging: ion: chunk_heap: use %pad for printing dma_addr_t's
We're currently using %lu and %ld to print some variables of type dma_addr_t, which results in the following warning when dma_addr_t is 64-bits wide: drivers/staging/android/ion/ion_chunk_heap.c: In function 'ion_chunk_heap_create': drivers/staging/android/ion/ion_chunk_heap.c:176:2: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'dma_addr_t' [-Wformat=] pr_info("%s: base %lu size %zu align %ld\n", __func__, chunk_heap->base, ^ drivers/staging/android/ion/ion_chunk_heap.c:176:2: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'dma_addr_t' [-Wformat=] Fix this by using %pad as instructed in printk-formats.txt. Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
Diffstat (limited to 'include/uapi/linux/kernel.h')
0 files changed, 0 insertions, 0 deletions