[alsa-devel] [asoc:for-5.2 92/97] sound/soc//mediatek/mt8183/mt8183-da7219-max98357.c:413:13: error: 'struct snd_soc_dai_link' has no member named 'platform'; did you mean 'platforms'?
tree: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.2 head: 35146467bd43704c52d1d5760af9839a10ad5b12 commit: ebbddc75bbe8d8eab64d3285b0480f5ae9232b2e [92/97] ASoC: Mediatek: MT8183: Add machine driver with DA7219 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 ebbddc75bbe8d8eab64d3285b0480f5ae9232b2e # 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-da7219-max98357.c: In function 'mt8183_da7219_max98357_dev_probe':
sound/soc//mediatek/mt8183/mt8183-da7219-max98357.c:413:13: error: 'struct snd_soc_dai_link' has no member named 'platform'; did you mean 'platforms'?
dai_link->platform = NULL; ^~~~~~~~ platforms
vim +413 sound/soc//mediatek/mt8183/mt8183-da7219-max98357.c
387 388 static int mt8183_da7219_max98357_dev_probe(struct platform_device *pdev) 389 { 390 struct snd_soc_card *card = &mt8183_da7219_max98357_card; 391 struct device_node *platform_node; 392 struct snd_soc_dai_link *dai_link; 393 struct pinctrl *default_pins; 394 int ret, i; 395 396 card->dev = &pdev->dev; 397 398 platform_node = of_parse_phandle(pdev->dev.of_node, 399 "mediatek,platform", 0); 400 if (!platform_node) { 401 dev_err(&pdev->dev, "Property 'platform' missing or invalid\n"); 402 return -EINVAL; 403 } 404 405 for_each_card_prelinks(card, i, dai_link) { 406 /* In the alsa soc-core, the "platform" will be 407 * allocated by devm_kzalloc if null. 408 * There is a special case that registerring 409 * sound card is failed at the first time, but 410 * the "platform" will not null when probe is trying 411 * again. It's not expected normally. 412 */
413 dai_link->platform = NULL;
414 415 if (dai_link->platform_name) 416 continue; 417 dai_link->platform_of_node = platform_node; 418 } 419 420 mt8183_da7219_max98357_headset_dev.codec_of_node = 421 of_parse_phandle(pdev->dev.of_node, 422 "mediatek,headset-codec", 0); 423 if (!mt8183_da7219_max98357_headset_dev.codec_of_node) { 424 dev_err(&pdev->dev, 425 "Property 'mediatek,headset-codec' missing/invalid\n"); 426 return -EINVAL; 427 } 428 429 ret = devm_snd_soc_register_card(&pdev->dev, card); 430 if (ret) { 431 dev_err(&pdev->dev, "%s snd_soc_register_card fail %d\n", 432 __func__, ret); 433 return ret; 434 } 435 436 default_pins = 437 devm_pinctrl_get_select(&pdev->dev, PINCTRL_STATE_DEFAULT); 438 if (IS_ERR(default_pins)) { 439 dev_err(&pdev->dev, "%s set pins failed\n", 440 __func__); 441 return PTR_ERR(default_pins); 442 } 443 444 return ret; 445 } 446
--- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
participants (1)
-
kbuild test robot