LD .tmp_vmlinux1
sound/built-in.o: In function `gpio_switch_probe':
last.c:(.text+0x31084): undefined reference to `switch_dev_register'
last.c:(.text+0x311d4): undefined reference to `switch_dev_unregister'
last.c:(.text+0x311f0): undefined reference to `switch_dev_unregister'
sound/built-in.o: In function `earphone_switch_work':
last.c:(.text+0x31b84): undefined reference to `switch_set_state'
sound/built-in.o: In function `gpio_switch_remove':
last.c:(.devexit.text+0x78): undefined reference to `switch_dev_unregister'
Makefile:873: recipe for target '.tmp_vmlinux1' failed
make: *** [.tmp_vmlinux1] Error 1
离线
搜索一下看switch_dev_register这个函数在哪个文件实现了,然后开启那个编译开关
离线