From: kernel test robot <lkp@intel.com>
To: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [morimoto:sound-cleanup-2026-07-07 158/300] sound/soc/generic/audio-graph-card2.c:1310:3: error: cannot jump from this goto statement to its label
Date: Wed, 08 Jul 2026 15:08:54 +0800 [thread overview]
Message-ID: <202607081555.uDHLS6wN-lkp@intel.com> (raw)
tree: https://github.com/morimoto/linux sound-cleanup-2026-07-07
head: 53881e04e4c2435124d288fa73fd6b94994f667d
commit: 8f3b76210b0666f7368950bdb7f7ef2a238c365b [158/300] ASoC: generic: use snd_soc_card_register()
config: arm64-randconfig-r071-20260708 (https://download.01.org/0day-ci/archive/20260708/202607081555.uDHLS6wN-lkp@intel.com/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project 0a2fb2a2269da0e2a3e230beb6cad39ca314db33)
smatch: v0.5.0-9185-gbcc58b9c
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260708/202607081555.uDHLS6wN-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/202607081555.uDHLS6wN-lkp@intel.com/
All errors (new ones prefixed by >>):
>> 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 +1310 sound/soc/generic/audio-graph-card2.c
1301
1302 int audio_graph2_parse_of(struct simple_util_priv *priv, struct graph2_custom_hooks *hooks)
1303 {
1304 struct snd_soc_card_driver *card_driver = simple_priv_to_card_driver(priv);
1305 struct device *dev = simple_priv_to_dev(priv);
1306 struct snd_soc_card *card;
1307 int ret = -EINVAL;
1308
1309 if (!dev)
> 1310 goto end;
1311
1312 ret = -EINVAL;
1313 struct link_info *li __free(kfree) = kzalloc_obj(*li);
1314 if (!li)
1315 goto end;
1316
1317 if ((hooks) && (hooks)->hook_pre) {
1318 ret = (hooks)->hook_pre(priv);
1319 if (ret < 0)
1320 goto end;
1321 }
1322
1323 ret = graph_for_each_link(priv, hooks, li, graph_count);
1324 if (!li->link)
1325 ret = -EINVAL;
1326 if (ret < 0)
1327 goto end;
1328
1329 ret = simple_util_init_priv(priv, li);
1330 if (ret < 0)
1331 goto end;
1332
1333 priv->pa_gpio = devm_gpiod_get_optional(dev, "pa", GPIOD_OUT_LOW);
1334 if (IS_ERR(priv->pa_gpio)) {
1335 ret = PTR_ERR(priv->pa_gpio);
1336 dev_err(dev, "failed to get amplifier gpio: %d\n", ret);
1337 goto end;
1338 }
1339
1340 ret = simple_util_parse_widgets(priv, NULL);
1341 if (ret < 0)
1342 goto end;
1343
1344 ret = simple_util_parse_routing(priv, NULL);
1345 if (ret < 0)
1346 goto end;
1347
1348 ret = simple_util_parse_card_name(priv, NULL);
1349 if (ret < 0)
1350 goto err;
1351
1352 ret = simple_util_parse_aux_devs(priv, NULL);
1353 if (ret < 0)
1354 goto err;
1355
1356 memset(li, 0, sizeof(*li));
1357 ret = graph_for_each_link(priv, hooks, li, graph_link);
1358 if (ret < 0)
1359 goto err;
1360
1361 if ((hooks) && (hooks)->hook_post) {
1362 ret = (hooks)->hook_post(priv);
1363 if (ret < 0)
1364 goto err;
1365 }
1366
1367 simple_util_debug_info(priv);
1368
1369 card = devm_snd_soc_card_register(dev, card_driver, priv);
1370 if (!card)
1371 ret = -EINVAL;
1372 err:
1373 if (ret < 0) {
1374 simple_util_clean_reference(priv);
1375 return dev_err_probe(dev, ret, "parse error\n");
1376 }
1377 end:
1378 return graph_ret(priv, ret);
1379 }
1380 EXPORT_SYMBOL_GPL(audio_graph2_parse_of);
1381
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-07-08 7:10 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=202607081555.uDHLS6wN-lkp@intel.com \
--to=lkp@intel.com \
--cc=kuninori.morimoto.gx@renesas.com \
--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.