[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'
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
On Thu, Feb 22, 2018 at 10:28 AM, kbuild test robot fengguang.wu@intel.com wrote:
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";
This error happens because topic/generic-dmaengine misses the following commit:
commit be7ee5f32a9a4eba881d18e85d58e9a03a9cca99 Author: Kuninori Morimoto kuninori.morimoto.gx@renesas.com Date: Mon Jan 29 02:41:09 2018 +0000
ASoC: soc-generic-dmaengine-pcm: replace platform to component
Now platform can be replaced to component, let's do it.
Signed-off-by: Kuninori Morimoto kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown broonie@kernel.org
participants (2)
-
Fabio Estevam
-
kbuild test robot