]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commit9cd746459c418b8057898f4de7a3c639fdcd1f40
tree8c6c84a6845395b7a924c0f5bc6fc9dfecfbeb78
parentb279a51a90987ea2e19ae294061cead1889d90ea
spi: bcm2835: Unbreak the build of esoteric configs

BugLink: https://bugs.launchpad.net/bugs/1837257
commit 29bdedfd9cf40e59456110ca417a8cb672ac9b92 upstream.

Commit e82b0b382845 ("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: e82b0b382845 ("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>
Cc: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/spi/spi-bcm2835.c