* [morimoto-linux:fw-cleanup-2020-12-15-v2 93/93] sound/soc/generic/audio-graph-card2.c:511:32: error: passing argument 1 of 'asoc_simple_canonicalize_cpu' from incompatible pointer type
@ 2020-12-15 15:31 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-12-15 15:31 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 18437 bytes --]
tree: https://github.com/morimoto/linux fw-cleanup-2020-12-15-v2
head: 228442c52651fc123cc1f69999b08965852a0019
commit: 228442c52651fc123cc1f69999b08965852a0019 [93/93] hge
config: ia64-randconfig-r014-20201215 (attached as .config)
compiler: ia64-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/228442c52651fc123cc1f69999b08965852a0019
git remote add morimoto-linux https://github.com/morimoto/linux
git fetch --no-tags morimoto-linux fw-cleanup-2020-12-15-v2
git checkout 228442c52651fc123cc1f69999b08965852a0019
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All error/warnings (new ones prefixed by >>):
sound/soc/generic/audio-graph-card2.c: In function 'graph_link_multi':
>> sound/soc/generic/audio-graph-card2.c:511:32: error: passing argument 1 of 'asoc_simple_canonicalize_cpu' from incompatible pointer type [-Werror=incompatible-pointer-types]
511 | asoc_simple_canonicalize_cpu(dev, dai_link, i, single_cpu);
| ^~~
| |
| struct device *
In file included from include/sound/graph_card.h:10,
from sound/soc/generic/audio-graph-card2.c:21:
include/sound/simple_card_utils.h:150:70: note: expected 'struct snd_soc_dai_link_component *' but argument is of type 'struct device *'
150 | void asoc_simple_canonicalize_cpu(struct snd_soc_dai_link_component *cpus,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
>> sound/soc/generic/audio-graph-card2.c:511:37: warning: passing argument 2 of 'asoc_simple_canonicalize_cpu' makes integer from pointer without a cast [-Wint-conversion]
511 | asoc_simple_canonicalize_cpu(dev, dai_link, i, single_cpu);
| ^~~~~~~~
| |
| struct snd_soc_dai_link *
In file included from include/sound/graph_card.h:10,
from sound/soc/generic/audio-graph-card2.c:21:
include/sound/simple_card_utils.h:151:11: note: expected 'int' but argument is of type 'struct snd_soc_dai_link *'
151 | int is_single_links);
| ~~~~^~~~~~~~~~~~~~~
>> sound/soc/generic/audio-graph-card2.c:511:3: error: too many arguments to function 'asoc_simple_canonicalize_cpu'
511 | asoc_simple_canonicalize_cpu(dev, dai_link, i, single_cpu);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/sound/graph_card.h:10,
from sound/soc/generic/audio-graph-card2.c:21:
include/sound/simple_card_utils.h:150:6: note: declared here
150 | void asoc_simple_canonicalize_cpu(struct snd_soc_dai_link_component *cpus,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> sound/soc/generic/audio-graph-card2.c:512:37: error: passing argument 1 of 'asoc_simple_canonicalize_platform' from incompatible pointer type [-Werror=incompatible-pointer-types]
512 | asoc_simple_canonicalize_platform(dev, dai_link, i);
| ^~~
| |
| struct device *
In file included from include/sound/graph_card.h:10,
from sound/soc/generic/audio-graph-card2.c:21:
include/sound/simple_card_utils.h:148:75: note: expected 'struct snd_soc_dai_link_component *' but argument is of type 'struct device *'
148 | void asoc_simple_canonicalize_platform(struct snd_soc_dai_link_component *platforms,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
sound/soc/generic/audio-graph-card2.c:512:42: error: passing argument 2 of 'asoc_simple_canonicalize_platform' from incompatible pointer type [-Werror=incompatible-pointer-types]
512 | asoc_simple_canonicalize_platform(dev, dai_link, i);
| ^~~~~~~~
| |
| struct snd_soc_dai_link *
In file included from include/sound/graph_card.h:10,
from sound/soc/generic/audio-graph-card2.c:21:
include/sound/simple_card_utils.h:149:47: note: expected 'struct snd_soc_dai_link_component *' but argument is of type 'struct snd_soc_dai_link *'
149 | struct snd_soc_dai_link_component *cpus);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
>> sound/soc/generic/audio-graph-card2.c:512:3: error: too many arguments to function 'asoc_simple_canonicalize_platform'
512 | asoc_simple_canonicalize_platform(dev, dai_link, i);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/sound/graph_card.h:10,
from sound/soc/generic/audio-graph-card2.c:21:
include/sound/simple_card_utils.h:148:6: note: declared here
148 | void asoc_simple_canonicalize_platform(struct snd_soc_dai_link_component *platforms,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sound/soc/generic/audio-graph-card2.c: In function 'graph_link_dpcm':
sound/soc/generic/audio-graph-card2.c:622:32: error: passing argument 1 of 'asoc_simple_canonicalize_cpu' from incompatible pointer type [-Werror=incompatible-pointer-types]
622 | asoc_simple_canonicalize_cpu(dai_link, is_single_links);
| ^~~~~~~~
| |
| struct snd_soc_dai_link *
In file included from include/sound/graph_card.h:10,
from sound/soc/generic/audio-graph-card2.c:21:
include/sound/simple_card_utils.h:150:70: note: expected 'struct snd_soc_dai_link_component *' but argument is of type 'struct snd_soc_dai_link *'
150 | void asoc_simple_canonicalize_cpu(struct snd_soc_dai_link_component *cpus,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
sound/soc/generic/audio-graph-card2.c:623:37: error: passing argument 1 of 'asoc_simple_canonicalize_platform' from incompatible pointer type [-Werror=incompatible-pointer-types]
623 | asoc_simple_canonicalize_platform(dai_link);
| ^~~~~~~~
| |
| struct snd_soc_dai_link *
In file included from include/sound/graph_card.h:10,
from sound/soc/generic/audio-graph-card2.c:21:
include/sound/simple_card_utils.h:148:75: note: expected 'struct snd_soc_dai_link_component *' but argument is of type 'struct snd_soc_dai_link *'
148 | void asoc_simple_canonicalize_platform(struct snd_soc_dai_link_component *platforms,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
>> sound/soc/generic/audio-graph-card2.c:623:3: error: too few arguments to function 'asoc_simple_canonicalize_platform'
623 | asoc_simple_canonicalize_platform(dai_link);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/sound/graph_card.h:10,
from sound/soc/generic/audio-graph-card2.c:21:
include/sound/simple_card_utils.h:148:6: note: declared here
148 | void asoc_simple_canonicalize_platform(struct snd_soc_dai_link_component *platforms,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sound/soc/generic/audio-graph-card2.c: In function 'graph_link_normal':
sound/soc/generic/audio-graph-card2.c:749:31: error: passing argument 1 of 'asoc_simple_canonicalize_cpu' from incompatible pointer type [-Werror=incompatible-pointer-types]
749 | asoc_simple_canonicalize_cpu(dai_link, single_cpu);
| ^~~~~~~~
| |
| struct snd_soc_dai_link *
In file included from include/sound/graph_card.h:10,
from sound/soc/generic/audio-graph-card2.c:21:
include/sound/simple_card_utils.h:150:70: note: expected 'struct snd_soc_dai_link_component *' but argument is of type 'struct snd_soc_dai_link *'
150 | void asoc_simple_canonicalize_cpu(struct snd_soc_dai_link_component *cpus,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
sound/soc/generic/audio-graph-card2.c:750:36: error: passing argument 1 of 'asoc_simple_canonicalize_platform' from incompatible pointer type [-Werror=incompatible-pointer-types]
750 | asoc_simple_canonicalize_platform(dai_link);
| ^~~~~~~~
| |
| struct snd_soc_dai_link *
In file included from include/sound/graph_card.h:10,
from sound/soc/generic/audio-graph-card2.c:21:
include/sound/simple_card_utils.h:148:75: note: expected 'struct snd_soc_dai_link_component *' but argument is of type 'struct snd_soc_dai_link *'
148 | void asoc_simple_canonicalize_platform(struct snd_soc_dai_link_component *platforms,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
sound/soc/generic/audio-graph-card2.c:750:2: error: too few arguments to function 'asoc_simple_canonicalize_platform'
750 | asoc_simple_canonicalize_platform(dai_link);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/sound/graph_card.h:10,
from sound/soc/generic/audio-graph-card2.c:21:
include/sound/simple_card_utils.h:148:6: note: declared here
148 | void asoc_simple_canonicalize_platform(struct snd_soc_dai_link_component *platforms,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/asoc_simple_canonicalize_cpu +511 sound/soc/generic/audio-graph-card2.c
447
448 static int graph_link_multi(struct asoc_simple_priv *priv,
449 struct snd_soc_dai_link *dai_link,
450 struct simple_dai_props *dai_props,
451 struct device_node *link,
452 struct link_info *li)
453 {
454 struct device *dev = simple_priv_to_dev(priv);
455 struct device_node *ports = link;
456 struct device_node *port;
457 int i;
458
459 /*
460 * top: MULTI {
461 * compatible = "audio-graph-card2-multi";
462 *
463 * // CPU
464 * => link: ports(a)0 {
465 * port(a)0 { ep: endpoint { remote-endpoint = <&cpu_ep>; }; };
466 * ...
467 * };
468 * // Codec
469 * ports(a)1 {
470 * port(a)0 { endpoint { ... }; };
471 * ...
472 * };
473 * };
474 *
475 * CPU {
476 * cpu_ports: ports {
477 * cpu_port: port(a)0 { cpu_ep: endpoint { ... }; };
478 * ...
479 * };
480 * };
481 *
482 */
483 i = 0;
484 for_each_port_of_node(ports, port) {
485 struct device_node *ep = port_to_endpoint(port);
486 struct device_node *cpu_ep = of_graph_get_remote_endpoint(ep);
487 struct device_node *cpu_port = of_get_parent(cpu_ep);
488 struct device_node *cpu_ports = of_get_parent(cpu_port);
489 struct asoc_simple_dai *cpu_dai = simple_props_to_dai_cpu(dai_props, i);
490 struct snd_soc_dai_link_component *cpus = asoc_link_to_cpu(dai_link, i);
491 int ret, single_cpu;
492
493 /* 1st CPU only */
494 if (i == 0) {
495 graph_parse_mclk_fs(cpu_ep, dai_props);
496 graph_parse_daifmt(cpu_ep, dai_link);
497 }
498
499 ret = asoc_simple_parse_dai(cpu_ep, cpus, &single_cpu);
500 if (ret < 0)
501 goto cpu_err;
502
503 ret = asoc_simple_parse_tdm(cpu_ep, cpu_dai);
504 if (ret < 0)
505 goto cpu_err;
506
507 ret = asoc_simple_parse_clk(dev, cpu_ep, cpu_dai, cpus);
508 if (ret < 0)
509 goto cpu_err;
510
> 511 asoc_simple_canonicalize_cpu(dev, dai_link, i, single_cpu);
> 512 asoc_simple_canonicalize_platform(dev, dai_link, i);
513
514 i++;
515 cpu_err:
516 of_node_put(ep);
517 of_node_put(cpu_ep);
518 of_node_put(cpu_port);
519 of_node_put(cpu_ports);
520
521 if (ret < 0)
522 return ret;
523 }
524 #if 0
525 struct device_node *codec_ep = of_graph_get_remote_endpoint(cpu_ep);
526 struct asoc_simple_dai *codec_dai = simple_props_to_dai_codec(dai_props, i);
527 struct snd_soc_dai_link_component *codecs = asoc_link_to_codec(dai_link, i);
528
529 /* Factor to mclk, used in hw_params() */
530 graph_parse_mclk_fs(codec_ep, dai_props);
531
532 ret = asoc_simple_parse_dai(codec_ep, codecs, NULL);
533 if (ret < 0)
534 goto err;
535
536 ret = asoc_simple_parse_tdm(codec_ep, codec_dai);
537 if (ret < 0)
538 goto err;
539
540 ret = asoc_simple_parse_clk(dev, codec_ep, codec_dai, codecs);
541 if (ret < 0)
542 goto err;
543
544 ret = asoc_simple_set_dailink_name(dev, dai_link,
545 "%s-%s",
546 cpus->dai_name,
547 codecs->dai_name);
548 if (ret < 0)
549 goto err;
550
551 #endif
552 return 0;
553 }
554
555 static int graph_link_dpcm(struct asoc_simple_priv *priv,
556 struct snd_soc_dai_link *dai_link,
557 struct simple_dai_props *dai_props,
558 struct device_node *link,
559 struct link_info *li)
560 {
561 struct device *dev = simple_priv_to_dev(priv);
562 struct device_node *rep = of_graph_get_remote_endpoint(port_to_endpoint(link));
563 struct device_node *rport = of_get_parent(rep);
564 struct device_node *rports = of_get_parent(rport);
565 struct asoc_simple_dai *dai;
566 struct snd_soc_dai_link_component *cpus = asoc_link_to_cpu(dai_link, 0);
567 struct snd_soc_dai_link_component *codecs = asoc_link_to_codec(dai_link, 0);
568 int ret;
569
570 if (asoc_graph_is_ports0(link)) {
571 int is_single_links = 0;
572
573 /*
574 * DSP {
575 * compatible = "audio-graph-card2-dsp";
576 *
577 * // Front-End
578 * ports@0 {
579 * => link: port(a)0 { endpoint { remote-endpoint = <&rep>; }; };
580 * ...
581 * };
582 * // Back-End
583 * ports(a)0 {
584 * ...
585 * };
586 * };
587 *
588 * CPU {
589 * rports: ports {
590 * rport: port(a)0 { rep: endpoint { ... }; };
591 * }
592 * }
593 */
594 /*
595 * setup CPU here, Codec is already set as dummy.
596 * see
597 * asoc_simple_init_priv()
598 */
599 dai = simple_props_to_dai_cpu(dai_props, 0);
600
601 dai_link->dynamic = 1;
602 dai_link->dpcm_merged_format = 1;
603
604 graph_parse_daifmt(rep, dai_link);
605
606 ret = asoc_simple_parse_dai(rep, cpus, &is_single_links);
607 if (ret)
608 goto err;
609
610 ret = asoc_simple_parse_clk(dev, rep, dai, cpus);
611 if (ret < 0)
612 goto err;
613
614 ret = asoc_simple_set_dailink_name(dev, dai_link,
615 "fe.%pOFP.%s",
616 cpus->of_node,
617 cpus->dai_name);
618 if (ret < 0)
619 goto err;
620
621 /* card->num_links includes Codec */
622 asoc_simple_canonicalize_cpu(dai_link, is_single_links);
> 623 asoc_simple_canonicalize_platform(dai_link);
624 } else {
625 struct snd_soc_codec_conf *cconf;
626
627 /*
628 * DSP {
629 * compatible = "audio-graph-card2-dsp";
630 *
631 * // Front-End
632 * ports(a)0 {
633 * ...
634 * };
635 * // Back-End
636 * ports(a)0 {
637 * => link: port(a)0 { endpoint { remote-endpoint = <&rep>; }; };
638 * ...
639 * };
640 * };
641 *
642 * Codec {
643 * rports: ports {
644 * rport: port(a)0 { rep: endpoint { ... }; };
645 * }
646 * }
647 */
648 /*
649 * setup Codec here, CPU is already set as dummy.
650 * see
651 * asoc_simple_init_priv()
652 */
653
654 /* BE settings */
655 dai_link->no_pcm = 1;
656 dai_link->be_hw_params_fixup = asoc_simple_be_hw_params_fixup;
657
658 dai = simple_props_to_dai_codec(dai_props, 0);
659 cconf = simple_props_to_codec_conf(dai_props, 0);
660
661 ret = asoc_simple_parse_dai(rep, codecs, NULL);
662 if (ret < 0)
663 goto err;
664
665 ret = asoc_simple_parse_clk(dev, rep, dai, codecs);
666 if (ret < 0)
667 goto err;
668
669 ret = asoc_simple_set_dailink_name(dev, dai_link,
670 "be.%pOFP.%s",
671 codecs->of_node,
672 codecs->dai_name);
673 if (ret < 0)
674 goto err;
675
676 /* check "prefix" from top node */
677 snd_soc_of_parse_node_prefix(rports, cconf, codecs->of_node, "prefix");
678 snd_soc_of_parse_node_prefix(rport, cconf, codecs->of_node, "prefix");
679 }
680
681 graph_parse_convert(dev, rep, &dai_props->adata);
682 graph_parse_mclk_fs(rep, dai_props);
683
684 ret = asoc_simple_parse_tdm(rep, dai);
685 if (ret)
686 goto err;
687
688 snd_soc_dai_link_set_capabilities(dai_link);
689 err:
690 of_node_put(rep);
691 of_node_put(rports);
692
693 return ret;
694 }
695
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 27600 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-12-15 15:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-15 15:31 [morimoto-linux:fw-cleanup-2020-12-15-v2 93/93] sound/soc/generic/audio-graph-card2.c:511:32: error: passing argument 1 of 'asoc_simple_canonicalize_cpu' from incompatible pointer type 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.