[Android Software/Hacking General [Developers Only]] presidentccj:
I encountered the same problem

LD .tmp_vmlinux1
arch/arm/mach-msm/built-in.o: In function `parse_tag_msm_partition':
/root/android/kernel/cm-kernel/arch/arm/mach-msm/nand_partitions.c:126: undefined reference to `msm_nand_data'
arch/arm/mach-msm/built-in.o: In function `sapphire_map_io':
/root/android/kernel/cm-kernel/arch/arm/mach-msm/board-sapphire.c:1282: undefined reference to `msm_num_clocks_7x01a'
/root/android/kernel/cm-kernel/arch/arm/mach-msm/board-sapphire.c:1282: undefined reference to `msm_clocks_7x01a'
arch/arm/mach-msm/built-in.o: In function `sapphire_init':
/root/android/kernel/cm-kernel/arch/arm/mach-msm/board-sapphire.c:1186: undefined reference to `msm_device_uart3'
/root/android/kernel/cm-kernel/arch/arm/mach-msm/board-sapphire.c:1186: undefined reference to `msm_device_uart_dm1'
arch/arm/mach-msm/built-in.o: In function `sapphire_init_panel':
/root/android/kernel/cm-kernel/arch/arm/mach-msm/board-sapphire-panel.c:1268: undefined reference to `msm_device_mdp'
/root/android/kernel/cm-kernel/arch/arm/mach-msm/board-sapphire-panel.c:1268: undefined reference to `msm_device_mddi0'
arch/arm/mach-msm/built-in.o: In function `sapphire_init_mmc':
/root/android/kernel/cm-kernel/arch/arm/mach-msm/board-sapphire-mmc.c:352: undefined reference to `msm_add_sdcc'
/root/android/kernel/cm-kernel/arch/arm/mach-msm/board-sapphire-mmc.c:355: undefined reference to `msm_add_sdcc'
arch/arm/mach-msm/built-in.o: In function `msm_add_usb_devices':
/root/android/kernel/cm-kernel/arch/arm/mach-msm/devices_htc.c:206: undefined reference to `msm_device_hsusb'
arch/arm/mach-msm/built-in.o:(.init.data+0xb0): undefined reference to `msm_device_smd'
arch/arm/mach-msm/built-in.o:(.init.data+0xb4): undefined reference to `msm_device_nand'
arch/arm/mach-msm/built-in.o:(.init.data+0xb8): undefined reference to `msm_device_i2c'
arch/arm/mach-msm/built-in.o:(.init.data+0xbc): undefined reference to `msm_device_uart1'
arch/arm/mach-msm/built-in.o:(.init.data+0xc0): undefined reference to `msm_device_uart_dm1'
drivers/built-in.o: In function `upload_ls_table':
/root/android/kernel/cm-kernel/drivers/input/misc/cm3602_lightsensor_microp.c:111: undefined reference to `microp_i2c_write'
drivers/built-in.o: In function `ls_microp_intr_enable':
/root/android/kernel/cm-kernel/drivers/input/misc/cm3602_lightsensor_microp.c:187: undefined reference to `microp_i2c_write'
/root/android/kernel/cm-kernel/drivers/input/misc/cm3602_lightsensor_microp.c:189: undefined reference to `microp_write_interrupt'
drivers/built-in.o: In function `ls_enable_show':
/root/android/kernel/cm-kernel/drivers/input/misc/cm3602_lightsensor_microp.c:396: undefined reference to `microp_i2c_read'
drivers/built-in.o: In function `get_ls_adc_level':
/root/android/kernel/cm-kernel/drivers/input/misc/cm3602_lightsensor_microp.c:129: undefined reference to `microp_read_adc'
drivers/built-in.o: In function `lightsensor_probe':
/root/android/kernel/cm-kernel/drivers/input/misc/cm3602_lightsensor_microp.c:522: undefined reference to `get_microp_client'
drivers/built-in.o: In function `curcial_oj_register_read':
/root/android/kernel/cm-kernel/drivers/input/opticaljoystick/curcial.c:115: undefined reference to `microp_i2c_write'
/root/android/kernel/cm-kernel/drivers/input/opticaljoystick/curcial.c:116: undefined reference to `microp_i2c_read'
drivers/built-in.o: In function `curcial_oj_polling_mode':
/root/android/kernel/cm-kernel/drivers/input/opticaljoystick/curcial.c:135: undefined reference to `microp_i2c_write'
drivers/built-in.o: In function `curcial_oj_early_suspend':
/root/android/kernel/cm-kernel/drivers/input/opticaljoystick/curcial.c:592: undefined reference to `microp_spi_vote_enable'
drivers/built-in.o: In function `curcial_oj_init':
/root/android/kernel/cm-kernel/drivers/input/opticaljoystick/curcial.c:151: undefined reference to `microp_i2c_read'
/root/android/kernel/cm-kernel/drivers/input/opticaljoystick/curcial.c:165: undefined reference to `microp_spi_vote_enable'
/root/android/kernel/cm-kernel/drivers/input/opticaljoystick/curcial.c:172: undefined reference to `microp_i2c_write'
/root/android/kernel/cm-kernel/drivers/input/opticaljoystick/curcial.c:199: undefined reference to `microp_i2c_write'
drivers/built-in.o: In function `curcial_oj_late_resume':
/root/android/kernel/cm-kernel/drivers/input/opticaljoystick/curcial.c:603: undefined reference to `microp_spi_vote_enable'
drivers/built-in.o: In function `curcial_oj_burst_read':
/root/android/kernel/cm-kernel/drivers/input/opticaljoystick/curcial.c:126: undefined reference to `microp_i2c_write'
/root/android/kernel/cm-kernel/drivers/input/opticaljoystick/curcial.c:127: undefined reference to `microp_i2c_read'
drivers/built-in.o: In function `curcial_oj_remove':
/root/android/kernel/cm-kernel/drivers/input/opticaljoystick/curcial.c:721: undefined reference to `microp_spi_vote_enable'
drivers/built-in.o: In function `curcial_oj_probe':
/root/android/kernel/cm-kernel/drivers/input/opticaljoystick/curcial.c:691: undefined reference to `microp_spi_vote_enable'
make: *** [.tmp_vmlinux1] error 1