tree:
https://github.com/morimoto/linux sound/2021-04-19-v3
head: 98469aeb54c122b8fc5c1d4607158220830bcba5
commit: 3969b3f0fb5f53791d94a04fac43bd4037e9a873 [34/100] ASoC: audio-graph-card2: add
Audio Graph Card2 driver
config: h8300-allyesconfig (attached as .config)
compiler: h8300-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
#
https://github.com/morimoto/linux/commit/3969b3f0fb5f53791d94a04fac43bd40...
git remote add morimoto-linux
https://github.com/morimoto/linux
git fetch --no-tags morimoto-linux sound/2021-04-19-v3
git checkout 3969b3f0fb5f53791d94a04fac43bd4037e9a873
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=h8300
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
sound/soc/generic/audio-graph-card2.c: In function 'audio_graph2_parse_of':
> sound/soc/generic/audio-graph-card2.c:593:1: warning: the frame
size of 1040 bytes is larger than 1024 bytes [-Wframe-larger-than=]
593 | }
| ^
vim +593 sound/soc/generic/audio-graph-card2.c
517
518 int audio_graph2_parse_of(struct asoc_simple_priv *priv, struct device *dev,
519 struct graph_custom_hooks *hooks)
520 {
521 struct snd_soc_card *card = simple_priv_to_card(priv);
522 struct link_info li;
523 int ret;
524
525 dev_warn(dev, "Audio Graph Card2 is still under Experimental stage\n");
526
527 memset(&li, 0, sizeof(li));
528
529 card->probe = asoc_graph_card_probe;
530 card->owner = THIS_MODULE;
531 card->dev = dev;
532
533 if ((hooks) && (hooks)->hook_pre) {
534 ret = (hooks)->hook_pre(priv);
535 if (ret < 0)
536 goto err;
537 }
538
539 ret = graph_for_each_link(priv, hooks, &li, graph_count);
540 if (!li.link)
541 ret = -EINVAL;
542 if (ret < 0)
543 goto err;
544
545 ret = asoc_simple_init_priv(priv, &li);
546 if (ret < 0)
547 goto err;
548
549 priv->pa_gpio = devm_gpiod_get_optional(dev, "pa", GPIOD_OUT_LOW);
550 if (IS_ERR(priv->pa_gpio)) {
551 ret = PTR_ERR(priv->pa_gpio);
552 dev_err(dev, "failed to get amplifier gpio: %d\n", ret);
553 goto err;
554 }
555
556 ret = asoc_simple_parse_widgets(card, NULL);
557 if (ret < 0)
558 goto err;
559
560 ret = asoc_simple_parse_routing(card, NULL);
561 if (ret < 0)
562 goto err;
563
564 memset(&li, 0, sizeof(li));
565 ret = graph_for_each_link(priv, hooks, &li, graph_link);
566 if (ret < 0)
567 goto err;
568
569 ret = asoc_simple_parse_card_name(card, NULL);
570 if (ret < 0)
571 goto err;
572
573 snd_soc_card_set_drvdata(card, priv);
574
575 if ((hooks) && (hooks)->hook_post) {
576 ret = (hooks)->hook_post(priv);
577 if (ret < 0)
578 goto err;
579 }
580
581 asoc_simple_debug_info(priv);
582
583 ret = devm_snd_soc_register_card(dev, card);
584 if (ret < 0)
585 goto err;
586
587 return 0;
588 err:
589 if (ret != -EPROBE_DEFER)
590 dev_err(dev, "parse error %d\n", ret);
591
592 return ret;
593 }
594 EXPORT_SYMBOL_GPL(audio_graph2_parse_of);
595
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org