]> 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)
commit295433a27593eebcb127bbd224bd3082d50f826d
tree7a2494b959d3a5f04c593e61fdf27cee624d25be
parentd2705f19348a41bd104b0150b57bad675ca9729e
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