[T-Mobile Samsung Galaxy S II SGH-T989] ayysir:
i know man,im reading guides all week to learn more. ive been replacing the errored files with other sgs kernels forked from cm

I KEEP GETTING THIS COMPILE ERROR NEAR THE END

drivers/video/msm/smart_dimming_ea8868.c: In function 'calc_voltage_table':
drivers/video/msm/smart_dimming_ea8868.c:222: warning: missing braces around initializer
drivers/video/msm/smart_dimming_ea8868.c:222: warning: (near initialization for 'adjust_mtp[0]')
drivers/video/msm/smart_dimming_ea8868.c:232: warning: initialization from incompatible pointer type
drivers/video/msm/smart_dimming_ea8868.c:233: warning: initialization from incompatible pointer type
drivers/video/msm/smart_dimming_ea8868.c:234: warning: initialization from incompatible pointer type
drivers/video/msm/smart_dimming_ea8868.c:235: warning: initialization from incompatible pointer type
drivers/video/msm/smart_dimming_ea8868.c:236: warning: initialization from incompatible pointer type
drivers/video/msm/smart_dimming_ea8868.c:237: warning: initialization from incompatible pointer type
drivers/video/msm/smart_dimming_ea8868.c:238: warning: initialization from incompatible pointer type
drivers/video/msm/smart_dimming_ea8868.c: In function 'init_table_info':
drivers/video/msm/smart_dimming_ea8868.c:348: warning: assignment discards qualifiers from pointer target type
drivers/video/msm/smart_dimming_ea8868.c:352: warning: assignment discards qualifiers from pointer target type
drivers/video/msm/smart_dimming_ea8868.c:353: warning: assignment discards qualifiers from pointer target type
drivers/video/msm/smart_dimming_ea8868.c:354: warning: assignment discards qualifiers from pointer target type
drivers/video/msm/smart_dimming_ea8868.c: In function 'calc_gamma_table':
drivers/video/msm/smart_dimming_ea8868.c:614: warning: missing braces around initializer
drivers/video/msm/smart_dimming_ea8868.c:614: warning: (near initialization for 'gamma[0]')
drivers/video/msm/smart_dimming_ea8868.c:618: warning: initialization from incompatible pointer type
drivers/video/msm/smart_dimming_ea8868.c:619: warning: initialization from incompatible pointer type
drivers/video/msm/smart_dimming_ea8868.c:620: warning: initialization from incompatible pointer type
drivers/video/msm/smart_dimming_ea8868.c:621: warning: initialization from incompatible pointer type
drivers/video/msm/smart_dimming_ea8868.c:622: warning: initialization from incompatible pointer type
drivers/video/msm/smart_dimming_ea8868.c:623: warning: initialization from incompatible pointer type
drivers/video/msm/smart_dimming_ea8868.c:624: warning: initialization from incompatible pointer type
drivers/video/msm/lcdc_ld9040.c:65:29: error: lcdc_ld9040_seq.h: No such file or directory
drivers/video/msm/lcdc_ld9040.c:66:29: error: lcdc_ea8868_seq.h: No such file or directory
drivers/video/msm/lcdc_ld9040.c:67:32: error: mdp4_video_enhance.h: No such file or directory
drivers/video/msm/lcdc_ld9040.c:169: error: array type has incomplete element type
drivers/video/msm/lcdc_ld9040.c:178: error: array type has incomplete element type
drivers/video/msm/lcdc_ld9040.c:187: error: array type has incomplete element type
drivers/video/msm/lcdc_ld9040.c:199: error: array type has incomplete element type
drivers/video/msm/lcdc_ld9040.c:207: error: array type has incomplete element type
drivers/video/msm/lcdc_ld9040.c:216: error: array type has incomplete element type
drivers/video/msm/lcdc_ld9040.c:247: error: array type has incomplete element type
drivers/video/msm/lcdc_ld9040.c:306: error: array type has incomplete element type
drivers/video/msm/lcdc_ld9040.c:352: error: array type has incomplete element type
drivers/video/msm/lcdc_ld9040.c:400: error: array type has incomplete element type
drivers/video/msm/lcdc_ld9040.c:423: error: array type has incomplete element type
drivers/video/msm/lcdc_ld9040.c:444: error: array type has incomplete element type
drivers/video/msm/lcdc_ld9040.c:452: error: array type has incomplete element type
drivers/video/msm/lcdc_ld9040.c: In function 'setting_table_write':
drivers/video/msm/lcdc_ld9040.c:644: error: dereferencing pointer to incomplete type
drivers/video/msm/lcdc_ld9040.c:657: error: dereferencing pointer to incomplete type
drivers/video/msm/lcdc_ld9040.c:658: error: dereferencing pointer to incomplete type
drivers/video/msm/lcdc_ld9040.c:672: error: dereferencing pointer to incomplete type
drivers/video/msm/lcdc_ld9040.c:688: error: dereferencing pointer to incomplete type
drivers/video/msm/lcdc_ld9040.c:690: error: dereferencing pointer to incomplete type
drivers/video/msm/lcdc_ld9040.c:691: error: dereferencing pointer to incomplete type
drivers/video/msm/lcdc_ld9040.c: In function 'ld9040_read_mtp':
drivers/video/msm/lcdc_ld9040.c:839: error: invalid application of 'sizeof' to incomplete type 'struct setting_table'
drivers/video/msm/lcdc_ld9040.c: In function 'ld9040_disp_on':
drivers/video/msm/lcdc_ld9040.c:1144: error: invalid application of 'sizeof' to incomplete type 'struct setting_table'
drivers/video/msm/lcdc_ld9040.c:1150: error: invalid application of 'sizeof' to incomplete type 'struct setting_table'
drivers/video/msm/lcdc_ld9040.c:1165: error: invalid application of 'sizeof' to incomplete type 'struct setting_table'
drivers/video/msm/lcdc_ld9040.c:1194: error: invalid application of 'sizeof' to incomplete type 'struct setting_table'
drivers/video/msm/lcdc_ld9040.c:1198: error: invalid application of 'sizeof' to incomplete type 'struct setting_table'
drivers/video/msm/lcdc_ld9040.c: In function 'ld9040_sleep_off':
drivers/video/msm/lcdc_ld9040.c:1238: error: invalid application of 'sizeof' to incomplete type 'struct setting_table'
drivers/video/msm/lcdc_ld9040.c: In function 'ld9040_sleep_in':
drivers/video/msm/lcdc_ld9040.c:1251: error: invalid application of 'sizeof' to incomplete type 'struct setting_table'
drivers/video/msm/lcdc_ld9040.c: In function 'lcdc_ld9040_panel_off':
drivers/video/msm/lcdc_ld9040.c:1304: error: invalid application of 'sizeof' to incomplete type 'struct setting_table'
drivers/video/msm/lcdc_ld9040.c: In function 'ld9040_gamma_ctl':
drivers/video/msm/lcdc_ld9040.c:1338: error: 'lcd_ea8868_m3_table_22gamma' undeclared (first use in this function)
drivers/video/msm/lcdc_ld9040.c:1338: error: (Each undeclared identifier is reported only once
drivers/video/msm/lcdc_ld9040.c:1338: error: for each function it appears in.)
drivers/video/msm/lcdc_ld9040.c:1352: error: 'lcd_ea8868_table_22gamma' undeclared (first use in this function)
drivers/video/msm/lcdc_ld9040.c:1405: error: 'lcd_brightness_table_22gamma' undeclared (first use in this function)
drivers/video/msm/lcdc_ld9040.c: In function 'updateIndividualElvss_Table':
drivers/video/msm/lcdc_ld9040.c:1646: error: 'SEQ_INDIVIDUAL_ELVSS_UPDATE_BEGIN' undeclared (first use in this function)
drivers/video/msm/lcdc_ld9040.c:1646: error: 'SEQ_INDIVIDUAL_ELVSS_UPDATE_FINISH' undeclared (first use in this function)
drivers/video/msm/lcdc_ld9040.c:1648: error: 'SEQ_INDIVIDUAL_ELVSS' undeclared (first use in this function)
drivers/video/msm/lcdc_ld9040.c: In function 'ld9040_set_elvss':
drivers/video/msm/lcdc_ld9040.c:1676: error: 'SEQ_INDIVIDUAL_ELVSS' undeclared (first use in this function)
drivers/video/msm/lcdc_ld9040.c:1686: error: 'SEQ_M3_ELVSS_set' undeclared (first use in this function)
drivers/video/msm/lcdc_ld9040.c:1714: error: 'SEQ_SM2_ELVSS_set' undeclared (first use in this function)
drivers/video/msm/lcdc_ld9040.c: In function 'ld9040_set_acl':
drivers/video/msm/lcdc_ld9040.c:1773: error: 'ACL_cutoff_set' undeclared (first use in this function)
drivers/video/msm/lcdc_ld9040.c:1774: error: 'SEQ_ACL_ON' undeclared (first use in this function)
drivers/video/msm/lcdc_ld9040.c: In function 'ld9040_power':
drivers/video/msm/lcdc_ld9040.c:2007: error: invalid application of 'sizeof' to incomplete type 'struct setting_table'
drivers/video/msm/lcdc_ld9040.c: In function 'ld9040_early_suspend':
drivers/video/msm/lcdc_ld9040.c:2105: error: invalid application of 'sizeof' to incomplete type 'struct setting_table'
drivers/video/msm/lcdc_ld9040.c: In function 'ld9040_probe':
drivers/video/msm/lcdc_ld9040.c:2211: error: implicit declaration of function 'init_mdnie_class'
make[3]: *** [drivers/video/msm/lcdc_ld9040.o] Error 1
make[3]: *** Waiting for unfinished jobs....
CC drivers/usb/storage/karma.o
CC drivers/usb/storage/onetouch.o
make[2]: *** [drivers/video/msm] Error 2
make[1]: *** [drivers/video] Error 2
make[1]: *** Waiting for unfinished jobs....