[alsa-devel] [asoc:topic/pxa 2/2] sound/soc/pxa/mmp-pcm.c:130:3: error: implicit declaration of function '__phys_to_pfn'

kbuild test robot fengguang.wu at intel.com
Wed Jun 21 14:50:51 CEST 2017


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git topic/pxa
head:   d89e69c0f985392e708b54c92b322163da820cb9
commit: d89e69c0f985392e708b54c92b322163da820cb9 [2/2] ASoC: pxa: add COMPILE_TEST on SND_MMP_SOC
config: ia64-allyesconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 6.2.0
reproduce:
        wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout d89e69c0f985392e708b54c92b322163da820cb9
        # save the attached .config to linux build tree
        make.cross ARCH=ia64 

All errors (new ones prefixed by >>):

   sound/soc/pxa/mmp-pcm.c: In function 'mmp_pcm_mmap':
>> sound/soc/pxa/mmp-pcm.c:130:3: error: implicit declaration of function '__phys_to_pfn' [-Werror=implicit-function-declaration]
      __phys_to_pfn(runtime->dma_addr) + off,
      ^~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/__phys_to_pfn +130 sound/soc/pxa/mmp-pcm.c

7a824e214 Zhangfei Gao       2012-06-11  114  
ac581e60d Lars-Peter Clausen 2013-03-22  115  	dma_data.dma_res = r;
ac581e60d Lars-Peter Clausen 2013-03-22  116  	dma_data.ssp_id = cpu_dai->id;
7a824e214 Zhangfei Gao       2012-06-11  117  
7c1c1d4a7 Lars-Peter Clausen 2013-04-15  118  	return snd_dmaengine_pcm_open_request_chan(substream, filter,
7c1c1d4a7 Lars-Peter Clausen 2013-04-15  119  		    &dma_data);
7a824e214 Zhangfei Gao       2012-06-11  120  }
7a824e214 Zhangfei Gao       2012-06-11  121  
7a824e214 Zhangfei Gao       2012-06-11  122  static int mmp_pcm_mmap(struct snd_pcm_substream *substream,
7a824e214 Zhangfei Gao       2012-06-11  123  			 struct vm_area_struct *vma)
7a824e214 Zhangfei Gao       2012-06-11  124  {
7a824e214 Zhangfei Gao       2012-06-11  125  	struct snd_pcm_runtime *runtime = substream->runtime;
7a824e214 Zhangfei Gao       2012-06-11  126  	unsigned long off = vma->vm_pgoff;
7a824e214 Zhangfei Gao       2012-06-11  127  
7a824e214 Zhangfei Gao       2012-06-11  128  	vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
7a824e214 Zhangfei Gao       2012-06-11  129  	return remap_pfn_range(vma, vma->vm_start,
7a824e214 Zhangfei Gao       2012-06-11 @130  		__phys_to_pfn(runtime->dma_addr) + off,
7a824e214 Zhangfei Gao       2012-06-11  131  		vma->vm_end - vma->vm_start, vma->vm_page_prot);
7a824e214 Zhangfei Gao       2012-06-11  132  }
7a824e214 Zhangfei Gao       2012-06-11  133  
60e10d2fb Lars-Peter Clausen 2013-05-14  134  static struct snd_pcm_ops mmp_pcm_ops = {
7a824e214 Zhangfei Gao       2012-06-11  135  	.open		= mmp_pcm_open,
7c1c1d4a7 Lars-Peter Clausen 2013-04-15  136  	.close		= snd_dmaengine_pcm_close_release_chan,
7a824e214 Zhangfei Gao       2012-06-11  137  	.ioctl		= snd_pcm_lib_ioctl,
7a824e214 Zhangfei Gao       2012-06-11  138  	.hw_params	= mmp_pcm_hw_params,

:::::: The code at line 130 was first introduced by commit
:::::: 7a824e214e25a49442fe868dac0af8a904b24f58 ASoC: mmp: add audio dma support

:::::: TO: Zhangfei Gao <zhangfei.gao at marvell.com>
:::::: CC: Mark Brown <broonie at opensource.wolfsonmicro.com>

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


More information about the Alsa-devel mailing list