[alsa-devel] [asoc:topic/rt5514 1/1] sound/soc/codecs/rt5514-spi.c:477:70: error: 'DRV_NAME' undeclared; did you mean 'IRQ_NONE'?

kbuild test robot fengguang.wu at intel.com
Tue Feb 13 06:51:38 CET 2018


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git topic/rt5514
head:   04e8262ac8c3f59599ea6dfe5cd1a039828ea4ad
commit: 04e8262ac8c3f59599ea6dfe5cd1a039828ea4ad [1/1] ASoC: rt5514: replace codec to component
config: xtensa-allyesconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 7.2.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 04e8262ac8c3f59599ea6dfe5cd1a039828ea4ad
        # save the attached .config to linux build tree
        make.cross ARCH=xtensa 

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); did you mean 'IRQ_NONE'?
     struct snd_soc_component *component = snd_soc_lookup_component(dev, DRV_NAME);
                                                                         ^~~~~~~~
                                                                         IRQ_NONE
   sound/soc/codecs/rt5514-spi.c:477:70: note: each undeclared identifier is reported only once for each function it appears in

vim +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: 53285 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20180213/d7c9a5a5/attachment-0001.bin>


More information about the Alsa-devel mailing list