All of lore.kernel.org
 help / color / mirror / Atom feed
* [asoc:topic/wm9713 1/1] sound/soc/codecs/wm9713.c:1219:18: error: implicit declaration of function 'snd_soc_new_ac97_component'; did you mean 'snd_soc_new_ac97_codec'?
@ 2018-02-12 22:33 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2018-02-12 22:33 UTC (permalink / raw)
  To: Kuninori Morimoto; +Cc: alsa-devel, Mark Brown, kbuild-all

[-- Attachment #1: Type: text/plain, Size: 2900 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git topic/wm9713
head:   807cef2d327a5148d456d9c4966bfb9b2785ffc8
commit: 807cef2d327a5148d456d9c4966bfb9b2785ffc8 [1/1] ASoC: wm9713: replace codec to component
config: cris-allmodconfig (attached as .config)
compiler: cris-linux-gcc (GCC) 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 807cef2d327a5148d456d9c4966bfb9b2785ffc8
        # save the attached .config to linux build tree
        make.cross ARCH=cris 

All errors (new ones prefixed by >>):

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

vim +1219 sound/soc/codecs/wm9713.c

  1208	
  1209	static int wm9713_soc_probe(struct snd_soc_component *component)
  1210	{
  1211		struct wm9713_priv *wm9713 = snd_soc_component_get_drvdata(component);
  1212		struct regmap *regmap = NULL;
  1213	
  1214		if (wm9713->mfd_pdata) {
  1215			wm9713->ac97 = wm9713->mfd_pdata->ac97;
  1216			regmap = wm9713->mfd_pdata->regmap;
  1217		} else {
  1218	#ifdef CONFIG_SND_SOC_AC97_BUS
> 1219			wm9713->ac97 = snd_soc_new_ac97_component(component, WM9713_VENDOR_ID,
  1220							      WM9713_VENDOR_ID_MASK);
  1221			if (IS_ERR(wm9713->ac97))
  1222				return PTR_ERR(wm9713->ac97);
  1223			regmap = regmap_init_ac97(wm9713->ac97, &wm9713_regmap_config);
  1224			if (IS_ERR(regmap)) {
> 1225				snd_soc_free_ac97_component(wm9713->ac97);
  1226				return PTR_ERR(regmap);
  1227			}
  1228	#endif
  1229		}
  1230	
  1231		snd_soc_component_init_regmap(component, regmap);
  1232	
  1233		/* unmute the adc - move to kcontrol */
  1234		snd_soc_component_update_bits(component, AC97_CD, 0x7fff, 0x0000);
  1235	
  1236		return 0;
  1237	}
  1238	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 41224 bytes --]

[-- Attachment #3: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-02-12 22:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-12 22:33 [asoc:topic/wm9713 1/1] sound/soc/codecs/wm9713.c:1219:18: error: implicit declaration of function 'snd_soc_new_ac97_component'; did you mean 'snd_soc_new_ac97_codec'? kbuild test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.