[alsa-devel] [asoc:topic/generic-dmaengine 1/1] sound/soc/soc-generic-dmaengine-pcm.c:435:5: error: 'struct dmaengine_pcm' has no member named 'component'

kbuild test robot fengguang.wu at intel.com
Thu Feb 22 14:28:11 CET 2018


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git topic/generic-dmaengine
head:   f0b3bdbd5c63c3f69f3b6a869355c676d22fd348
commit: f0b3bdbd5c63c3f69f3b6a869355c676d22fd348 [1/1] ASoC: soc-generic-dmaengine-pcm: Add a DMA debugfs_prefix entry
config: i386-randconfig-x004-201807 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
        git checkout f0b3bdbd5c63c3f69f3b6a869355c676d22fd348
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

   sound/soc/soc-generic-dmaengine-pcm.c: In function 'snd_dmaengine_pcm_register':
>> sound/soc/soc-generic-dmaengine-pcm.c:435:5: error: 'struct dmaengine_pcm' has no member named 'component'
     pcm->component.debugfs_prefix = "dma";
        ^~

vim +435 sound/soc/soc-generic-dmaengine-pcm.c

   417	
   418	/**
   419	 * snd_dmaengine_pcm_register - Register a dmaengine based PCM device
   420	 * @dev: The parent device for the PCM device
   421	 * @config: Platform specific PCM configuration
   422	 * @flags: Platform specific quirks
   423	 */
   424	int snd_dmaengine_pcm_register(struct device *dev,
   425		const struct snd_dmaengine_pcm_config *config, unsigned int flags)
   426	{
   427		struct dmaengine_pcm *pcm;
   428		int ret;
   429	
   430		pcm = kzalloc(sizeof(*pcm), GFP_KERNEL);
   431		if (!pcm)
   432			return -ENOMEM;
   433	
   434	#ifdef CONFIG_DEBUG_FS
 > 435		pcm->component.debugfs_prefix = "dma";
   436	#endif
   437		pcm->config = config;
   438		pcm->flags = flags;
   439	
   440		ret = dmaengine_pcm_request_chan_of(pcm, dev, config);
   441		if (ret)
   442			goto err_free_dma;
   443	
   444		ret = snd_soc_add_platform(dev, &pcm->platform,
   445			&dmaengine_pcm_platform);
   446		if (ret)
   447			goto err_free_dma;
   448	
   449		return 0;
   450	
   451	err_free_dma:
   452		dmaengine_pcm_release_chan(pcm);
   453		kfree(pcm);
   454		return ret;
   455	}
   456	EXPORT_SYMBOL_GPL(snd_dmaengine_pcm_register);
   457	

---
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: 32176 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20180222/dae6aa95/attachment-0001.bin>


More information about the Alsa-devel mailing list