[Optimus One, P500 Original Android Development] DJNoXD:
Help me with compile error

I've got the following compile error on v3.x kernel:

randolf@NoXD-Notebook:~/android/kernel/icecold-kernel$ ./mka
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
CHK include/generated/compile.h
CHK kernel/config_data.h
GEN .version
CHK include/generated/compile.h
UPD include/generated/compile.h
CC init/version.o
LD init/built-in.o
LD .tmp_vmlinux1
arch/arm/mach-msm/built-in.o: In function `get_nand_partitions':
lge_pwrsink.c:(.text+0x14348): undefined reference to `msm_nand_data'
arch/arm/mach-msm/built-in.o: In function `display_panic_reason':
lge_pwrsink.c:(.text+0x53230): undefined reference to `msm_pm_flush_console'
lge_pwrsink.c:(.text+0x53288): undefined reference to `get_ram_console_buffer'
lge_pwrsink.c:(.text+0x533f4): undefined reference to `lge_set_reboot_reason'
arch/arm/mach-msm/built-in.o: In function `lock_dependencies_report':
lge_pwrsink.c:(.text+0x53c44): undefined reference to `get_ram_console_buffer'
arch/arm/mach-msm/built-in.o: In function `panic_report':
lge_pwrsink.c:(.text+0x53e8c): undefined reference to `get_ram_console_buffer'
arch/arm/mach-msm/built-in.o: In function `parse_tag_msm_partition':
lge_pwrsink.c:(.init.text+0x2070): undefined reference to `msm_nand_data'
arch/arm/mach-msm/built-in.o: In function `msm7x2x_init':
lge_pwrsink.c:(.init.text+0x3970): undefined reference to `msm_acpu_clock_init'
lge_pwrsink.c:(.init.text+0x3a1c): undefined reference to `msm_device_uart3'
arch/arm/mach-msm/built-in.o: In function `lge_add_mmc_devices':
lge_pwrsink.c:(.init.text+0x3c6c): undefined reference to `msm_add_sdcc'
lge_pwrsink.c:(.init.text+0x3cb4): undefined reference to `msm_add_sdcc'
arch/arm/mach-msm/built-in.o: In function `lge_add_lcd_devices':
lge_pwrsink.c:(.init.text+0x3df4): undefined reference to `msm_fb_register_device'
lge_pwrsink.c:(.init.text+0x3e00): undefined reference to `msm_fb_register_device'
lge_pwrsink.c:(.init.text+0x3e0c): undefined reference to `msm_fb_register_device'
arch/arm/mach-msm/built-in.o: In function `msm_add_usb_devices':
lge_pwrsink.c:(.init.text+0x44d4): undefined reference to `msm_device_otg'
lge_pwrsink.c:(.init.text+0x44e4): undefined reference to `msm_device_gadget_peripheral'
arch/arm/mach-msm/built-in.o: In function `msm_device_i2c_init':
lge_pwrsink.c:(.init.text+0x45c8): undefined reference to `msm_device_i2c'
arch/arm/mach-msm/built-in.o:(.init.data+0x108): undefined reference to `msm_device_smd'
arch/arm/mach-msm/built-in.o:(.init.data+0x10c): undefined reference to `msm_device_dmov'
arch/arm/mach-msm/built-in.o:(.init.data+0x110): undefined reference to `msm_device_nand'
arch/arm/mach-msm/built-in.o:(.init.data+0x114): undefined reference to `msm_device_i2c'
arch/arm/mach-msm/built-in.o:(.init.data+0x118): undefined reference to `msm_device_uart_dm1'
arch/arm/mach-msm/built-in.o:(.init.data+0x154): undefined reference to `msm_device_otg'
arch/arm/mach-msm/built-in.o:(.init.data+0x158): undefined reference to `msm_device_gadget_peripheral'
drivers/built-in.o: In function `msm_fb_remove':
clkdev.c:(.text+0x1128c): undefined reference to `led_classdev_unregister'
drivers/built-in.o: In function `msm_fb_probe':
clkdev.c:(.text+0x128a0): undefined reference to `led_classdev_register'
drivers/built-in.o: In function `kgsl_pwrctrl_pwrrail':
clkdev.c:(.text+0x67ce0): undefined reference to `internal_pwr_rail_ctl'
clkdev.c:(.text+0x67d70): undefined reference to `internal_pwr_rail_ctl'
drivers/built-in.o: In function `kgsl_pwrctrl_init':
clkdev.c:(.text+0x684b0): undefined reference to `internal_pwr_rail_mode'
drivers/built-in.o: In function `flash_onfi_probe':
clkdev.c:(.text+0x95628): undefined reference to `msm_nand_data'
drivers/built-in.o: In function `isx005_sensor_release':
clkdev.c:(.text+0x118a48): undefined reference to `mdp_load_thunder_lut'
drivers/built-in.o: In function `isx005_sensor_init':
clkdev.c:(.text+0x118cb0): undefined reference to `mdp_load_thunder_lut'
drivers/built-in.o: In function `CPLD_LED_probe':
clkdev.c:(.text+0x142cb8): undefined reference to `led_classdev_register'
clkdev.c:(.text+0x142dd8): undefined reference to `led_classdev_unregister'
drivers/built-in.o: In function `msm_pmic_led_resume':
clkdev.c:(.text+0x142e64): undefined reference to `led_classdev_resume'
drivers/built-in.o: In function `msm_pmic_led_suspend':
clkdev.c:(.text+0x142eac): undefined reference to `led_classdev_suspend'
drivers/built-in.o: In function `msm_pmic_led_probe':
clkdev.c:(.text+0x142ecc): undefined reference to `led_classdev_register'
drivers/built-in.o: In function `aat28xx_probe':
clkdev.c:(.init.text+0xa14): undefined reference to `led_classdev_register'
drivers/built-in.o: In function `aat28xx_remove':
clkdev.c:(.devexit.text+0x20): undefined reference to `led_classdev_unregister'
drivers/built-in.o: In function `CPLD_LED_remove':
clkdev.c:(.devexit.text+0x468): undefined reference to `led_classdev_unregister'
drivers/built-in.o: In function `msm_pmic_led_remove':
clkdev.c:(.devexit.text+0x4c8): undefined reference to `led_classdev_unregister'
make: *** [.tmp_vmlinux1] Error 1

I think it the last thing that has to be fixed.