Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [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
Date: Fri, 25 Apr 2025 19:10:32 +0800	[thread overview]
Message-ID: <202504251921.cHUerZLM-lkp@intel.com> (raw)

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

                 reply	other threads:[~2025-04-25 11:11 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=202504251921.cHUerZLM-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kuninori.morimoto.gx@renesas.com \
    --cc=llvm@lists.linux.dev \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox