]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: meson-gx: fix __ffsdi2 undefined on arm32
authorJerome Brunet <jbrunet@baylibre.com>
Thu, 31 Aug 2017 09:29:58 +0000 (11:29 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 31 Aug 2017 10:42:57 +0000 (12:42 +0200)
commit7da3b73dcc1953ecea6ca89f5d00dd170aad6100
tree7a2494b959d3a5f04c593e61fdf27cee624d25be
parent9d966fd7165514675bf7eb9ca688b32aaf6711e1
mmc: meson-gx: fix __ffsdi2 undefined on arm32

Using __bf_shf does not compile on arm 32 architecture.
This has gone unnoticed till now cause the driver is only used on arm64.

In addition, __bf_shf was already used in the driver without any issue.
It was used on a constant value, so the call was probably optimized
away.

Replace __bf_shf by __ffs fixes the problem

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/meson-gx-mmc.c