Building the Linux kernel with Clang and LLVM
 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 18/302] sound/soc/generic/simple-card.c:676:3: error: cannot jump from this goto statement to its label
Date: Thu, 02 Jul 2026 23:25:12 +0800	[thread overview]
Message-ID: <202607022329.TsqIGy7U-lkp@intel.com> (raw)

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

                 reply	other threads:[~2026-07-02 15:25 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=202607022329.TsqIGy7U-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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox