[LG Optimus 3D] lung1:
Here is the error

CROSS_COMPILE="/home/a/l/prebuilts/misc/linux-x86/ccache/ccache arm-eabi-" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= cyanogenmod_p720_defconfig
make[1]: Entering directory `/home/a/l/kernel/lge/omap4-common'
GEN /home/a/l/out/target/product/p720/obj/KERNEL_OBJ/Makefile
#
# configuration written to .config
#
make[1]: Leaving directory `/home/a/l/kernel/lge/omap4-common'
make[1]: Entering directory `/home/a/l/kernel/lge/omap4-common'
GEN /home/a/l/out/target/product/p720/obj/KERNEL_OBJ/Makefile
#
# configuration written to .config
#
make[1]: Leaving directory `/home/a/l/kernel/lge/omap4-common'
make[1]: Entering directory `/home/a/l/kernel/lge/omap4-common'
CHK include/linux/version.h
make[1]: Leaving directory `/home/a/l/kernel/lge/omap4-common'
make -C kernel/lge/omap4-common O=/home/a/l/out/target/product/p720/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/a/l/prebuilts/misc/linux-x86/ccache/ccache arm-eabi-" zImage
make[1]: Entering directory `/home/a/l/kernel/lge/omap4-common'
GEN /home/a/l/out/target/product/p720/obj/KERNEL_OBJ/Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
GEN /home/a/l/out/target/product/p720/obj/KERNEL_OBJ/Makefile
CHK include/linux/version.h
Using /home/a/l/kernel/lge/omap4-common as source for kernel
CHK include/generated/utsrelease.h
make[3]: `include/generated/mach-types.h' is up to date.
CALL /home/a/l/kernel/lge/omap4-common/scripts/checksyscalls.sh
CHK include/generated/compile.h
CC arch/arm/plat-omap/omap_dsscomp.o
make[3]: *** No rule to make target `arch/arm/plat-omap/lge_err_handler.o', needed by `arch/arm/plat-omap/built-in.o'. Stop.
make[3]: *** Waiting for unfinished jobs....
CC arch/arm/plat-omap/android-display.o
CC mm/page_io.o
CC arch/arm/mach-omap2/hsmmc.o
CC arch/arm/mach-omap2/omap_fiq_debugger.o
CC arch/arm/mach-omap2/omap4-reboot-reason.o
CC arch/arm/mach-omap2/twl_i2c.o
CC arch/arm/mach-omap2/lge/board-lg-wifi.o
CC arch/arm/mach-omap2/lge/cx2/../board-lg-wifi.o
In file included from /home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:5:0,
from /home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/android-display.h:19,
from /home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/android-display.c:27:
/home/a/l/kernel/lge/omap4-common/include/video/dsscomp.h:1:0: error: unterminated #ifndef
#ifndef _LINUX_DSSCOMP_H
^
In file included from /home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/android-display.h:19:0,
from /home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/android-display.c:27:
/home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:16:44: warning: 'struct dss2_ovl_info' declared inside parameter list [enabled by default]
int dsscomp_set_ovl(dsscomp_t comp, struct dss2_ovl_info *ovl);
^
/home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:16:44: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
/home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:17:52: warning: 'struct dss2_ovl_info' declared inside parameter list [enabled by default]
int dsscomp_get_ovl(dsscomp_t comp, u32 ix, struct dss2_ovl_info *ovl);
^
/home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:18:44: warning: 'struct dss2_mgr_info' declared inside parameter list [enabled by default]
int dsscomp_set_mgr(dsscomp_t comp, struct dss2_mgr_info *mgr);
^
/home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:19:44: warning: 'struct dss2_mgr_info' declared inside parameter list [enabled by default]
int dsscomp_get_mgr(dsscomp_t comp, struct dss2_mgr_info *mgr);
^
/home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:21:11: warning: 'struct dss2_rect_t' declared inside parameter list [enabled by default]
struct dss2_rect_t win);
^
/home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:21:11: warning: 'enum dsscomp_setup_mode' declared inside parameter list [enabled by default]
/home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:29:4: warning: 'struct dsscomp_setup_dispc_data' declared inside parameter list [enabled by default]
void (*cb_fn)(void *, int), void *cb_arg);
^
make[3]: *** [arch/arm/plat-omap/android-display.o] Error 1
CC arch/arm/mach-omap2/lge/cx2/cx2_i2c.o
In file included from /home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/omap_dsscomp.c:29:0:
/home/a/l/kernel/lge/omap4-common/include/video/dsscomp.h:1:0: error: unterminated #ifndef
#ifndef _LINUX_DSSCOMP_H
^
In file included from /home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:5:0,
from /home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/omap_dsscomp.c:30:
/home/a/l/kernel/lge/omap4-common/include/video/dsscomp.h:1:0: error: unterminated #ifndef
#ifndef _LINUX_DSSCOMP_H
^
In file included from /home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/omap_dsscomp.c:30:0:
/home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:16:44: warning: 'struct dss2_ovl_info' declared inside parameter list [enabled by default]
int dsscomp_set_ovl(dsscomp_t comp, struct dss2_ovl_info *ovl);
^
/home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:16:44: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
/home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:17:52: warning: 'struct dss2_ovl_info' declared inside parameter list [enabled by default]
int dsscomp_get_ovl(dsscomp_t comp, u32 ix, struct dss2_ovl_info *ovl);
^
/home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:18:44: warning: 'struct dss2_mgr_info' declared inside parameter list [enabled by default]
int dsscomp_set_mgr(dsscomp_t comp, struct dss2_mgr_info *mgr);
^
/home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:19:44: warning: 'struct dss2_mgr_info' declared inside parameter list [enabled by default]
int dsscomp_get_mgr(dsscomp_t comp, struct dss2_mgr_info *mgr);
^
/home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:21:11: warning: 'struct dss2_rect_t' declared inside parameter list [enabled by default]
struct dss2_rect_t win);
^
/home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:21:11: warning: 'enum dsscomp_setup_mode' declared inside parameter list [enabled by default]
/home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:29:4: warning: 'struct dsscomp_setup_dispc_data' declared inside parameter list [enabled by default]
void (*cb_fn)(void *, int), void *cb_arg);
^
make[3]: *** [arch/arm/plat-omap/omap_dsscomp.o] Error 1
make[2]: *** [arch/arm/plat-omap] Error 2
make[2]: *** Waiting for unfinished jobs....
../../../../../../kernel/lge/omap4-common/mm/page_io.c: In function 'end_swap_bio_read':
../../../../../../kernel/lge/omap4-common/mm/page_io.c:96:3: error: implicit declaration of function 'page_swap_info' [-Werror=implicit-function-declaration]
sis = page_swap_info(page);
^
../../../../../../kernel/lge/omap4-common/mm/page_io.c:96:7: warning: assignment makes pointer from integer without a cast [enabled by default]
sis = page_swap_info(page);
^
cc1: some warnings being treated as errors
make[3]: *** [mm/page_io.o] Error 1
make[2]: *** [mm] Error 2
CC arch/arm/mach-omap2/omap_ram_console.o
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/hsmmc.c:337:35: error: 'SDIO_VENDOR_ID_TI' undeclared here (not in a function)
.vendor = SDIO_VENDOR_ID_TI,
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/hsmmc.c:338:35: error: 'SDIO_DEVICE_ID_TI_WL12xx' undeclared here (not in a function)
.device = SDIO_DEVICE_ID_TI_WL12xx,
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/hsmmc.c: In function 'omap_hsmmc_pdata_init':
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/hsmmc.c:519:25: error: implicit declaration of function 'machine_is_omap_4430sdp' [-Werror=implicit-function-declaration]
if (machine_is_omap_4430sdp())
^
cc1: some warnings being treated as errors
make[3]: *** [arch/arm/mach-omap2/hsmmc.o] Error 1
make[3]: *** Waiting for unfinished jobs....
CC drivers/mfd/twl-core.o
CC drivers/mfd/twl4030-irq.o
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/cx2/cx2_i2c.c:720:2: error: unknown field 'gpio_mhl' specified in initializer
.gpio_mhl = GPIO_MHL_SEL,
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/cx2/cx2_i2c.c:720:2: warning: excess elements in struct initializer [enabled by default]
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/cx2/cx2_i2c.c:720:2: warning: (near initialization for 'muic_pdata') [enabled by default]
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/cx2/cx2_i2c.c:721:2: error: unknown field 'gpio_ifx_vbus' specified in initializer
.gpio_ifx_vbus = GPIO_IFX_USB_VBUS_EN,
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/cx2/cx2_i2c.c:721:2: warning: excess elements in struct initializer [enabled by default]
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/cx2/cx2_i2c.c:721:2: warning: (near initialization for 'muic_pdata') [enabled by default]
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/cx2/cx2_i2c.c: In function 'lge_i2c_init':
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/cx2/cx2_i2c.c:906:6: warning: unused variable 'fixed_rev' [-Wunused-variable]
int fixed_rev = 0;
^
make[5]: *** [arch/arm/mach-omap2/lge/cx2/cx2_i2c.o] Error 1
make[4]: *** [arch/arm/mach-omap2/lge/cx2] Error 2
make[3]: *** [arch/arm/mach-omap2/lge] Error 2
make[2]: *** [arch/arm/mach-omap2] Error 2
CC drivers/mfd/twl6030-irq.o
CC drivers/muic/muic_class.o
CC drivers/input/touchscreen/touch_synaptics_s3000.o
CC drivers/mfd/twl4030-power.o
CC drivers/mfd/twl6030-pwm.o
CC drivers/muic/muic_client_class.o
CC drivers/mtd/mtdcore.o
CC drivers/muic/dp3t.o
CC drivers/mtd/mtdsuper.o
CC drivers/net/mii.o
CC drivers/net/ks8851.o
CC drivers/net/Space.o
CC drivers/muic/usif.o
CC drivers/mtd/mtdconcat.o
LD drivers/nfc/built-in.o
CC drivers/muic/fota.o
../../../../../../kernel/lge/omap4-common/drivers/muic/usif.c: In function 'usif_switch_ctrl':
../../../../../../kernel/lge/omap4-common/drivers/muic/usif.c:175:3: warning: 'return' with a value, in function returning void [enabled by default]
return 1;
^
CC drivers/net/loopback.o
CC drivers/muic/muic_tsu5611.o
LD drivers/platform/built-in.o
CC drivers/net/ppp_generic.o
CC drivers/muic/muic_tsu5611_cx2.o
CC drivers/power/power_supply_core.o
CC drivers/mtd/mtdpart.o
CC drivers/net/ppp_async.o
CC drivers/regulator/core.o
CC drivers/net/ppp_synctty.o
CC drivers/mtd/mtdchar.o
CC drivers/net/ppp_deflate.o
CC drivers/omap_hsi/xmd-tty.o
CC drivers/net/bsd_comp.o
CC drivers/net/ppp_mppe.o
CC drivers/mtd/mtd_blkdevs.o
CC drivers/net/pppox.o
CC drivers/mtd/mtdblock.o
CC drivers/omap_hsi/xmd-rmnet.o
CC drivers/regulator/dummy.o
CC drivers/regulator/fixed.o
CC drivers/omap_hsi/xmd-hsi-mcm.o
../../../../../../kernel/lge/omap4-common/drivers/mfd/twl-core.c: In function 'add_children':
../../../../../../kernel/lge/omap4-common/drivers/mfd/twl-core.c:708:13: error: 'struct twl4030_bci_platform_data' has no member named 'errata'
pdata->bci->errata = errata;
^
../../../../../../kernel/lge/omap4-common/drivers/mfd/twl-core.c: In function 'twl_probe':
../../../../../../kernel/lge/omap4-common/drivers/mfd/twl-core.c:1423:15: error: 'TWL6032_ERRATA_DB00119490' undeclared (first use in this function)
errata |= TWL6032_ERRATA_DB00119490;
^
../../../../../../kernel/lge/omap4-common/drivers/mfd/twl-core.c:1423:15: note: each undeclared identifier is reported only once for each function it appears in
make[4]: *** [drivers/mfd/twl-core.o] Error 1
make[4]: *** Waiting for unfinished jobs....
CC drivers/omap_hsi/xmd_hsi_mem.o
CC drivers/net/pppoe.o
CC drivers/mtd/chips/chipreg.o
CC drivers/net/pppolac.o
CC drivers/omap_hsi/xmd-hsi-ll.o
CC drivers/regulator/twl-regulator.o
CC drivers/omap_hsi/hsi_driver.o
LD drivers/mtd/chips/built-in.o
CC drivers/net/pppopns.o
LD drivers/mtd/devices/built-in.o
CC drivers/omap_hsi/hsi_driver_dma.o
CC drivers/net/slhc.o
CC drivers/omap_hsi/hsi_driver_int.o
CC drivers/remoteproc/remoteproc.o
LD drivers/mtd/lpddr/built-in.o
LD drivers/mtd/maps/built-in.o
CC drivers/net/tun.o
CC drivers/remoteproc/omap_remoteproc.o
CC drivers/omap_hsi/hsi_driver_if.o
CC drivers/mtd/nand/nand_ids.o
CC drivers/omap_hsi/hsi_driver_bus.o
../../../../../../kernel/lge/omap4-common/drivers/input/touchscreen/touch_synaptics_s3000.c: In function 'synaptics_ts_get_data':
../../../../../../kernel/lge/omap4-common/drivers/input/touchscreen/touch_synaptics_s3000.c:254:33: error: 'struct t_data' has no member named 'status'
data->curr_data[finger_index].status = FINGER_PRESSED;
^
../../../../../../kernel/lge/omap4-common/drivers/input/touchscreen/touch_synaptics_s3000.c:254:43: error: 'FINGER_PRESSED' undeclared (first use in this function)
data->curr_data[finger_index].status = FINGER_PRESSED;
^
../../../../../../kernel/lge/omap4-common/drivers/input/touchscreen/touch_synaptics_s3000.c:254:43: note: each undeclared identifier is reported only once for each function it appears in
../../../../../../kernel/lge/omap4-common/drivers/input/touchscreen/touch_synaptics_s3000.c: In function 'get_ic_info':
../../../../../../kernel/lge/omap4-common/drivers/input/touchscreen/touch_synaptics_s3000.c:414:18: error: 'struct touch_fw_info' has no member named 'ic_fw_identifier'
snprintf(fw_info->ic_fw_identifier, sizeof(fw_info->ic_fw_identifier),
^
../../../../../../kernel/lge/omap4-common/drivers/input/touchscreen/touch_synaptics_s3000.c:414:52: error: 'struct touch_fw_info' has no member named 'ic_fw_identifier'
snprintf(fw_info->ic_fw_identifier, sizeof(fw_info->ic_fw_identifier),
^
../../../../../../kernel/lge/omap4-common/drivers/input/touchscreen/touch_synaptics_s3000.c:416:18: error: 'struct touch_fw_info' has no member named 'ic_fw_version'
snprintf(fw_info->ic_fw_version, sizeof(fw_info->ic_fw_version), "%d", ts->fw_info.fw_rev);
^
../../../../../../kernel/lge/omap4-common/drivers/input/touchscreen/touch_synaptics_s3000.c:416:49: error: 'struct touch_fw_info' has no member named 'ic_fw_version'
snprintf(fw_info->ic_fw_version, sizeof(fw_info->ic_fw_version), "%d", ts->fw_info.fw_rev);
^
../../../../../../kernel/lge/omap4-common/drivers/input/touchscreen/touch_synaptics_s3000.c: In function 'synaptics_ts_fw_upgrade':
../../../../../../kernel/lge/omap4-common/drivers/input/touchscreen/touch_synaptics_s3000.c:678:35: error: 'struct touch_fw_info' has no member named 'fw_upgrade'
ret = FirmwareUpgrade(ts, fw_info->fw_upgrade.fw_path);
^
../../../../../../kernel/lge/omap4-common/drivers/input/touchscreen/touch_synaptics_s3000.c: At top level:
../../../../../../kernel/lge/omap4-common/drivers/input/touchscreen/touch_synaptics_s3000.c:761:2: warning: initialization from incompatible pointer type [enabled by default]
.data = synaptics_ts_get_data,
^
../../../../../../kernel/lge/omap4-common/drivers/input/touchscreen/touch_synaptics_s3000.c:761:2: warning: (near initialization for 'synaptics_ts_driver.data') [enabled by default]
../../../../../../kernel/lge/omap4-common/drivers/input/touchscreen/touch_synaptics_s3000.c:763:2: warning: initialization from incompatible pointer type [enabled by default]
.fw_upgrade = synaptics_ts_fw_upgrade,
^
../../../../../../kernel/lge/omap4-common/drivers/input/touchscreen/touch_synaptics_s3000.c:763:2: warning: (near initialization for 'synaptics_ts_driver.fw_upgrade') [enabled by default]
make[5]: *** [drivers/input/touchscreen/touch_synaptics_s3000.o] Error 1
make[4]: *** [drivers/input/touchscreen] Error 2
make[3]: *** [drivers/input] Error 2
make[3]: *** Waiting for unfinished jobs....
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611.c: In function 'muic_is_retain_mode':
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611.c:366:58: error: 'RETAIN_MAX' undeclared (first use in this function)
if((muic_retain_mode < NO_RETAIN)||(muic_retain_mode >= RETAIN_MAX)) {
^
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611.c:366:58: note: each undeclared identifier is reported only once for each function it appears in
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611.c: In function 'muic_process_retain_mode':
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611.c:376:58: error: 'RETAIN_MAX' undeclared (first use in this function)
if((muic_retain_mode < NO_RETAIN)||(muic_retain_mode >= RETAIN_MAX)) {
^
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611.c:386:8: error: 'BOOT_MHL' undeclared (first use in this function)
case BOOT_MHL : muic_set_mode(MUIC_MHL); break;
^
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611.c: In function 'muic_tsu5611_probe':
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611.c:794:23: error: 'struct muic_platform_data' has no member named 'gpio_mhl'
dev->gpio_mhl = pdata->gpio_mhl;
^
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611.c:795:28: error: 'struct muic_platform_data' has no member named 'gpio_ifx_vbus'
dev->gpio_ifx_vbus = pdata->gpio_ifx_vbus;
^
make[4]: *** [drivers/muic/muic_tsu5611.o] Error 1
make[4]: *** Waiting for unfinished jobs....
LD drivers/net/arm/built-in.o
CC drivers/power/power_supply_sysfs.o
CC drivers/omap_hsi/hsi_driver_gpio.o
CC drivers/omap_hsi/hsi_driver_fifo.o
CC drivers/remoteproc/rpres.o
LD drivers/mtd/nand/built-in.o
CC drivers/omap_hsi/hsi_driver_debugfs.o
CC drivers/power/twl6030_bci_battery.o
make[3]: *** [drivers/mfd] Error 2
CC drivers/power/rt9524_charger.o
LD drivers/mtd/tests/built-in.o
LD drivers/omap_hsi/omap_hsi.o
LD drivers/mtd/mtd.o
CC drivers/mtd/onenand/onenand_base.o
LD drivers/omap_hsi/ifx.o
LD drivers/omap_hsi/built-in.o
CC drivers/mtd/onenand/onenand_bbt.o
CC drivers/remoteproc/rpres_dev.o
LD drivers/mtd/onenand/onenand.o
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c:82:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
extern void android_USB_disconnect();// for usb disconnect event
^
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c: In function 'muic_set_ap_usb_mode':
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c:225:3: warning: format '%d' expects argument of type 'int', but argument 3 has type 'struct i2c_client *' [-Wformat=]
printk("muic %s, client : %d", __func__, client);
^
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c: In function 'muic_process_retention_mode':
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c:312:12: error: 'BOOT_MHL' undeclared (first use in this function)
}else if (BOOT_MHL == muic_retain_mode){
^
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c:312:12: note: each undeclared identifier is reported only once for each function it appears in
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c: In function 'muic_tsu5611_detect_accessory':
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c:429:6: warning: unused variable 'loop' [-Wunused-variable]
s32 loop = 0;
^
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c: In function 'muic_int_stat':
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c:672:43: warning: backslash and newline separated by space [enabled by default]
(id_register_value == IDNO_1001) || \
^
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c: In function 'muic_int_stat_read':
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c:718:2: warning: passing argument 3 of 'muic_i2c_read_byte' from incompatible pointer type [enabled by default]
ret = muic_i2c_read_byte(client, INT_STATUS1, &value);
^
In file included from ../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c:39:0:
../../../../../../kernel/lge/omap4-common/include/linux/muic/muic.h:136:5: note: expected 'u8 *' but argument is of type 'u32 *'
s32 muic_i2c_read_byte(struct i2c_client *client, u8 addr, u8 *value);
^
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c: At top level:
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c:732:2: warning: initialization from incompatible pointer type [enabled by default]
.read_int_state = muic_int_stat_read,
^
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c:732:2: warning: (near initialization for 'muic_dev.read_int_state') [enabled by default]
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c: In function 'tsu5611_probe':
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c:766:23: error: 'struct muic_platform_data' has no member named 'gpio_mhl'
dev->gpio_mhl = pdata->gpio_mhl;
^
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c:767:28: error: 'struct muic_platform_data' has no member named 'gpio_ifx_vbus'
dev->gpio_ifx_vbus = pdata->gpio_ifx_vbus;
^
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c: In function 'muic_set_mhl_mode':
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c:139:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
make[4]: *** [drivers/muic/muic_tsu5611_cx2.o] Error 1
make[3]: *** [drivers/muic] Error 2
LD drivers/mtd/onenand/built-in.o
LD drivers/mtd/built-in.o
CC drivers/net/wireless/bcmdhd/src/bcmsdio/sys/bcmsdh.o
CC drivers/net/wireless/bcmdhd/src/bcmsdio/sys/bcmsdh_linux.o
CC drivers/net/wireless/bcmdhd/src/bcmsdio/sys/bcmsdh_sdmmc.o
CC drivers/net/wireless/bcmdhd/src/bcmsdio/sys/bcmsdh_sdmmc_linux.o
CC drivers/net/wireless/bcmdhd/src/dhd/sys/dhd_cdc.o
CC drivers/net/wireless/bcmdhd/src/dhd/sys/dhd_common.o
CC drivers/net/wireless/bcmdhd/src/dhd/sys/dhd_custom_gpio.o
CC drivers/net/wireless/bcmdhd/src/dhd/sys/dhd_linux.o
CC drivers/net/wireless/bcmdhd/src/dhd/sys/dhd_linux_sched.o
LD drivers/power/power_supply.o
CC drivers/net/wireless/bcmdhd/src/dhd/sys/dhd_cfg80211.o
../../../../../../kernel/lge/omap4-common/drivers/power/twl6030_bci_battery.c: In function 'twl6030_bci_battery_probe':
../../../../../../kernel/lge/omap4-common/drivers/power/twl6030_bci_battery.c:2564:20: error: 'struct twl4030_bci_platform_data' has no member named 'errata'
di->errata = pdata->errata;
^
../../../../../../kernel/lge/omap4-common/drivers/power/twl6030_bci_battery.c:2640:11: error: 'struct twl4030_bci_platform_data' has no member named 'sense_resistor_mohm'
if (pdata->sense_resistor_mohm) {
^
../../../../../../kernel/lge/omap4-common/drivers/power/twl6030_bci_battery.c:2641:42: error: 'struct twl4030_bci_platform_data' has no member named 'sense_resistor_mohm'
di->current_max_scale = (62000) / pdata->sense_resistor_mohm;
^
../../../../../../kernel/lge/omap4-common/drivers/power/twl6030_bci_battery.c:2652:19: error: 'TWL6032_ERRATA_DB00119490' undeclared (first use in this function)
if (di->errata & TWL6032_ERRATA_DB00119490) {
^
../../../../../../kernel/lge/omap4-common/drivers/power/twl6030_bci_battery.c:2652:19: note: each undeclared identifier is reported only once for each function it appears in
make[4]: *** [drivers/power/twl6030_bci_battery.o] Error 1
make[3]: *** [drivers/power] Error 2
CC drivers/net/wireless/bcmdhd/src/dhd/sys/dhd_sdio.o
CC drivers/net/wireless/bcmdhd/src/shared/aiutils.o
CC drivers/net/wireless/bcmdhd/src/shared/bcmevent.o
../../../../../../kernel/lge/omap4-common/drivers/regulator/twl-regulator.c:923:29: warning: 'twl6030_external_control_pin_ops' defined but not used [-Wunused-variable]
static struct regulator_ops twl6030_external_control_pin_ops = {
^
CC drivers/net/wireless/bcmdhd/src/shared/bcmutils.o
CC drivers/net/wireless/bcmdhd/src/shared/bcmwifi/src/bcmwifi_channels.o
CC drivers/net/wireless/bcmdhd/src/shared/hndpmu.o
CC drivers/net/wireless/bcmdhd/src/shared/linux_osl.o
CC drivers/net/wireless/bcmdhd/src/shared/sbutils.o
CC drivers/net/wireless/bcmdhd/src/shared/siutils.o
CC drivers/net/wireless/bcmdhd/src/wl/sys/wl_android.o
CC drivers/net/wireless/bcmdhd/src/wl/sys/wl_cfg80211.o
CC drivers/net/wireless/bcmdhd/src/wl/sys/wl_cfgp2p.o
../../../../../../kernel/lge/omap4-common/drivers/net/wireless/bcmdhd/src/wl/sys/wl_cfg80211.c:68:0: warning: "LINUX_VERSION_CODE" redefined [enabled by default]
#define LINUX_VERSION_CODE KERNEL_VERSION(3, 4, 0)
^
In file included from ../../../../../../kernel/lge/omap4-common/drivers/net/wireless/bcmdhd/src/include/linuxver.h:31:0,
from ../../../../../../kernel/lge/omap4-common/drivers/net/wireless/bcmdhd/src/wl/sys/wl_cfg80211.c:28:
include/linux/version.h:1:0: note: this is the location of the previous definition
#define LINUX_VERSION_CODE 196639
^
CC drivers/net/wireless/bcmdhd/src/wl/sys/wldev_common.o
CC drivers/net/wireless/bcmdhd/src/wl/sys/wl_linux_mon.o
CC drivers/net/wireless/bcmdhd/src/wl/sys/wl_roam.o
../../../../../../kernel/lge/omap4-common/drivers/net/wireless/bcmdhd/src/wl/sys/wl_linux_mon.c:44:0: warning: "LINUX_VERSION_CODE" redefined [enabled by default]
#define LINUX_VERSION_CODE KERNEL_VERSION(3, 4, 0)
^
In file included from ../../../../../../kernel/lge/omap4-common/drivers/net/wireless/bcmdhd/src/include/linuxver.h:31:0,
from ../../../../../../kernel/lge/omap4-common/drivers/net/wireless/bcmdhd/src/include/linux_osl.h:165,
from ../../../../../../kernel/lge/omap4-common/drivers/net/wireless/bcmdhd/src/include/osl.h:44,
from ../../../../../../kernel/lge/omap4-common/drivers/net/wireless/bcmdhd/src/wl/sys/wl_linux_mon.c:27:
include/linux/version.h:1:0: note: this is the location of the previous definition
#define LINUX_VERSION_CODE 196639
^
LD drivers/net/wireless/bcmdhd/bcmdhd.o
LD drivers/net/wireless/bcmdhd/built-in.o
LD drivers/net/wireless/built-in.o
LD drivers/remoteproc/built-in.o
LD drivers/net/built-in.o
LD drivers/regulator/built-in.o
make[2]: *** [drivers] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/a/l/kernel/lge/omap4-common'
make: *** [TARGET_KERNEL_BINARIES] Error 2
#### make failed to build some targets (01:34 (mm:ss)) ####

I tried to copy again cx2_i2c.c but still no result.