]> git.baikalelectronics.ru Git - kernel.git/commit
spi: qup: fix 64-bit build warning
authorArnd Bergmann <arnd@arndb.de>
Thu, 10 Aug 2017 12:13:27 +0000 (14:13 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 10 Aug 2017 14:50:23 +0000 (15:50 +0100)
commit69e79d8987aabb9824fe18483e22698ba98bf3fe
tree3d173df487e1bc1f9b5d796dbc0fb765786a1d24
parent29cb9c8712cfadb6b4a26984645e7497dc14d2f3
spi: qup: fix 64-bit build warning

On 64-bit systems, pointers are wider than 'int' variables,
so we get a warning about a cast between them:

drivers/spi/spi-qup.c:1060:23: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]

This changes the code to use the correct uintptr_t cast.

Fixes: ad5b736564a1 ("spi: qup: Fix QUP version identify method")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-qup.c