[asoc:topic/intel 38/38] sound/soc//intel/skylake/skl-sst-cldma.c:92:22: error: implicit declaration of function 'virt_to_phys'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git topic/intel
head:   f6a118a800e35af2c63f90cbcc23093f4b53b3a2
commit: f6a118a800e35af2c63f90cbcc23093f4b53b3a2 [38/38] ASoC: Intel: clarify Kconfig dependencies
config: s390-allyesconfig (attached as .config)
compiler: s390x-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout f6a118a800e35af2c63f90cbcc23093f4b53b3a2
        # save the attached .config to linux build tree
        make.cross ARCH=s390 

All errors (new ones prefixed by >>):

   sound/soc//intel/skylake/skl-sst-cldma.c: In function 'skl_cldma_setup_bdle':
>> sound/soc//intel/skylake/skl-sst-cldma.c:92:22: error: implicit declaration of function 'virt_to_phys' [-Werror=implicit-function-declaration]
      phys_addr_t addr = virt_to_phys(dmab_data->area +
                         ^~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/virt_to_phys +92 sound/soc//intel/skylake/skl-sst-cldma.c

a4386450b Jeeja KP   2015-12-18   82  
914426c86 Vinod Koul 2015-07-10   83  /* Code loader helper APIs */
914426c86 Vinod Koul 2015-07-10   84  static void skl_cldma_setup_bdle(struct sst_dsp *ctx,
914426c86 Vinod Koul 2015-07-10   85  		struct snd_dma_buffer *dmab_data,
914426c86 Vinod Koul 2015-07-10   86  		u32 **bdlp, int size, int with_ioc)
914426c86 Vinod Koul 2015-07-10   87  {
914426c86 Vinod Koul 2015-07-10   88  	u32 *bdl = *bdlp;
914426c86 Vinod Koul 2015-07-10   89  
914426c86 Vinod Koul 2015-07-10   90  	ctx->cl_dev.frags = 0;
914426c86 Vinod Koul 2015-07-10   91  	while (size > 0) {
914426c86 Vinod Koul 2015-07-10  @92  		phys_addr_t addr = virt_to_phys(dmab_data->area +
914426c86 Vinod Koul 2015-07-10   93  				(ctx->cl_dev.frags * ctx->cl_dev.bufsize));
914426c86 Vinod Koul 2015-07-10   94  
914426c86 Vinod Koul 2015-07-10   95  		bdl[0] = cpu_to_le32(lower_32_bits(addr));
914426c86 Vinod Koul 2015-07-10   96  		bdl[1] = cpu_to_le32(upper_32_bits(addr));
914426c86 Vinod Koul 2015-07-10   97  
914426c86 Vinod Koul 2015-07-10   98  		bdl[2] = cpu_to_le32(ctx->cl_dev.bufsize);
914426c86 Vinod Koul 2015-07-10   99  
914426c86 Vinod Koul 2015-07-10  100  		size -= ctx->cl_dev.bufsize;
914426c86 Vinod Koul 2015-07-10  101  		bdl[3] = (size || !with_ioc) ? 0 : cpu_to_le32(0x01);
914426c86 Vinod Koul 2015-07-10  102  
914426c86 Vinod Koul 2015-07-10  103  		bdl += 4;
914426c86 Vinod Koul 2015-07-10  104  		ctx->cl_dev.frags++;
914426c86 Vinod Koul 2015-07-10  105  	}
914426c86 Vinod Koul 2015-07-10  106  }
914426c86 Vinod Koul 2015-07-10  107  

:::::: The code at line 92 was first introduced by commit
:::::: 914426c8657c1e934b015ffa32e7bfd0cb34f47f ASoC: Intel: Skylake: add code loader DMA operations

:::::: TO: Vinod Koul <vinod.koul@xxxxxxxxx>
:::::: CC: Mark Brown <broonie@xxxxxxxxxx>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip

_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux