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-msiof-2025-01-30 2/2] sound/soc/renesas/rcar/msiof.c:356:2: warning: label at end of compound statement is a C23 extension
Date: Fri, 31 Jan 2025 04:47:47 +0800 [thread overview]
Message-ID: <202501310440.yBsUyEuq-lkp@intel.com> (raw)
tree: https://github.com/morimoto/linux sound-msiof-2025-01-30
head: d9a82c93cca8d2f5381062d77bbab0736dd6dc5b
commit: d9a82c93cca8d2f5381062d77bbab0736dd6dc5b [2/2] msiof
config: s390-allmodconfig (https://download.01.org/0day-ci/archive/20250131/202501310440.yBsUyEuq-lkp@intel.com/config)
compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250131/202501310440.yBsUyEuq-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/202501310440.yBsUyEuq-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from sound/soc/renesas/rcar/msiof.c:19:
In file included from include/linux/module.h:19:
In file included from include/linux/elf.h:6:
In file included from arch/s390/include/asm/elf.h:181:
In file included from arch/s390/include/asm/mmu_context.h:11:
In file included from arch/s390/include/asm/pgalloc.h:18:
In file included from include/linux/mm.h:2224:
include/linux/vmstat.h:504:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
504 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
505 | item];
| ~~~~
include/linux/vmstat.h:511:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
511 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
512 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
include/linux/vmstat.h:524:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
524 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
525 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
>> sound/soc/renesas/rcar/msiof.c:356:2: warning: label at end of compound statement is a C23 extension [-Wc23-extensions]
356 | }
| ^
4 warnings generated.
vim +356 sound/soc/renesas/rcar/msiof.c
332
333 static int msiof_dai_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
334 {
335 struct msiof_priv *priv = snd_soc_dai_get_drvdata(dai);
336
337 switch (fmt & SND_SOC_DAIFMT_CLOCK_PROVIDER_MASK) {
338 case SND_SOC_DAIFMT_BP_FP:
339 priv->is_provider = 1;
340 break;
341 case SND_SOC_DAIFMT_BC_FC:
342 priv->is_provider = 0;
343 break;
344 default:
345 return -EINVAL;
346 }
347
348 switch (fmt & SND_SOC_DAIFMT_INV_MASK) {
349 case SND_SOC_DAIFMT_NB_IF:
350 case SND_SOC_DAIFMT_IB_NF:
351 case SND_SOC_DAIFMT_IB_IF:
352 return -EINVAL;
353 /* it supports NB_NF only */
354 case SND_SOC_DAIFMT_NB_NF:
355 default:
> 356 }
357
358 switch (fmt & SND_SOC_DAIFMT_FORMAT_MASK) {
359 case SND_SOC_DAIFMT_I2S:
360 priv->need_delay = 1;
361 break;
362 case SND_SOC_DAIFMT_LEFT_J:
363 priv->need_delay = 0;
364 break;
365 default:
366 return -EINVAL;
367 }
368
369 return 0;
370 }
371
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-01-30 20:47 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=202501310440.yBsUyEuq-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