[alsa-devel] [asoc:topic/rt5514 1/3] sound/soc/codecs/rt5514-spi.c:477:70: error: 'DRV_NAME' undeclared
tree: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git topic/rt5514 head: 890861aa85043cc9d99a01e1bd26883722e95243 commit: 04e8262ac8c3f59599ea6dfe5cd1a039828ea4ad [1/3] ASoC: rt5514: replace codec to component config: x86_64-randconfig-s1-03021352 (attached as .config) compiler: gcc-6 (Debian 6.4.0-9) 6.4.0 20171026 reproduce: git checkout 04e8262ac8c3f59599ea6dfe5cd1a039828ea4ad # save the attached .config to linux build tree make ARCH=x86_64
All errors (new ones prefixed by >>):
sound/soc/codecs/rt5514-spi.c: In function 'rt5514_resume':
sound/soc/codecs/rt5514-spi.c:477:70: error: 'DRV_NAME' undeclared (first use in this function)
struct snd_soc_component *component = snd_soc_lookup_component(dev, DRV_NAME); ^~~~~~~~ sound/soc/codecs/rt5514-spi.c:477:70: note: each undeclared identifier is reported only once for each function it appears in
vim +/DRV_NAME +477 sound/soc/codecs/rt5514-spi.c
474 475 static int __maybe_unused rt5514_resume(struct device *dev) 476 {
477 struct snd_soc_component *component = snd_soc_lookup_component(dev, DRV_NAME);
478 struct rt5514_dsp *rt5514_dsp = 479 snd_soc_component_get_drvdata(component); 480 int irq = to_spi_device(dev)->irq; 481 u8 buf[8]; 482 483 if (device_may_wakeup(dev)) 484 disable_irq_wake(irq); 485 486 if (rt5514_dsp) { 487 if (rt5514_dsp->substream) { 488 rt5514_spi_burst_read(RT5514_IRQ_CTRL, (u8 *)&buf, 489 sizeof(buf)); 490 if (buf[0] & RT5514_IRQ_STATUS_BIT) 491 rt5514_schedule_copy(rt5514_dsp); 492 } 493 } 494 495 return 0; 496 } 497
--- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Hi Mark
rt5514-spi DRV_NAME is defined by "platform" side replace patch. We can find it on mark/topic/component-platform branch
9fe3b2bac02c6d06724d526b0245568bca49349f ("ASoC: rt5514-spi: replace platform to component")
tree: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git topic/rt5514 head: 890861aa85043cc9d99a01e1bd26883722e95243 commit: 04e8262ac8c3f59599ea6dfe5cd1a039828ea4ad [1/3] ASoC: rt5514: replace codec to component config: x86_64-randconfig-s1-03021352 (attached as .config) compiler: gcc-6 (Debian 6.4.0-9) 6.4.0 20171026 reproduce: git checkout 04e8262ac8c3f59599ea6dfe5cd1a039828ea4ad # save the attached .config to linux build tree make ARCH=x86_64
All errors (new ones prefixed by >>):
sound/soc/codecs/rt5514-spi.c: In function 'rt5514_resume':
sound/soc/codecs/rt5514-spi.c:477:70: error: 'DRV_NAME' undeclared (first use in this function)
struct snd_soc_component *component = snd_soc_lookup_component(dev, DRV_NAME); ^~~~~~~~
sound/soc/codecs/rt5514-spi.c:477:70: note: each undeclared identifier is reported only once for each function it appears in
vim +/DRV_NAME +477 sound/soc/codecs/rt5514-spi.c
474 475 static int __maybe_unused rt5514_resume(struct device *dev) 476 {
477 struct snd_soc_component *component = snd_soc_lookup_component(dev, DRV_NAME);
478 struct rt5514_dsp *rt5514_dsp = 479 snd_soc_component_get_drvdata(component); 480 int irq = to_spi_device(dev)->irq; 481 u8 buf[8]; 482 483 if (device_may_wakeup(dev)) 484 disable_irq_wake(irq); 485 486 if (rt5514_dsp) { 487 if (rt5514_dsp->substream) { 488 rt5514_spi_burst_read(RT5514_IRQ_CTRL, (u8 *)&buf, 489 sizeof(buf)); 490 if (buf[0] & RT5514_IRQ_STATUS_BIT) 491 rt5514_schedule_copy(rt5514_dsp); 492 } 493 } 494 495 return 0; 496 } 497
0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation [2 .config.gz <application/gzip (base64)>]
participants (2)
-
kbuild test robot
-
Kuninori Morimoto