All of lore.kernel.org
 help / color / mirror / Atom feed
* [morimoto:sound-cleanup-2025-04-25 110/117] sound/soc/samsung/bells.c:68:3: error: a label can only be part of a statement and a declaration is not a statement
@ 2025-05-07  6:42 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-05-07  6:42 UTC (permalink / raw)
  To: Kuninori Morimoto; +Cc: oe-kbuild-all

tree:   https://github.com/morimoto/linux sound-cleanup-2025-04-25
head:   bcd2a7ee0c9370920de5da1ddb86cc7e2a6cda92
commit: 9a7c9456dadfed656475b96bc7270ca91474e2c6 [110/117] CONVERT: hoge
config: arm64-randconfig-001-20250501 (https://download.01.org/0day-ci/archive/20250507/202505071440.fFaM403K-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 9.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250507/202505071440.fFaM403K-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/202505071440.fFaM403K-lkp@intel.com/

All errors (new ones prefixed by >>):

   sound/soc/samsung/bells.c: In function 'bells_set_bias_level':
>> sound/soc/samsung/bells.c:68:3: error: a label can only be part of a statement and a declaration is not a statement
      68 |   struct snd_soc_dapm_context *dapm = snd_soc_component_to_dapm(component);
         |   ^~~~~~


vim +68 sound/soc/samsung/bells.c

    50	
    51	static int bells_set_bias_level(struct snd_soc_card *card,
    52					struct snd_soc_component *component,
    53					enum snd_soc_bias_level level)
    54	{
    55		struct snd_soc_pcm_runtime *rtd;
    56		struct snd_soc_dai *codec_dai;
    57		struct bells_drvdata *bells = card->drvdata;
    58		int ret;
    59	
    60		rtd = snd_soc_get_pcm_runtime(card, &card->dai_link[DAI_DSP_CODEC]);
    61		codec_dai = snd_soc_rtd_to_codec(rtd, 0);
    62	
    63		if (component != codec_dai->component)
    64			return 0;
    65	
    66		switch (level) {
    67		case SND_SOC_BIAS_PREPARE:
  > 68			struct snd_soc_dapm_context *dapm = snd_soc_component_to_dapm(component);
    69	
    70			if (snd_soc_dapm_get_bias_level(dapm) != SND_SOC_BIAS_STANDBY)
    71				break;
    72	
    73			ret = snd_soc_component_set_pll(component, WM5102_FLL1,
    74						    ARIZONA_FLL_SRC_MCLK1,
    75						    MCLK_RATE,
    76						    bells->sysclk_rate);
    77			if (ret < 0)
    78				pr_err("Failed to start FLL: %d\n", ret);
    79	
    80			if (bells->asyncclk_rate) {
    81				ret = snd_soc_component_set_pll(component, WM5102_FLL2,
    82							    ARIZONA_FLL_SRC_AIF2BCLK,
    83							    BCLK2_RATE,
    84							    bells->asyncclk_rate);
    85				if (ret < 0)
    86					pr_err("Failed to start FLL: %d\n", ret);
    87			}
    88			break;
    89	
    90		default:
    91			break;
    92		}
    93	
    94		return 0;
    95	}
    96	

-- 
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:[~2025-05-07  6:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-07  6:42 [morimoto:sound-cleanup-2025-04-25 110/117] sound/soc/samsung/bells.c:68:3: error: a label can only be part of a statement and a declaration is not a statement 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.