diff options
author | Arnd Bergmann <arnd@arndb.de> | 2017-08-23 16:34:43 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-08-23 18:53:30 +0300 |
commit | 5904c9d3c9bd52f79718d1806175271b4bd20718 (patch) | |
tree | c484d32d708ae6ca34315c2b136c8d89e2fc34ad /include/linux/fpga/fpga-bridge.h | |
parent | 1673c81d9435bcf758da6ccaa291513e34c1cb82 (diff) | |
download | linux-5904c9d3c9bd52f79718d1806175271b4bd20718.tar.xz |
spi: imx: fix little-endian build
The newly added dynamic burst code produces a harmless warning
on big-endian configurations:
drivers/spi/spi-imx.c: In function 'spi_imx_buf_rx_swap_u32':
drivers/spi/spi-imx.c:284:15: error: unused variable 'bytes_per_word' [-Werror=unused-variable]
unsigned int bytes_per_word;
^~~~~~~~~~~~~~
drivers/spi/spi-imx.c: In function 'spi_imx_buf_tx_swap_u32':
drivers/spi/spi-imx.c:319:15: error: unused variable 'bytes_per_word' [-Werror=unused-variable]
unsigned int bytes_per_word;
This adds another #ifdef around the variable declaration matching
the one on the use.
Fixes: 1673c81d9435 ("spi: imx: dynamic burst length adjust for PIO mode")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/fpga/fpga-bridge.h')
0 files changed, 0 insertions, 0 deletions