mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-12-28 16:56:26 +00:00
514b2262ad
The newly added SCMI vendor driver references functions in the protocol driver but needs a Kconfig dependency to ensure it can link, essentially the Kconfig dependency needs to be reversed to match the link time dependency: | arm-linux-gnueabi-ld: sound/soc/fsl/fsl_mqs.o: in function `fsl_mqs_sm_write': | fsl_mqs.c:(.text+0x1aa): undefined reference to `scmi_imx_misc_ctrl_set' | arm-linux-gnueabi-ld: sound/soc/fsl/fsl_mqs.o: in function `fsl_mqs_sm_read': | fsl_mqs.c:(.text+0x1ee): undefined reference to `scmi_imx_misc_ctrl_get' This however only works after changing the dependency in the SND_SOC_FSL_MQS driver as well, which uses 'select IMX_SCMI_MISC_DRV' to turn on a driver it depends on. This is generally a bad idea, so the best solution is to change that into a dependency. To allow the ASoC driver to keep building with the SCMI support, this needs to be an optional dependency that enforces the link-time dependency if IMX_SCMI_MISC_DRV is a loadable module but not depend on it if that is disabled. Fixes: |
||
---|---|---|
.. | ||
transports | ||
vendors/imx | ||
base.c | ||
bus.c | ||
clock.c | ||
common.h | ||
driver.c | ||
Kconfig | ||
Makefile | ||
msg.c | ||
notify.c | ||
notify.h | ||
perf.c | ||
pinctrl.c | ||
power.c | ||
powercap.c | ||
protocols.h | ||
raw_mode.c | ||
raw_mode.h | ||
reset.c | ||
scmi_power_control.c | ||
sensors.c | ||
shmem.c | ||
system.c | ||
voltage.c |