[alsa-devel] [asoc:topic/stac9766 1/1] sound/soc/codecs/stac9766.c:281:9: error: implicit declaration of function 'snd_soc_new_ac97_component'; did you mean 'snd_soc_new_ac97_codec'?

kbuild test robot fengguang.wu at intel.com
Mon Feb 12 15:36:57 CET 2018


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git topic/stac9766
head:   033bb535d0db54c7ae14f0dec14177cc424414a5
commit: 033bb535d0db54c7ae14f0dec14177cc424414a5 [1/1] ASoC: stac9766: replace codec to component
config: i386-allmodconfig (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
        git checkout 033bb535d0db54c7ae14f0dec14177cc424414a5
        # save the attached .config to linux build tree
        make ARCH=i386 

All error/warnings (new ones prefixed by >>):

   sound/soc/codecs/stac9766.c: In function 'stac9766_component_probe':
>> sound/soc/codecs/stac9766.c:281:9: error: implicit declaration of function 'snd_soc_new_ac97_component'; did you mean 'snd_soc_new_ac97_codec'? [-Werror=implicit-function-declaration]
     ac97 = snd_soc_new_ac97_component(component, STAC9766_VENDOR_ID,
            ^~~~~~~~~~~~~~~~~~~~~~~~~~
            snd_soc_new_ac97_codec
>> sound/soc/codecs/stac9766.c:281:7: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
     ac97 = snd_soc_new_ac97_component(component, STAC9766_VENDOR_ID,
          ^
>> sound/soc/codecs/stac9766.c:297:2: error: implicit declaration of function 'snd_soc_free_ac97_component'; did you mean 'snd_soc_free_ac97_codec'? [-Werror=implicit-function-declaration]
     snd_soc_free_ac97_component(ac97);
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
     snd_soc_free_ac97_codec
   cc1: some warnings being treated as errors

vim +281 sound/soc/codecs/stac9766.c

   274	
   275	static int stac9766_component_probe(struct snd_soc_component *component)
   276	{
   277		struct snd_ac97 *ac97;
   278		struct regmap *regmap;
   279		int ret;
   280	
 > 281		ac97 = snd_soc_new_ac97_component(component, STAC9766_VENDOR_ID,
   282				STAC9766_VENDOR_ID_MASK);
   283		if (IS_ERR(ac97))
   284			return PTR_ERR(ac97);
   285	
   286		regmap = regmap_init_ac97(ac97, &stac9766_regmap_config);
   287		if (IS_ERR(regmap)) {
   288			ret = PTR_ERR(regmap);
   289			goto err_free_ac97;
   290		}
   291	
   292		snd_soc_component_init_regmap(component, regmap);
   293		snd_soc_component_set_drvdata(component, ac97);
   294	
   295		return 0;
   296	err_free_ac97:
 > 297		snd_soc_free_ac97_component(ac97);
   298		return ret;
   299	}
   300	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 63077 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20180212/4dbf7d51/attachment-0001.bin>


More information about the Alsa-devel mailing list