* [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
@ 2025-01-30 20:47 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-01-30 20:47 UTC (permalink / raw)
To: Kuninori Morimoto; +Cc: llvm, oe-kbuild-all
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-01-30 20:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-30 20:47 [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 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