[alsa-devel] [asoc:for-5.5 160/172] sound/soc/codecs/rt5677-spi.c:148:33: sparse: sparse: Using plain integer as NULL pointer

kbuild test robot lkp at intel.com
Thu Oct 24 03:07:33 CEST 2019


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.5
head:   175fc928198236037174e5c5c066fe3c4691903e
commit: a0e0d135427cf699fe2dee77da0924e0b47f3170 [160/172] ASoC: rt5677: Add a PCM device for streaming hotword via SPI
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.1-dirty
        git checkout a0e0d135427cf699fe2dee77da0924e0b47f3170
        make ARCH=x86_64 allmodconfig
        make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp at intel.com>


sparse warnings: (new ones prefixed by >>)

>> sound/soc/codecs/rt5677-spi.c:148:33: sparse: sparse: Using plain integer as NULL pointer
>> sound/soc/codecs/rt5677-spi.c:365:13: sparse: sparse: symbol 'rt5677_spi_pcm_page' was not declared. Should it be static?

vim +148 sound/soc/codecs/rt5677-spi.c

   139	
   140	static int rt5677_spi_hw_free(
   141			struct snd_soc_component *component,
   142			struct snd_pcm_substream *substream)
   143	{
   144		struct rt5677_dsp *rt5677_dsp =
   145				snd_soc_component_get_drvdata(component);
   146	
   147		mutex_lock(&rt5677_dsp->dma_lock);
 > 148		rt5677_dsp->substream = 0;
   149		mutex_unlock(&rt5677_dsp->dma_lock);
   150	
   151		return snd_pcm_lib_free_vmalloc_buffer(substream);
   152	}
   153	

---
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