]> git.baikalelectronics.ru Git - kernel.git/commit
spi: bcm2835: Unbreak the build of esoteric configs
authorLukas Wunner <lukas@wunner.de>
Thu, 29 Nov 2018 14:14:49 +0000 (15:14 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 29 Nov 2018 16:02:01 +0000 (16:02 +0000)
commit2de32c3b11d972bad9179e8e4eea19fe6bff2b25
tree62530bc7dda1ee60ae0bcbbe16cc4adfbb38ee95
parentf81972c40dfc487fd44137ccc0760e28cefdc84b
spi: bcm2835: Unbreak the build of esoteric configs

Commit f81972c40dfc ("spi: bcm2835: Fix race on DMA termination") broke
the build with COMPILE_TEST=y on arches whose cmpxchg() requires 32-bit
operands (xtensa, older arm ISAs).

Fix by changing the dma_pending flag's type from bool to unsigned int.

Fixes: f81972c40dfc ("spi: bcm2835: Fix race on DMA termination")
Signed-off-by: Lukas Wunner <lukas@wunner.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: Frank Pavlic <f.pavlic@kunbus.de>
Cc: Martin Sperl <kernel@martin.sperl.org>
Cc: Noralf Trønnes <noralf@tronnes.org>
drivers/spi/spi-bcm2835.c