Skip to contentSkip to conversation

ASoC: build failure if CONFIG_I2C=m && CONFIG_SPI=y && CONFIG_SND_SOC=y

linux-next Axel Lin 3 participants 3 messages Aug 23, 2011 – Aug 24, 2011

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

hi,
I got below build failure if CONFIG_I2C=m && CONFIG_SPI=y && CONFIG_SND_SOC=y

LD .tmp_vmlinux1
sound/built-in.o: In function `snd_soc_codec_set_cache_io':
last.c:(.text+0x1cb80): undefined reference to `regmap_init_i2c'
make: *** [.tmp_vmlinux1] Error 1

Regards,
Axel

#1 lore raw
Quoted 8 lines · On Tue, 23 Aug 2011 19:46:00 +0800 Axel Lin wrote:

hi,
I got below build failure if CONFIG_I2C=m && CONFIG_SPI=y && CONFIG_SND_SOC=y

LD .tmp_vmlinux1
sound/built-in.o: In function `snd_soc_codec_set_cache_io':
last.c:(.text+0x1cb80): undefined reference to `regmap_init_i2c'
make: *** [.tmp_vmlinux1] Error 1

I don't know if this is the same failure or just similar:

ERROR: "regmap_exit" [drivers/mfd/wm8400-core.ko] undefined!
ERROR: "regmap_bulk_read" [drivers/mfd/wm8400-core.ko] undefined!
ERROR: "regmap_read" [drivers/mfd/wm8400-core.ko] undefined!
ERROR: "regmap_init_i2c" [drivers/mfd/wm8400-core.ko] undefined!
ERROR: "regmap_raw_read" [drivers/mfd/wm8400-core.ko] undefined!
ERROR: "regmap_write" [drivers/mfd/wm8400-core.ko] undefined!

Maybe MFD_WM8400 needs to select REGMAP_I2C ?

---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***

#2 lore raw
Quoted 3 lines · Randy Dunlap

I don't know if this is the same failure or just similar:

ERROR: "regmap_exit" [drivers/mfd/wm8400-core.ko] undefined!

No, that's totally unrelated. Fixed now.