* [morimoto:sound-cleanup-2025-04-23 111/116] sound/soc/samsung/littlemill.c:32:3: warning: label followed by a declaration is a C23 extension
@ 2025-04-25 11:10 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-04-25 11:10 UTC (permalink / raw)
To: Kuninori Morimoto; +Cc: llvm, oe-kbuild-all
tree: https://github.com/morimoto/linux sound-cleanup-2025-04-23
head: 66104ef95f2f8e651b29bf32aaa483868492887e
commit: a3f4e8cf9db06f4768bb6a874cfe3c3378b4836c [111/116] hoge
config: s390-allmodconfig (https://download.01.org/0day-ci/archive/20250425/202504251921.cHUerZLM-lkp@intel.com/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250425/202504251921.cHUerZLM-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/202504251921.cHUerZLM-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> sound/soc/samsung/littlemill.c:32:3: warning: label followed by a declaration is a C23 extension [-Wc23-extensions]
32 | struct snd_soc_dapm_context *dapm = snd_soc_component_to_dapm(component);
| ^
1 warning generated.
--
>> sound/soc/samsung/bells.c:68:3: warning: label followed by a declaration is a C23 extension [-Wc23-extensions]
68 | struct snd_soc_dapm_context *dapm = snd_soc_component_to_dapm(component);
| ^
1 warning generated.
vim +32 sound/soc/samsung/littlemill.c
15
16 static int littlemill_set_bias_level(struct snd_soc_card *card,
17 struct snd_soc_component *component,
18 enum snd_soc_bias_level level)
19 {
20 struct snd_soc_pcm_runtime *rtd;
21 struct snd_soc_dai *aif1_dai;
22 int ret;
23
24 rtd = snd_soc_get_pcm_runtime(card, &card->dai_link[0]);
25 aif1_dai = snd_soc_rtd_to_codec(rtd, 0);
26
27 if (component != aif1_dai->component)
28 return 0;
29
30 switch (level) {
31 case SND_SOC_BIAS_PREPARE:
> 32 struct snd_soc_dapm_context *dapm = snd_soc_component_to_dapm(component);
33
34 /*
35 * If we've not already clocked things via hw_params()
36 * then do so now, otherwise these are noops.
37 */
38 if (snd_soc_dapm_get_bias_level(dapm) == SND_SOC_BIAS_STANDBY) {
39 ret = snd_soc_dai_set_pll(aif1_dai, WM8994_FLL1,
40 WM8994_FLL_SRC_MCLK2, 32768,
41 sample_rate * 512);
42 if (ret < 0) {
43 pr_err("Failed to start FLL: %d\n", ret);
44 return ret;
45 }
46
47 ret = snd_soc_dai_set_sysclk(aif1_dai,
48 WM8994_SYSCLK_FLL1,
49 sample_rate * 512,
50 SND_SOC_CLOCK_IN);
51 if (ret < 0) {
52 pr_err("Failed to set SYSCLK: %d\n", ret);
53 return ret;
54 }
55 }
56 break;
57
58 default:
59 break;
60 }
61
62 return 0;
63 }
64
--
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-04-25 11:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-25 11:10 [morimoto:sound-cleanup-2025-04-23 111/116] sound/soc/samsung/littlemill.c:32:3: warning: label followed by a declaration is a C23 extension kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox