* [morimoto:sound-cleanup-2026-07-01-3 18/302] sound/soc/generic/simple-card.c:676:3: error: cannot jump from this goto statement to its label
@ 2026-07-02 15:25 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-07-02 15:25 UTC (permalink / raw)
To: Kuninori Morimoto; +Cc: llvm, oe-kbuild-all
Hi Kuninori,
FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.
tree: https://github.com/morimoto/linux sound-cleanup-2026-07-01-3
head: 9f2eeab90c3fd87a2e2ea2b1be8d3e7848523d90
commit: 7a1dd19f0560d8a14f45577df018cf298d4ed84b [18/302] ASoC: simple-card: merge extra method into simple_parse_of()
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20260702/202607022329.TsqIGy7U-lkp@intel.com/config)
compiler: clang version 22.1.3 (https://github.com/llvm/llvm-project e9846648fd6183ee6d8cbdb4502213fcf902a211)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260702/202607022329.TsqIGy7U-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/202607022329.TsqIGy7U-lkp@intel.com/
All errors (new ones prefixed by >>):
>> sound/soc/generic/simple-card.c:676:3: error: cannot jump from this goto statement to its label
676 | goto end;
| ^
sound/soc/generic/simple-card.c:679:20: note: jump bypasses initialization of variable with __attribute__((cleanup))
679 | struct link_info *li __free(kfree) = kzalloc_obj(*li);
| ^
1 error generated.
vim +676 sound/soc/generic/simple-card.c
668
669 static int simple_parse_of(struct simple_util_priv *priv)
670 {
671 struct snd_soc_card *card = simple_priv_to_card(priv);
672 struct device *dev = card->dev;
673 int ret = -EINVAL;
674
675 if (!dev)
> 676 goto end;
677
678 ret = -ENOMEM;
679 struct link_info *li __free(kfree) = kzalloc_obj(*li);
680 if (!li)
681 goto end;
682
683 ret = simple_get_dais_count(priv, li);
684 if (ret < 0)
685 goto end;
686
687 ret = -EINVAL;
688 if (!li->link)
689 goto end;
690
691 ret = simple_util_init_priv(priv, li);
692 if (ret < 0)
693 goto end;
694
695 ret = simple_util_parse_widgets(card, PREFIX);
696 if (ret < 0)
697 goto end;
698
699 ret = simple_util_parse_routing(card, PREFIX);
700 if (ret < 0)
701 goto end;
702
703 ret = simple_util_parse_pin_switches(card, PREFIX);
704 if (ret < 0)
705 goto end;
706
707 /* Single/Muti DAI link(s) & New style of DT node */
708 memset(li, 0, sizeof(*li));
709 ret = simple_for_each_link(priv, li,
710 simple_dai_link_of,
711 simple_dai_link_of_dpcm);
712 if (ret < 0)
713 goto err;
714
715 ret = simple_util_parse_card_name(priv, PREFIX);
716 if (ret < 0)
717 goto err;
718
719 ret = simple_populate_aux(priv);
720 if (ret < 0)
721 goto err;
722
723 ret = snd_soc_of_parse_aux_devs(card, PREFIX "aux-devs");
724 if (ret < 0)
725 goto err;
726
727 snd_soc_card_set_drvdata(card, priv);
728
729 simple_util_debug_info(priv);
730
731 ret = devm_snd_soc_register_card(dev, card);
732 err:
733 if (ret < 0) {
734 simple_util_clean_reference(card);
735 return dev_err_probe(dev, ret, "parse error\n");
736 }
737 end:
738 return simple_ret(priv, ret);
739 }
740
--
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:[~2026-07-02 15:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-02 15:25 [morimoto:sound-cleanup-2026-07-01-3 18/302] sound/soc/generic/simple-card.c:676:3: error: cannot jump from this goto statement to its label kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox