sound/soc/sof/sof-pci-dev.c:281: undefined reference to `snd_intel_dsp_driver_probe'

From: kbuild test robot
Date: Tue Dec 31 2019 - 16:01:50 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: fd6988496e79a6a4bdb514a4655d2920209eb85d
commit: 82d9d54a6c0ee8b12211fa4e59fd940a2da4e063 ALSA: hda: add Intel DSP configuration / probe code
date: 2 months ago
config: alpha-randconfig-a001-20200101 (attached as .config)
compiler: alpha-linux-gcc (GCC) 7.5.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 82d9d54a6c0ee8b12211fa4e59fd940a2da4e063
# save the attached .config to linux build tree
GCC_VERSION=7.5.0 make.cross ARCH=alpha

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

sound/soc/sof/sof-pci-dev.o: In function `sof_pci_probe':
>> sound/soc/sof/sof-pci-dev.c:281: undefined reference to `snd_intel_dsp_driver_probe'
>> sound/soc/sof/sof-pci-dev.c:281: undefined reference to `snd_intel_dsp_driver_probe'

vim +281 sound/soc/sof/sof-pci-dev.c

269
270 static int sof_pci_probe(struct pci_dev *pci,
271 const struct pci_device_id *pci_id)
272 {
273 struct device *dev = &pci->dev;
274 const struct sof_dev_desc *desc =
275 (const struct sof_dev_desc *)pci_id->driver_data;
276 struct snd_soc_acpi_mach *mach;
277 struct snd_sof_pdata *sof_pdata;
278 const struct snd_sof_dsp_ops *ops;
279 int ret;
280
> 281 ret = snd_intel_dsp_driver_probe(pci);
282 if (ret != SND_INTEL_DSP_DRIVER_ANY &&
283 ret != SND_INTEL_DSP_DRIVER_SOF)
284 return -ENODEV;
285
286 dev_dbg(&pci->dev, "PCI DSP detected");
287
288 /* get ops for platform */
289 ops = desc->ops;
290 if (!ops) {
291 dev_err(dev, "error: no matching PCI descriptor ops\n");
292 return -ENODEV;
293 }
294
295 sof_pdata = devm_kzalloc(dev, sizeof(*sof_pdata), GFP_KERNEL);
296 if (!sof_pdata)
297 return -ENOMEM;
298
299 ret = pcim_enable_device(pci);
300 if (ret < 0)
301 return ret;
302
303 ret = pci_request_regions(pci, "Audio DSP");
304 if (ret < 0)
305 return ret;
306

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx Intel Corporation

Attachment: .config.gz
Description: application/gzip