thesofproject / linux

Linux kernel source tree
Other
91 stars 134 forks source link

ASoC: Intel: use soc_intel_is_byt_cr() only on Baytrail platforms #5114

Closed plbossart closed 4 months ago

plbossart commented 4 months ago

the Intel kbuild bot reports a link failure when Baytrail is not enabled in the config. The soc-intel-quirks.h is included for Merrifield platforms, but IOSF_MBI is not selected for that platform.

ld.lld: error: undefined symbol: iosf_mbi_read

referenced by atom.c sound/soc/sof/intel/atom.o:(atom_machine_select) in archive vmlinux.a

This patch forces the use of the fallback static inline when Baytrail is not enabled.

Fixes: 536cfd2f375d ("ASoC: Intel: use common helpers to detect CPUs") Reported-by: kernel test robot lkp@intel.com Closes: https://lore.kernel.org/oe-kbuild-all/202407160704.zpdhJ8da-lkp@intel.com/

plbossart commented 4 months ago

not good enough if BYT=m and TNG=y