[linusw-nomadik:ux500-sound 2/5] sound/soc/pxa/mmp-pcm.c:129:16: error: implicit declaration of function 'snd_dmaengine_pcm_open_request_chan'; did you mean 'snd_dmaengine_pcm_request_channel'?

kernel test robot lkp at intel.com
Thu Feb 9 21:36:36 PST 2023


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik.git ux500-sound
head:   b65694eef136170ab7bac3d1f351b7d41fda5167
commit: fd5c9025adb03694a418ffe7f225634df560e2f5 [2/5] ASoC: pxa: remove snd_dmaengine_pcm_open_request_chan()
config: arm-allyesconfig (https://download.01.org/0day-ci/archive/20230210/202302101335.52QlY8iD-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik.git/commit/?id=fd5c9025adb03694a418ffe7f225634df560e2f5
        git remote add linusw-nomadik https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik.git
        git fetch --no-tags linusw-nomadik ux500-sound
        git checkout fd5c9025adb03694a418ffe7f225634df560e2f5
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp at intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202302101335.52QlY8iD-lkp@intel.com/

All errors (new ones prefixed by >>):

   sound/soc/pxa/mmp-pcm.c: In function 'mmp_pcm_open':
>> sound/soc/pxa/mmp-pcm.c:129:16: error: implicit declaration of function 'snd_dmaengine_pcm_open_request_chan'; did you mean 'snd_dmaengine_pcm_request_channel'? [-Werror=implicit-function-declaration]
     129 |         return snd_dmaengine_pcm_open_request_chan(substream, filter,
         |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                snd_dmaengine_pcm_request_channel
   cc1: some warnings being treated as errors


vim +129 sound/soc/pxa/mmp-pcm.c

7a824e214e25a4 Zhangfei Gao       2012-06-11  109  
540e59c68bbcd4 Kuninori Morimoto  2019-10-02  110  static int mmp_pcm_open(struct snd_soc_component *component,
540e59c68bbcd4 Kuninori Morimoto  2019-10-02  111  			struct snd_pcm_substream *substream)
7a824e214e25a4 Zhangfei Gao       2012-06-11  112  {
83b95c2fc02839 Kuninori Morimoto  2020-07-20  113  	struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream);
797d16971a2a4f Kuninori Morimoto  2018-01-29  114  	struct platform_device *pdev = to_platform_device(component->dev);
8d8fef280c9486 Kuninori Morimoto  2020-03-23  115  	struct snd_soc_dai *cpu_dai = asoc_rtd_to_cpu(rtd, 0);
ac581e60dfb4cc Lars-Peter Clausen 2013-03-22  116  	struct mmp_dma_data dma_data;
7a824e214e25a4 Zhangfei Gao       2012-06-11  117  	struct resource *r;
7a824e214e25a4 Zhangfei Gao       2012-06-11  118  
7a824e214e25a4 Zhangfei Gao       2012-06-11  119  	r = platform_get_resource(pdev, IORESOURCE_DMA, substream->stream);
7a824e214e25a4 Zhangfei Gao       2012-06-11  120  	if (!r)
7a824e214e25a4 Zhangfei Gao       2012-06-11  121  		return -EBUSY;
7a824e214e25a4 Zhangfei Gao       2012-06-11  122  
7a824e214e25a4 Zhangfei Gao       2012-06-11  123  	snd_soc_set_runtime_hwparams(substream,
7a824e214e25a4 Zhangfei Gao       2012-06-11  124  				&mmp_pcm_hardware[substream->stream]);
7a824e214e25a4 Zhangfei Gao       2012-06-11  125  
ac581e60dfb4cc Lars-Peter Clausen 2013-03-22  126  	dma_data.dma_res = r;
ac581e60dfb4cc Lars-Peter Clausen 2013-03-22  127  	dma_data.ssp_id = cpu_dai->id;
7a824e214e25a4 Zhangfei Gao       2012-06-11  128  
7c1c1d4a7b4ca1 Lars-Peter Clausen 2013-04-15 @129  	return snd_dmaengine_pcm_open_request_chan(substream, filter,
7c1c1d4a7b4ca1 Lars-Peter Clausen 2013-04-15  130  		    &dma_data);
7a824e214e25a4 Zhangfei Gao       2012-06-11  131  }
7a824e214e25a4 Zhangfei Gao       2012-06-11  132  

:::::: The code at line 129 was first introduced by commit
:::::: 7c1c1d4a7b4ca1266057a3632d27450f5575caf9 ASoC: dmaengine-pcm: Make requesting the DMA channel at PCM open optional

:::::: TO: Lars-Peter Clausen <lars at metafoo.de>
:::::: CC: Mark Brown <broonie at opensource.wolfsonmicro.com>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests



More information about the linux-arm-kernel mailing list