mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 07:04:24 +00:00
spi/ep93xx: Fix format specifier warning
This patch fixes the following sparse warning by changing the the format specifier for size_t to %zu. drivers/spi/spi-ep93xx.c:512:3: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat] Signed-off-by: Emil Goode <emilgoode@gmail.com> Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
parent
84ddb3c1df
commit
6a3fc31f35
1 changed files with 1 additions and 1 deletions
|
@ -509,7 +509,7 @@ ep93xx_spi_dma_prepare(struct ep93xx_spi *espi, enum dma_transfer_direction dir)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (WARN_ON(len)) {
|
if (WARN_ON(len)) {
|
||||||
dev_warn(&espi->pdev->dev, "len = %d expected 0!", len);
|
dev_warn(&espi->pdev->dev, "len = %zu expected 0!", len);
|
||||||
return ERR_PTR(-EINVAL);
|
return ERR_PTR(-EINVAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue