Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [morimoto:sound-cleanup-2026-07-01-3 160/302] sound/soc/generic/audio-graph-card.c:559:3: error: cannot jump from this goto statement to its label
@ 2026-07-03  4:56 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-07-03  4:56 UTC (permalink / raw)
  To: Kuninori Morimoto; +Cc: llvm, oe-kbuild-all

tree:   https://github.com/morimoto/linux sound-cleanup-2026-07-01-3
head:   9f2eeab90c3fd87a2e2ea2b1be8d3e7848523d90
commit: 8b99b2ac38ff86cff7dab23af408b740468399c5 [160/302] ASoC: generic: use snd_soc_card_register()
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20260703/202607031209.0R9dj35T-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/20260703/202607031209.0R9dj35T-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/202607031209.0R9dj35T-lkp@intel.com/

All errors (new ones prefixed by >>):

>> sound/soc/generic/audio-graph-card.c:559:3: error: cannot jump from this goto statement to its label
     559 |                 goto end;
         |                 ^
   sound/soc/generic/audio-graph-card.c:562:20: note: jump bypasses initialization of variable with __attribute__((cleanup))
     562 |         struct link_info *li __free(kfree) = kzalloc_obj(*li);
         |                           ^
   1 error generated.
--
>> sound/soc/generic/audio-graph-card2.c:1310:3: error: cannot jump from this goto statement to its label
    1310 |                 goto end;
         |                 ^
   sound/soc/generic/audio-graph-card2.c:1313:20: note: jump bypasses initialization of variable with __attribute__((cleanup))
    1313 |         struct link_info *li __free(kfree) = kzalloc_obj(*li);
         |                           ^
   1 error generated.


vim +559 sound/soc/generic/audio-graph-card.c

   550	
   551	int audio_graph_parse_of(struct simple_util_priv *priv)
   552	{
   553		struct snd_soc_card_driver *card_driver = simple_priv_to_card_driver(priv);
   554		struct device *dev = simple_priv_to_dev(priv);
   555		struct snd_soc_card *card;
   556		int ret = -EINVAL;
   557	
   558		if (!dev)
 > 559			goto end;
   560	
   561		ret = -ENOMEM;
   562		struct link_info *li __free(kfree) = kzalloc_obj(*li);
   563		if (!li)
   564			goto end;
   565	
   566		ret = graph_get_dais_count(priv, li);
   567		if (ret < 0)
   568			goto end;
   569	
   570		ret = -EINVAL;
   571		if (!li->link)
   572			goto end;
   573	
   574		ret = simple_util_init_priv(priv, li);
   575		if (ret < 0)
   576			goto end;
   577	
   578		priv->pa_gpio = devm_gpiod_get_optional(dev, "pa", GPIOD_OUT_LOW);
   579		if (IS_ERR(priv->pa_gpio)) {
   580			ret = PTR_ERR(priv->pa_gpio);
   581			dev_err(dev, "failed to get amplifier gpio: %d\n", ret);
   582			goto end;
   583		}
   584	
   585		ret = simple_util_parse_widgets(priv, NULL);
   586		if (ret < 0)
   587			goto end;
   588	
   589		ret = simple_util_parse_routing(priv, NULL);
   590		if (ret < 0)
   591			goto end;
   592	
   593		ret = simple_util_parse_card_name(priv, NULL);
   594		if (ret < 0)
   595			goto err;
   596	
   597		memset(li, 0, sizeof(*li));
   598		ret = graph_for_each_link(priv, li,
   599					  graph_dai_link_of,
   600					  graph_dai_link_of_dpcm);
   601		if (ret < 0)
   602			goto err;
   603	
   604		simple_util_debug_info(priv);
   605	
   606		card = devm_snd_soc_card_register(dev, card_driver, priv);
   607		if (!card)
   608			ret = -EINVAL;
   609	err:
   610		if (ret < 0) {
   611			simple_util_clean_reference(priv);
   612			return dev_err_probe(dev, ret, "parse error\n");
   613		}
   614	end:
   615		return graph_ret(priv, ret);
   616	}
   617	EXPORT_SYMBOL_GPL(audio_graph_parse_of);
   618	

--
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-03  4:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-03  4:56 [morimoto:sound-cleanup-2026-07-01-3 160/302] sound/soc/generic/audio-graph-card.c:559: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