tree:
https://github.com/plbossart/sound fix/more-dpcm-fixes
head: daf63cf6c66926660b7ec88f6e017d97b30fc4d2
commit: daf63cf6c66926660b7ec88f6e017d97b30fc4d2 [5/5] ASoC: soc-dai: set dai_link dpcm_
flags with a helper
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0
reproduce (this is a W=1 build):
git checkout daf63cf6c66926660b7ec88f6e017d97b30fc4d2
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
sound/soc/soc-dai.c: In function 'snd_soc_dai_link_set_capabilities':
> sound/soc/soc-dai.c:428:26: warning: 'supported[1]' is
used uninitialized in this function [-Wuninitialized]
428 |
dai_link->dpcm_capture = supported[SNDRV_PCM_STREAM_CAPTURE];
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +428 sound/soc/soc-dai.c
393
394 /*
395 * snd_soc_dai_link_set_capabilities() - set dai_link properties based on its DAIs
396 */
397 void snd_soc_dai_link_set_capabilities(struct snd_soc_dai_link *dai_link)
398 {
399 struct snd_soc_dai_link_component *cpu;
400 struct snd_soc_dai_link_component *codec;
401 struct snd_soc_dai *dai;
402 bool supported[SNDRV_PCM_STREAM_LAST];
403 int direction;
404 int i;
405
406 for_each_pcm_streams(direction) {
407 supported[direction] = true;
408
409 for_each_link_cpus(dai_link, i, cpu) {
410 dai = snd_soc_find_dai(cpu);
411 if (!dai || !snd_soc_dai_stream_valid(dai, direction)) {
412 supported[direction] = false;
413 break;
414 }
415 }
416 if (!supported[direction])
417 continue;
418 for_each_link_codecs(dai_link, i, codec) {
419 dai = snd_soc_find_dai(codec);
420 if (!dai || !snd_soc_dai_stream_valid(dai, direction)) {
421 supported[direction] = false;
422 break;
423 }
424 }
425 }
426
427 dai_link->dpcm_playback = supported[SNDRV_PCM_STREAM_PLAYBACK];
428 dai_link->dpcm_capture =
supported[SNDRV_PCM_STREAM_CAPTURE];
429 }
430 EXPORT_SYMBOL_GPL(snd_soc_dai_link_set_capabilities);
431
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org