[alsa-devel] [asoc:for-5.2 90/97] sound/soc//mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c:325:13: error: 'struct snd_soc_dai_link' has no member named 'platform'; did you mean 'platforms'?

kbuild test robot lkp at intel.com
Mon Apr 1 16:15:45 CEST 2019


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.2
head:   35146467bd43704c52d1d5760af9839a10ad5b12
commit: 11c0269017b212fd47c593307d2dc3eb9713b2d0 [90/97] ASoC: Mediatek: MT8183: Add machine driver with TS3A227
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 11c0269017b212fd47c593307d2dc3eb9713b2d0
        # save the attached .config to linux build tree
        GCC_VERSION=7.2.0 make.cross ARCH=arm 

All errors (new ones prefixed by >>):

   sound/soc//mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c: In function 'mt8183_mt6358_ts3a227_max98357_dev_probe':
>> sound/soc//mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c:325:13: error: 'struct snd_soc_dai_link' has no member named 'platform'; did you mean 'platforms'?
      dai_link->platform = NULL;
                ^~~~~~~~
                platforms

vim +325 sound/soc//mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c

   298	
   299	static int
   300	mt8183_mt6358_ts3a227_max98357_dev_probe(struct platform_device *pdev)
   301	{
   302		struct snd_soc_card *card = &mt8183_mt6358_ts3a227_max98357_card;
   303		struct device_node *platform_node;
   304		struct snd_soc_dai_link *dai_link;
   305		struct pinctrl *default_pins;
   306		int ret, i;
   307	
   308		card->dev = &pdev->dev;
   309	
   310		platform_node = of_parse_phandle(pdev->dev.of_node,
   311						 "mediatek,platform", 0);
   312		if (!platform_node) {
   313			dev_err(&pdev->dev, "Property 'platform' missing or invalid\n");
   314			return -EINVAL;
   315		}
   316	
   317		for_each_card_prelinks(card, i, dai_link) {
   318			/* In the alsa soc-core, the "platform" will be
   319			 * allocated by devm_kzalloc if null.
   320			 * There is a special case that registerring
   321			 * sound card is failed at the first time, but
   322			 * the "platform" will not null when probe is trying
   323			 * again. It's not expected normally.
   324			 */
 > 325			dai_link->platform = NULL;
   326	
   327			if (dai_link->platform_name)
   328				continue;
   329			dai_link->platform_of_node = platform_node;
   330		}
   331	
   332		mt8183_mt6358_ts3a227_max98357_headset_dev.codec_of_node =
   333			of_parse_phandle(pdev->dev.of_node,
   334					 "mediatek,headset-codec", 0);
   335		if (!mt8183_mt6358_ts3a227_max98357_headset_dev.codec_of_node) {
   336			dev_err(&pdev->dev,
   337				"Property 'mediatek,headset-codec' missing/invalid\n");
   338			return -EINVAL;
   339		}
   340	
   341		ret = devm_snd_soc_register_card(&pdev->dev, card);
   342		if (ret)
   343			dev_err(&pdev->dev, "%s snd_soc_register_card fail %d\n",
   344				__func__, ret);
   345	
   346		default_pins =
   347			devm_pinctrl_get_select(&pdev->dev, PINCTRL_STATE_DEFAULT);
   348		if (IS_ERR(default_pins)) {
   349			dev_err(&pdev->dev, "%s set pins failed\n",
   350				__func__);
   351			return PTR_ERR(default_pins);
   352		}
   353	
   354		return ret;
   355	}
   356	

---
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: 69032 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20190401/c3ed0da1/attachment-0001.gz>


More information about the Alsa-devel mailing list