[alsa-devel] [asoc:topic/wm9705 1/1] sound/soc/codecs/wm9705.c:330:18: 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:19:57 CET 2018


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

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

   sound/soc/codecs/wm9705.c: In function 'wm9705_soc_probe':
>> sound/soc/codecs/wm9705.c:330:18: error: implicit declaration of function 'snd_soc_new_ac97_component'; did you mean 'snd_soc_new_ac97_codec'? [-Werror=implicit-function-declaration]
      wm9705->ac97 = snd_soc_new_ac97_component(component, WM9705_VENDOR_ID,
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~
                     snd_soc_new_ac97_codec
>> sound/soc/codecs/wm9705.c:330:16: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
      wm9705->ac97 = snd_soc_new_ac97_component(component, WM9705_VENDOR_ID,
                   ^
>> sound/soc/codecs/wm9705.c:339:4: 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(wm9705->ac97);
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~
       snd_soc_free_ac97_codec
   cc1: some warnings being treated as errors

vim +330 sound/soc/codecs/wm9705.c

   319	
   320	static int wm9705_soc_probe(struct snd_soc_component *component)
   321	{
   322		struct wm9705_priv *wm9705 = snd_soc_component_get_drvdata(component);
   323		struct regmap *regmap;
   324	
   325		if (wm9705->mfd_pdata) {
   326			wm9705->ac97 = wm9705->mfd_pdata->ac97;
   327			regmap = wm9705->mfd_pdata->regmap;
   328		} else {
   329	#ifdef CONFIG_SND_SOC_AC97_BUS
 > 330			wm9705->ac97 = snd_soc_new_ac97_component(component, WM9705_VENDOR_ID,
   331							      WM9705_VENDOR_ID_MASK);
   332			if (IS_ERR(wm9705->ac97)) {
   333				dev_err(component->dev, "Failed to register AC97 codec\n");
   334				return PTR_ERR(wm9705->ac97);
   335			}
   336	
   337			regmap = regmap_init_ac97(wm9705->ac97, &wm9705_regmap_config);
   338			if (IS_ERR(regmap)) {
 > 339				snd_soc_free_ac97_component(wm9705->ac97);
   340				return PTR_ERR(regmap);
   341			}
   342	#endif
   343		}
   344	
   345		snd_soc_component_set_drvdata(component, wm9705->ac97);
   346		snd_soc_component_init_regmap(component, regmap);
   347	
   348		return 0;
   349	}
   350	

---
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/d9a7f766/attachment-0001.bin>


More information about the Alsa-devel mailing list