I had to edit:
lge/com_device/display/backlight_lm3537.c
It had a commented variable that it used down the line.
[HIGH]void lm3537_backlight_off(void)
{
//Kanaida - 11/29/2012: Uncommented the line below to allow build to continue
int gpio = main_lm3537_dev->gpio;[/HIGH]
lge/com_device/input/lge_touch_core.c
[HIGH]//KANAIDA - 11/29/2012 : Lets assume this is always off for now to let compiler work.
//commented line below out
// if(
key_touch_logging_status == 1)
// {
// printk(KERN_INFO "%s(), up x:%d, y:%d\n",__func__,
// ts->ts_data.prev_data[ts->ts_data.total_num].x_position,
// ts->ts_data.prev_data[ts->ts_data.total_num].y_position );
// slate_send_touch_log_packet(ts->ts_data.prev_data[ts->ts_data.total_num].x_position,
// ts->ts_data.prev_data[ts->ts_data.total_num].y_position, 0);
// }[/HIGH]
key_touch_logging_status wasn't there or something like that. I could care less. comment.
Made changes to the mpcs defconfig. Looks like LG's code is incomplete. And hopefully also isn't required
:
[HIGH]CONFIG_LGE_FACTORY=y -> n
CONFIG_LGE_SUPPORT_RAPI=y -> n
CONFIG_LGE_DIAGTEST=y -> n[/HIGH]
Commented out stupid unrelated code that wouldn't compile.
[HIGH]/kernel/drivers/char/diag/diagchar_core.c
//KANAIDA - 11/29/2012 - We don't have a sprint slate lol.. comment.
//#if 1 //SPRINT_SLATE_KEYPRESS_TEST
// else if (iocmd == DIAG_IOCTL_BULK_DATA){
// struct slate_data_buffer *mb;
// mb = (struct slate_data_buffer *)ioarg;
// mutex_lock(&driver->diagchar_mutex);
// if (!buf_hdlc)
// buf_hdlc = diagmem_alloc(driver, HDLC_OUT_BUF_SIZE, POOL_TYPE_HDLC);
//
// /* LGE_CHANGE [dojip.kim@lge.com] 2010-05-29, null check */
// if (NULL == buf_hdlc) {
// printk(KERN_ERR "%s(), buf_hdlc is NULL\n",__func__);
// mutex_unlock(&driver->diagchar_mutex);
// return -1;
// }
//
// printk(KERN_INFO "LG DIAG: alloc memory for driver_mtc->write_ptr_svc \n");
// driver->write_ptr_svc = (struct diag_request *)(diagmem_alloc(driver, sizeof(struct diag_request), POOL_TYPE_WRITE_STRUCT));
//
// /* LGE_CHANGE_S [sm.shim@lge.com] 2010-07-14, diagmem_alloc bug fix */
// if(NULL == driver->write_ptr_svc) {
// mutex_unlock(&driver->diagchar_mutex);
// return -1;
// }
// /* LGE_CHANGE_E [sm.shim@lge.com] 2010-07-14, diagmem_alloc bug fix */
//
// /* TODO: check the length, overflow? */
// memcpy(buf_hdlc, mb->data, mb->data_length);
//
// driver->write_ptr_svc->buf = buf_hdlc;
// driver->write_ptr_svc->length = mb->data_length;
//
// success = usb_diag_write(driver->legacy_ch, driver->write_ptr_svc);
// if (success) {
// /* LGE_CHANGE [dojip.kim@lge.com] 2010-06-06,
// * should free the write_ptr_svc also
// */
// if(driver->write_ptr_svc != NULL && driver->diagpool != NULL)
// {
// diagmem_free(driver, driver->write_ptr_svc, POOL_TYPE_WRITE_STRUCT);
// printk(KERN_INFO "%s(), diagmem_free, driver->write_ptr_svc\n",__func__);
// }
// else
// {
// printk(KERN_INFO "%s(), already driver->write_ptr_svc is free\n",__func__);
// }
//
// /* Free the buffer right away if write failed */
// if(driver->write_ptr_svc != NULL && driver->diagpool != NULL)
// {
// diagmem_free(driver, buf_hdlc, POOL_TYPE_HDLC);
// printk(KERN_INFO "%s(), diagmem_free, buf_hdlc\n",__func__);
// }
// else
// {
// printk(KERN_INFO "%s(), already buf_hdlc is free\n",__func__);
// }
// }
// buf_hdlc = NULL;
//
// mutex_unlock(&driver->diagchar_mutex);
// }
//#endif //SPRINT_SLATE_KEYPRESS_TEST[/HIGH]