]> git.baikalelectronics.ru Git - kernel.git/commit
remoteproc: stm32: fix building without ARM SMCC
authorArnd Bergmann <arnd@arndb.de>
Mon, 8 Jul 2019 12:42:51 +0000 (14:42 +0200)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 8 Jul 2019 14:05:50 +0000 (07:05 -0700)
commit5074f81f99e4413cb2151891f3b2c1090ac64980
tree64402f3a8da4b2f8193ae7641eb24033dbe87667
parent2e710efba19b7d6c64aef711e3abc7e91033df59
remoteproc: stm32: fix building without ARM SMCC

When compile testing this driver without SMCC support enabled,
we get a link error:

drivers/remoteproc/stm32_rproc.o: In function `stm32_rproc_start':
stm32_rproc.c:(.text+0x776): undefined reference to `__arm_smccc_smc'
drivers/remoteproc/stm32_rproc.o: In function `stm32_rproc_stop':
stm32_rproc.c:(.text+0x92c): undefined reference to `__arm_smccc_smc'

Make the actual call to arm_smccc_smc conditional on the Kconfig
symbol controlling its implementation.

Fixes: 17f79c476001 ("remoteproc: stm32: add an ST stm32_rproc driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/stm32_rproc.c