All of lore.kernel.org
 help / color / mirror / Atom feed
* [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
@ 2026-07-08  7:08 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-07-08  7:08 UTC (permalink / raw)
  To: Kuninori Morimoto; +Cc: oe-kbuild-all

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-08  7:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-08  7:08 [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 kernel test robot

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.