[alsa-devel] [asoc:topic/rt5514 1/3] sound/soc/codecs/rt5514-spi.c:477:70: error: 'DRV_NAME' undeclared

kbuild test robot fengguang.wu at intel.com
Fri Mar 2 07:49:56 CET 2018


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 30692 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20180302/e15c73a0/attachment-0001.bin>


More information about the Alsa-devel mailing list