tree: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git topic/wm9712 head: 164c976a9493991ebe7e838931ff895e6e04d7c2 commit: 164c976a9493991ebe7e838931ff895e6e04d7c2 [1/1] ASoC: wm9712: replace codec to component config: sparc64-allyesconfig (attached as .config) compiler: sparc64-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout 164c976a9493991ebe7e838931ff895e6e04d7c2 # save the attached .config to linux build tree make.cross ARCH=sparc64
All error/warnings (new ones prefixed by >>):
sound/soc//codecs/wm9712.c: In function 'wm9712_soc_probe':
sound/soc//codecs/wm9712.c:648:18: error: implicit declaration of function 'snd_soc_new_ac97_component'; did you mean 'snd_soc_new_ac97_codec'? [-Werror=implicit-function-declaration]
wm9712->ac97 = snd_soc_new_ac97_component(component, WM9712_VENDOR_ID, ^~~~~~~~~~~~~~~~~~~~~~~~~~ snd_soc_new_ac97_codec
sound/soc//codecs/wm9712.c:648:16: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
wm9712->ac97 = snd_soc_new_ac97_component(component, WM9712_VENDOR_ID, ^
sound/soc//codecs/wm9712.c:659: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(wm9712->ac97); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ snd_soc_free_ac97_codec cc1: some warnings being treated as errors
vim +648 sound/soc//codecs/wm9712.c
636 637 static int wm9712_soc_probe(struct snd_soc_component *component) 638 { 639 struct wm9712_priv *wm9712 = snd_soc_component_get_drvdata(component); 640 struct regmap *regmap; 641 int ret; 642 643 if (wm9712->mfd_pdata) { 644 wm9712->ac97 = wm9712->mfd_pdata->ac97; 645 regmap = wm9712->mfd_pdata->regmap; 646 } else { 647 #ifdef CONFIG_SND_SOC_AC97_BUS
648 wm9712->ac97 = snd_soc_new_ac97_component(component, WM9712_VENDOR_ID,
649 WM9712_VENDOR_ID_MASK); 650 if (IS_ERR(wm9712->ac97)) { 651 ret = PTR_ERR(wm9712->ac97); 652 dev_err(component->dev, 653 "Failed to register AC97 codec: %d\n", ret); 654 return ret; 655 } 656 657 regmap = regmap_init_ac97(wm9712->ac97, &wm9712_regmap_config); 658 if (IS_ERR(regmap)) {
659 snd_soc_free_ac97_component(wm9712->ac97);
660 return PTR_ERR(regmap); 661 } 662 #endif 663 } 664 665 snd_soc_component_init_regmap(component, regmap); 666 667 /* set alc mux to none */ 668 snd_soc_component_update_bits(component, AC97_VIDEO, 0x3000, 0x3000); 669 670 return 0; 671 } 672
--- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation