[asoc:for-4.18 91/91] sound/soc/mediatek/common/mtk-afe-platform-driver.c:65:15: error: 'struct snd_soc_pcm_runtime' has no member named 'platform'

[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 for-4.18
head:   58edf3255ca3025444c016241611453585453089
commit: 58edf3255ca3025444c016241611453585453089 [91/91] ASoC: mediatek: preallocate pages use platform device
config: arm-allmodconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 58edf3255ca3025444c016241611453585453089
        # save the attached .config to linux build tree
        make.cross ARCH=arm 

All error/warnings (new ones prefixed by >>):

   sound/soc/mediatek/common/mtk-afe-platform-driver.c: In function 'mtk_afe_pcm_new':
>> sound/soc/mediatek/common/mtk-afe-platform-driver.c:65:15: error: 'struct snd_soc_pcm_runtime' has no member named 'platform'
               rtd->platform->dev,
                  ^~
>> sound/soc/mediatek/common/mtk-afe-platform-driver.c:67:1: warning: control reaches end of non-void function [-Wreturn-type]
    }
    ^

vim +65 sound/soc/mediatek/common/mtk-afe-platform-driver.c

    55	
    56	static int mtk_afe_pcm_new(struct snd_soc_pcm_runtime *rtd)
    57	{
    58		size_t size;
    59		struct snd_pcm *pcm = rtd->pcm;
    60		struct snd_soc_component *component = snd_soc_rtdcom_lookup(rtd, AFE_PCM_NAME);
    61		struct mtk_base_afe *afe = snd_soc_component_get_drvdata(component);
    62	
    63		size = afe->mtk_afe_hardware->buffer_bytes_max;
    64		return snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV,
  > 65							     rtd->platform->dev,
    66							     size, size);
  > 67	}
    68	

---
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