[alsa-devel] [PATCH 08/10] ASoC: img: Add driver for SPDIF input controller

kbuild test robot lkp at intel.com
Wed Sep 30 17:53:30 CEST 2015


Hi Damien.Horsley,

[auto build test results on v4.3-rc3 -- if it's inappropriate base, please ignore]

reproduce:
  # apt-get install sparse
  make ARCH=x86_64 allmodconfig
  make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by >>)

>> sound/soc/img/img-spdif-in.c:650:16: sparse: incorrect type in assignment (different base types)
   sound/soc/img/img-spdif-in.c:650:16:    expected unsigned int [unsigned] format
   sound/soc/img/img-spdif-in.c:650:16:    got restricted snd_pcm_format_t
>> sound/soc/img/img-spdif-in.c:652:23: sparse: restricted snd_pcm_format_t degrades to integer

vim +650 sound/soc/img/img-spdif-in.c

   644	{
   645		struct img_spdif_in *spdif = snd_soc_dai_get_drvdata(dai);
   646		unsigned int rate, channels, format;
   647	
   648		rate = params_rate(params);
   649		channels = params_channels(params);
 > 650		format = params_format(params);
   651	
 > 652		if (format != SNDRV_PCM_FORMAT_S32_LE)
   653			return -EINVAL;
   654	
   655		if (channels != 2)

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation


More information about the Alsa-devel mailing list