From: kbuild test robot <lkp@intel.com>
To: Shunli Wang <shunli.wang@mediatek.com>
Cc: alsa-devel@alsa-project.org, Mark Brown <broonie@kernel.org>,
kbuild-all@01.org
Subject: [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'?
Date: Mon, 1 Apr 2019 23:02:17 +0800 [thread overview]
Message-ID: <201904012311.7WkziZMP%lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3286 bytes --]
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
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 69037 bytes --]
[-- Attachment #3: Type: text/plain, Size: 0 bytes --]
reply other threads:[~2019-04-01 15:02 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201904012311.7WkziZMP%lkp@intel.com \
--to=lkp@intel.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=kbuild-all@01.org \
--cc=shunli.wang@mediatek.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).