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: openrisc-allmodconfig (attached as .config) compiler: or1k-linux-gcc (GCC) 6.0.0 20160327 (experimental) 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=openrisc
All error/warnings (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' [-Werror=implicit-function-declaration]
wm9713->ac97 = snd_soc_new_ac97_component(component, WM9713_VENDOR_ID, ^~~~~~~~~~~~~~~~~~~~~~~~~~
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' [-Werror=implicit-function-declaration]
snd_soc_free_ac97_component(wm9713->ac97); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors
vim +/snd_soc_new_ac97_component +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