tree:
https://github.com/morimoto/linux fw-cleanup-2021-01-14-v1
head: f4a51f1bc100f5010571f4473625f5f506940ba9
commit: f4a51f1bc100f5010571f4473625f5f506940ba9 [97/97] hoge
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
#
https://github.com/morimoto/linux/commit/f4a51f1bc100f5010571f4473625f5f5...
git remote add morimoto-linux
https://github.com/morimoto/linux
git fetch --no-tags morimoto-linux fw-cleanup-2021-01-14-v1
git checkout f4a51f1bc100f5010571f4473625f5f506940ba9
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
330 | * 上書きされてしまう
| ^
sound/soc/generic/audio-graph-card2.c:330:8: error: stray '\212' in program
330 | * 上書きされてしまう
| ^
sound/soc/generic/audio-graph-card2.c:330:9: error: stray '\346' in program
330 | * 上書きされてしまう
| ^
sound/soc/generic/audio-graph-card2.c:330:10: error: stray '\233' in program
330 | * 上書きされてしまう
| ^
sound/soc/generic/audio-graph-card2.c:330:11: error: stray '\270' in program
330 | * 上書きされてしまう
| ^
sound/soc/generic/audio-graph-card2.c:330:12: error: stray '\343' in program
330 | * 上書きされてしまう
| ^
sound/soc/generic/audio-graph-card2.c:330:13: error: stray '\201' in program
330 | * 上書きされてしまう
| ^
sound/soc/generic/audio-graph-card2.c:330:14: error: stray '\215' in program
330 | * 上書きされてしまう
| ^
sound/soc/generic/audio-graph-card2.c:330:15: error: stray '\343' in program
330 | * 上書きされてしまう
| ^
sound/soc/generic/audio-graph-card2.c:330:16: error: stray '\201' in program
330 | * 上書きされてしまう
| ^
sound/soc/generic/audio-graph-card2.c:330:17: error: stray '\225' in program
330 | * 上書きされてしまう
| ^
sound/soc/generic/audio-graph-card2.c:330:18: error: stray '\343' in program
330 | * 上書きされてしまう
| ^
sound/soc/generic/audio-graph-card2.c:330:19: error: stray '\202' in program
330 | * 上書きされてしまう
| ^
sound/soc/generic/audio-graph-card2.c:330:20: error: stray '\214' in program
330 | * 上書きされてしまう
| ^
sound/soc/generic/audio-graph-card2.c:330:21: error: stray '\343' in program
330 | * 上書きされてしまう
| ^
sound/soc/generic/audio-graph-card2.c:330:22: error: stray '\201' in program
330 | * 上書きされてしまう
| ^
sound/soc/generic/audio-graph-card2.c:330:23: error: stray '\246' in program
330 | * 上書きされてしまう
| ^
sound/soc/generic/audio-graph-card2.c:330:24: error: stray '\343' in program
330 | * 上書きされてしまう
| ^
sound/soc/generic/audio-graph-card2.c:330:25: error: stray '\201' in program
330 | * 上書きされてしまう
| ^
sound/soc/generic/audio-graph-card2.c:330:26: error: stray '\227' in program
330 | * 上書きされてしまう
| ^
sound/soc/generic/audio-graph-card2.c:330:27: error: stray '\343' in program
330 | * 上書きされてしまう
| ^
sound/soc/generic/audio-graph-card2.c:330:28: error: stray '\201' in program
330 | * 上書きされてしまう
| ^
sound/soc/generic/audio-graph-card2.c:330:29: error: stray '\276' in program
330 | * 上書きされてしまう
| ^
sound/soc/generic/audio-graph-card2.c:330:30: error: stray '\343' in program
330 | * 上書きされてしまう
| ^
sound/soc/generic/audio-graph-card2.c:330:31: error: stray '\201' in program
330 | * 上書きされてしまう
| ^
sound/soc/generic/audio-graph-card2.c:330:32: error: stray '\206' in program
330 | * 上書きされてしまう
| ^
sound/soc/generic/audio-graph-card2.c:335:3: error: implicit declaration of function
'__graph_parse_daifmt'; did you mean 'graph_parse_daifmt'?
[-Werror=implicit-function-declaration]
335 | __graph_parse_daifmt(ports, dai_link);
| ^~~~~~~~~~~~~~~~~~~~
| graph_parse_daifmt
sound/soc/generic/audio-graph-card2.c:322:15: warning: unused variable 'fmt'
[-Wunused-variable]
322 | unsigned int fmt;
| ^~~
sound/soc/generic/audio-graph-card2.c: In function 'graph_link_init':
sound/soc/generic/audio-graph-card2.c:416:17: warning: format '%lx' expects
argument of type 'long unsigned int', but argument 2 has type 'unsigned
int' [-Wformat=]
416 | printk("1----%lx\n", dai_link->dai_fmt);
| ~~^ ~~~~~~~~~~~~~~~~~
| | |
| | unsigned int
| long unsigned int
| %x
sound/soc/generic/audio-graph-card2.c:418:17: warning: format '%lx' expects
argument of type 'long unsigned int', but argument 2 has type 'unsigned
int' [-Wformat=]
418 | printk("2----%lx\n", dai_link->dai_fmt);
| ~~^ ~~~~~~~~~~~~~~~~~
| | |
| | unsigned int
| long unsigned int
| %x
sound/soc/generic/audio-graph-card2.c: In function 'asoc_graph2_link_dpcm':
> sound/soc/generic/audio-graph-card2.c:577:23: error: implicit
declaration of function 'snd_soc_dai_fmt_master_fliped'; did you mean
'snd_soc_daifmt_master_fliped'? [-Werror=implicit-function-declaration]
577 | dai_link->dai_fmt = snd_soc_dai_fmt_master_fliped(dai_link->dai_fmt);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| snd_soc_daifmt_master_fliped
sound/soc/generic/audio-graph-card2.c:578:18: warning: format '%lx' expects
argument of type 'long unsigned int', but argument 2 has type 'unsigned
int' [-Wformat=]
578 | printk("3----%lx\n", dai_link->dai_fmt);
| ~~^ ~~~~~~~~~~~~~~~~~
| | |
| | unsigned int
| long unsigned int
| %x
At top level:
sound/soc/generic/audio-graph-card2.c:301:13: warning: 'graph_daifmt_update'
defined but not used [-Wunused-function]
301 | static void graph_daifmt_update(struct snd_soc_dai_link *dai_link,
| ^~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +577 sound/soc/generic/audio-graph-card2.c
404
405 static int graph_link_init(struct asoc_simple_priv *priv,
406 struct device_node *link_ep,
407 struct device_node *target_ep,
408 struct link_info *li,
409 char *name)
410 {
411 struct device *dev = simple_priv_to_dev(priv);
412 struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link);
413
414 if (link_ep)
415 graph_parse_daifmt(link_ep, dai_link);
416 printk("1----%lx\n", dai_link->dai_fmt);
417 graph_parse_daifmt(target_ep, dai_link);
418 printk("2----%lx\n", dai_link->dai_fmt);
419
420 dai_link->init = graph_dai_init;
421 if (priv->ops)
422 dai_link->ops = priv->ops;
423 else
424 dai_link->ops = &graph_ops;
425
426 return asoc_simple_set_dailink_name(dev, dai_link, name);
427 }
428
429 int asoc_graph2_link_normal(struct asoc_simple_priv *priv,
430 struct device_node *lnk,
431 struct link_info *li)
432 {
433 struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link);
434 struct device_node *cpu_port = lnk;
435 struct device_node *cpu_ep = port_to_endpoint(cpu_port);
436 struct device_node *codec_ep = of_graph_get_remote_endpoint(cpu_ep);
437 struct snd_soc_dai_link_component *cpus = asoc_link_to_cpu(dai_link, 0);
438 struct snd_soc_dai_link_component *codecs = asoc_link_to_codec(dai_link, 0);
439 char dai_name[64];
440 int ret;
441
442 ret = graph_parse_node(priv, cpu_ep, li, 0, 1);
443 if (ret < 0)
444 goto err;
445
446 ret = graph_parse_node(priv, codec_ep, li, 0, 0);
447 if (ret < 0)
448 goto err;
449
450 sprintf(dai_name, "%s-%s", cpus->dai_name,
451 codecs->dai_name);
452
453 ret = graph_link_init(priv, NULL, cpu_ep, li, dai_name);
454 if (ret < 0)
455 goto err;
456
457 err:
458 of_node_put(cpu_ep);
459 of_node_put(codec_ep);
460
461 return ret;
462 }
463 EXPORT_SYMBOL_GPL(asoc_graph2_link_normal);
464
465 int asoc_graph2_link_dpcm(struct asoc_simple_priv *priv,
466 struct device_node *lnk,
467 struct link_info *li)
468 {
469 struct device *dev = simple_priv_to_dev(priv);
470 struct device_node *ep = port_to_endpoint(lnk);
471 struct device_node *rep = of_graph_get_remote_endpoint(ep);
472 struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link);
473 struct simple_dai_props *dai_props = simple_priv_to_props(priv, li->link);
474 char dai_name[64];
475 int ret;
476
477 if (asoc_graph_is_ports0(lnk)) {
478 struct snd_soc_dai_link_component *cpus = asoc_link_to_cpu(dai_link, 0);
479
480 /*
481 * DSP {
482 * compatible = "audio-graph-card2-dsp";
483 *
484 * // Front-End
485 * ports@0 {
486 * => lnk: port@0 { ep: endpoint { remote-endpoint = <&rep>; }; };
487 * ...
488 * };
489 * // Back-End
490 * ports@0 {
491 * ...
492 * };
493 * };
494 *
495 * CPU {
496 * rports: ports {
497 * rport: port@0 { rep: endpoint { ... }; };
498 * }
499 * }
500 */
501 /*
502 * setup CPU here, Codec is already set as dummy.
503 * see
504 * asoc_simple_init_priv()
505 */
506 dai_link->dynamic = 1;
507 dai_link->dpcm_merged_format = 1;
508
509 ret = graph_parse_node(priv, rep, li, 0, 1);
510 if (ret)
511 goto err;
512
513 sprintf(dai_name, "fe.%pOFP.%s",
514 cpus->of_node,
515 cpus->dai_name);
516 printk("------fe\n");
517 ret = graph_link_init(priv, ep, rep, li, dai_name);
518 if (ret < 0)
519 goto err;
520 } else {
521 struct device_node *rport = of_get_parent(rep);
522 struct device_node *rports = of_get_parent(rport);
523 struct snd_soc_dai_link_component *codecs = asoc_link_to_codec(dai_link, 0);
524 struct snd_soc_codec_conf *cconf = simple_props_to_codec_conf(dai_props, 0);
525
526 /*
527 * DSP {
528 * compatible = "audio-graph-card2-dsp";
529 *
530 * // Front-End
531 * ports@0 {
532 * ...
533 * };
534 * // Back-End
535 * ports@0 {
536 * => lnk: port@0 { ep: endpoint { remote-endpoint = <&rep>; }; };
537 * ...
538 * };
539 * };
540 *
541 * Codec {
542 * rports: ports {
543 * rport: port@0 { rep: endpoint { ... }; };
544 * }
545 * }
546 */
547 /*
548 * setup Codec here, CPU is already set as dummy.
549 * see
550 * asoc_simple_init_priv()
551 */
552
553 /* BE settings */
554 dai_link->no_pcm = 1;
555 dai_link->be_hw_params_fixup = asoc_simple_be_hw_params_fixup;
556
557 /* check "prefix" from top node */
558 snd_soc_of_parse_node_prefix(rports, cconf, codecs->of_node,
"prefix");
559 snd_soc_of_parse_node_prefix(rport, cconf, codecs->of_node,
"prefix");
560
561 of_node_put(rport);
562 of_node_put(rports);
563
564 ret = graph_parse_node(priv, rep, li, 0, 0);
565 if (ret < 0)
566 goto err;
567
568 sprintf(dai_name, "be.%pOFP.%s",
569 codecs->of_node,
570 codecs->dai_name);
571 printk("------be\n");
572 ret = graph_link_init(priv, ep, rep, li, dai_name);
573 if (ret < 0)
574 goto err;
575
576 /* We need to flip master, since It is CPU base dai_fmt */
577 dai_link->dai_fmt =
snd_soc_dai_fmt_master_fliped(dai_link->dai_fmt);
578 printk("3----%lx\n", dai_link->dai_fmt);
579 }
580
581 graph_parse_convert(dev, rep, &dai_props->adata);
582
583 snd_soc_dai_link_set_capabilities(dai_link);
584
585 err:
586 of_node_put(ep);
587 of_node_put(rep);
588
589 return ret;
590 }
591 EXPORT_SYMBOL_GPL(asoc_graph2_link_dpcm);
592
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org