All of lore.kernel.org
 help / color / mirror / Atom feed
* [morimoto:sound-cleanup-2026-11-13 351/351] sound/soc/soc-compress.c:294:1: error: duplicate label 'out'
@ 2026-11-20  5:31 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-11-20  5:31 UTC (permalink / raw)
  To: Kuninori Morimoto; +Cc: oe-kbuild-all

tree:   https://github.com/morimoto/linux sound-cleanup-2026-11-13
head:   437686bf7c08c92113908bda25c90a3a7761459c
commit: 431c6c3e838b47c7c7ff9927e38e9cb46521b08e [351/351] ASoC: soc-compress: use guard(pcm_mutex)
config: sh-allyesconfig (https://download.01.org/0day-ci/archive/20261120/202611201339.RBc3OaHu-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 16.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261120/202611201339.RBc3OaHu-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/202611201339.RBc3OaHu-lkp@intel.com/

All errors (new ones prefixed by >>):

   sound/soc/soc-compress.c: In function 'soc_compr_open_fe':
>> sound/soc/soc-compress.c:294:1: error: duplicate label 'out'
     294 | out:
         | ^~~
   sound/soc/soc-compress.c:290:9: note: previous definition of 'out' with type 'void'
     290 |         out:
         |         ^~~


vim +/out +294 sound/soc/soc-compress.c

   223	
   224	static int soc_compr_open_fe(struct snd_compr_stream *cstream)
   225	{
   226		struct snd_soc_pcm_runtime *fe = cstream->private_data;
   227		struct snd_soc_dai *cpu_dai = snd_soc_rtd_to_cpu(fe, 0);
   228		struct snd_soc_dpcm *dpcm;
   229		struct snd_soc_dapm_widget_list *list;
   230		int stream = cstream->direction; /* SND_COMPRESS_xxx is same as SNDRV_PCM_STREAM_xxx */
   231		int ret;
   232	
   233		snd_soc_card_mutex_lock(fe->card);
   234	
   235		ret = soc_compr_alloc_fe_runtime(fe, stream);
   236		if (ret < 0)
   237			goto be_err;
   238	
   239		ret = dpcm_path_get(fe, stream, &list);
   240		if (ret < 0)
   241			goto be_err;
   242	
   243		{
   244			/* avoid scoped_guard() to allow goto */
   245			guard(pcm_mutex)(fe->card);
   246	
   247			/* calculate valid and active FE <-> BE dpcms */
   248			dpcm_add_paths(fe, stream, &list);
   249	
   250			fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_FE;
   251	
   252			ret = dpcm_be_dai_startup(fe, stream);
   253			if (ret < 0) {
   254				/* clean up all links */
   255				for_each_dpcm_be(fe, stream, dpcm)
   256					dpcm->state = SND_SOC_DPCM_LINK_STATE_FREE;
   257	
   258				dpcm_be_disconnect(fe, stream);
   259				goto out;
   260			}
   261	
   262			ret = snd_soc_dai_compr_startup(cpu_dai, cstream);
   263			if (ret < 0)
   264				goto out;
   265	
   266			ret = snd_soc_compr_components_open(cstream);
   267			if (ret < 0)
   268				goto open_err;
   269	
   270			ret = snd_soc_link_compr_startup(cstream);
   271			if (ret < 0)
   272				goto machine_err;
   273	
   274			dpcm_clear_pending_state(fe, stream);
   275			dpcm_path_put(&list);
   276	
   277			fe->dpcm[stream].state = SND_SOC_DPCM_STATE_OPEN;
   278			fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_NO;
   279	
   280			snd_soc_runtime_stream_user_update(fe, stream, 1);
   281	
   282			/* success */
   283			goto out;
   284	
   285			/* error handling in guard() */
   286		machine_err:
   287			snd_soc_compr_components_free(cstream, 1);
   288		open_err:
   289			snd_soc_dai_compr_shutdown(cpu_dai, cstream, 1);
   290		out:
   291			dpcm_path_put(&list);
   292			goto be_err;
   293		}
 > 294	out:
   295		snd_soc_card_mutex_unlock(fe->card);
   296	
   297		return 0;
   298	
   299	be_err:
   300		soc_compr_free_fe_runtime(fe, stream);
   301		fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_NO;
   302		snd_soc_card_mutex_unlock(fe->card);
   303	
   304		return soc_compr_ret(fe, ret);
   305	}
   306	

-- 
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-11-20  5:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-20  5:31 [morimoto:sound-cleanup-2026-11-13 351/351] sound/soc/soc-compress.c:294:1: error: duplicate label 'out' 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.