From: kernel test robot <lkp@intel.com>
Cc: oe-kbuild-all@lists.linux.dev,
Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Subject: [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'
Date: Tue, 7 Nov 2023 00:25:42 +0800 [thread overview]
Message-ID: <202311070016.dFCFO8Za-lkp@intel.com> (raw)
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
reply other threads:[~2023-11-06 16:26 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=202311070016.dFCFO8Za-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=pierre-louis.bossart@linux.intel.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 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.