All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [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
Date: Fri, 03 Jul 2026 12:56:31 +0800	[thread overview]
Message-ID: <202607031209.0R9dj35T-lkp@intel.com> (raw)

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

                 reply	other threads:[~2026-07-03  4:57 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=202607031209.0R9dj35T-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kuninori.morimoto.gx@renesas.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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.