* [plbossart-sound:morimoto/m-n-update 37/45] sound/soc/generic/audio-graph-card2.c:555:53: error: 'struct snd_soc_dai_link_ch_map' has no member named 'connected_node'
@ 2023-11-06 16:25 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-11-06 16:25 UTC (permalink / raw)
Cc: oe-kbuild-all, Pierre-Louis Bossart
tree: https://github.com/plbossart/sound morimoto/m-n-update
head: 7019e7e052887590bd79afe4ec6ee1455ac73dc9
commit: d84cf8bef671f1a52d62607d8540056950066102 [37/45] ASoC: audio-graph-card2: add CPU:Codec = N:M support
config: xtensa-allyesconfig (https://download.01.org/0day-ci/archive/20231107/202311070016.dFCFO8Za-lkp@intel.com/config)
compiler: xtensa-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231107/202311070016.dFCFO8Za-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202311070016.dFCFO8Za-lkp@intel.com/
All errors (new ones prefixed by >>):
sound/soc/generic/audio-graph-card2.c: In function 'graph_parse_node':
>> sound/soc/generic/audio-graph-card2.c:555:53: error: 'struct snd_soc_dai_link_ch_map' has no member named 'connected_node'
555 | dai_link->ch_maps[i].connected_node = temp[i];
| ^
vim +555 sound/soc/generic/audio-graph-card2.c
506
507 static int graph_parse_node(struct simple_util_priv *priv,
508 enum graph_type gtype,
509 struct device_node *port,
510 struct link_info *li, int is_cpu)
511 {
512 struct device_node *ep;
513 int ret = 0;
514
515 if (graph_lnk_is_multi(port)) {
516 struct device_node *ports = of_get_parent(port);
517 int idx;
518 int num;
519 char *props = "ch-maps";
520
521 of_node_get(port);
522
523 for (idx = 0;; idx++) {
524 ep = graph_get_next_multi_ep(&port);
525 if (!ep)
526 break;
527
528 ret = __graph_parse_node(priv, gtype, ep,
529 li, is_cpu, idx);
530 of_node_put(ep);
531 if (ret < 0)
532 break;
533 }
534
535 /* read "ch-maps" property if exist */
536 num = of_property_count_elems_of_size(ports, props, sizeof(u32));
537 if (num > 0) {
538 struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link);
539 struct device *dev = simple_priv_to_dev(priv);
540 struct snd_soc_dai_link_ch_map *ch_maps = devm_kcalloc(dev, num, sizeof(*ch_maps), GFP_KERNEL);
541 int *temp = devm_kcalloc(dev, num, sizeof(int), GFP_KERNEL);
542 int i;
543
544 if (!ch_maps || !temp) {
545 ret = -ENOMEM;
546 goto multi_end;
547 }
548
549 ret = of_property_read_u32_array(ports, props, temp, num);
550 if (ret < 0)
551 goto multi_end;
552
553 dai_link->ch_maps = ch_maps;
554 for (i = 0; i < num; i++)
> 555 dai_link->ch_maps[i].connected_node = temp[i];
556 multi_end:
557 devm_kfree(dev, temp);
558 }
559 of_node_put(ports);
560 } else {
561 /* Single CPU / Codec */
562 ep = port_to_endpoint(port);
563 ret = __graph_parse_node(priv, gtype, ep, li, is_cpu, 0);
564 of_node_put(ep);
565 }
566
567 return ret;
568 }
569
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-11-06 16:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-06 16:25 [plbossart-sound:morimoto/m-n-update 37/45] sound/soc/generic/audio-graph-card2.c:555:53: error: 'struct snd_soc_dai_link_ch_map' has no member named 'connected_node' kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.