diff options
author | Emil Goode <emilgoode@gmail.com> | 2013-07-30 19:35:35 +0200 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-07-31 18:55:00 +0200 |
commit | 2de024b766bb9e31c357f70c6344d1107f38ce1a (patch) | |
tree | e70aa94f7aa5d23dc689951f2ca349b17fb87a06 /.mailmap | |
parent | spi/atmel: Annotate lock/unlock functions (diff) | |
download | linux-2de024b766bb9e31c357f70c6344d1107f38ce1a.tar.xz linux-2de024b766bb9e31c357f70c6344d1107f38ce1a.zip |
spi/atmel: Fix format specifier warnings
This patch fixes the following sparse warnings.
dma_addr_t can be either u32 or u64 so we should cast to the
largest type and use the format specifier %llx.
drivers/spi/spi-atmel.c: In function ‘atmel_spi_next_xfer_dma_submit’:
drivers/spi/spi-atmel.c:631:2: warning:
format ‘%x’ expects argument of type ‘unsigned int’,
but argument 7 has type ‘dma_addr_t’ [-Wformat]
drivers/spi/spi-atmel.c:631:2: warning:
format ‘%x’ expects argument of type ‘unsigned int’,
but argument 9 has type ‘dma_addr_t’ [-Wformat]
drivers/spi/spi-atmel.c: In function ‘atmel_spi_pdc_next_xfer’:
drivers/spi/spi-atmel.c:734:3: warning:
format ‘%x’ expects argument of type ‘unsigned int’,
but argument 7 has type ‘dma_addr_t’ [-Wformat]
drivers/spi/spi-atmel.c:734:3: warning:
format ‘%x’ expects argument of type ‘unsigned int’,
but argument 9 has type ‘dma_addr_t’ [-Wformat]
drivers/spi/spi-atmel.c:773:3: warning:
format ‘%x’ expects argument of type ‘unsigned int’,
but argument 7 has type ‘dma_addr_t’ [-Wformat]
drivers/spi/spi-atmel.c:773:3: warning:
format ‘%x’ expects argument of type ‘unsigned int’,
but argument 9 has type ‘dma_addr_t’ [-Wformat]
Signed-off-by: Emil Goode <emilgoode@gmail.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to '.mailmap')
0 files changed, 0 insertions, 0 deletions