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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]
  Powered by Linux