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-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
Date: Wed, 7 May 2025 14:42:52 +0800 [thread overview]
Message-ID: <202505071440.fFaM403K-lkp@intel.com> (raw)
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
reply other threads:[~2025-05-07 6:43 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=202505071440.fFaM403K-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.