[Galaxy S 4 Mini Android Development] BlueBear23:
The bugs attack, again!!

Hi guys, i sorry for the time out of here, but, i am taking a relax from mi work.

Really, i never thought it would be so difficult to develop a kernel.

Ok, today, i am back to the party again, and, as usual on this, i have founded a lot of bugs on my work.

I do not idea why happening this, but, i will continue working on that...

I need help with these errors

CC arch/arm/mach-msm/board-serrano-gpiomux.o
arch/arm/mach-msm/board-serrano-gpiomux.c:444:34: error: redefinition of 'nc_configs'
arch/arm/mach-msm/board-serrano-gpiomux.c:312:34: note: previous definition of 'nc_configs' was here
arch/arm/mach-msm/board-serrano-gpiomux.c:312:34: warning: 'nc_configs' defined but not used [-Wunused-variable]
error, forbidden warning: board-serrano-gpiomux.c:312
scripts/Makefile.build:307: fail in the instructions for the target 'arch/arm/mach-msm/board-serrano-gpiomux.o'
make[1]: *** [arch/arm/mach-msm/board-serrano-gpiomux.o] Error 1
Makefile:942: fail on the instructions for the target 'arch/arm/mach-msm'
make: *** [arch/arm/mach-msm] Error 2
make: *** Wait for end other tasks...

As usual, not presented alone, and, a bit time later, the other error appeared.

CC drivers/gpu/msm/kgsl_gpummu.o
In file included from include/linux/mfd/max77693.h:33:0,
from drivers/misc/max77693-muic_serrano.c:31:
include/linux/battery/sec_charger_8930.h:73:22: error: field 'info' has incomplete type
drivers/misc/max77693-muic_serrano.c:128:23: error: field 'cable_type' has incomplete type
drivers/misc/max77693-muic_serrano.c: In function 'max77693_muic_set_comp2_comn1_pass2':
drivers/misc/max77693-muic_serrano.c:202:15: error: 'AP_USB_MODE' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c:202:15: note: each undeclared identifier is reported only once for each function it appears in
drivers/misc/max77693-muic_serrano.c:205:22: error: 'CP_USB_MODE' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c:214:15: error: 'UART_PATH_AP' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c:217:22: error: 'UART_PATH_CP' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c: In function 'max77693_muic_show_usb_state':
drivers/misc/max77693-muic_serrano.c:280:7: error: 'CABLE_TYPE_USB_MUIC' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c:281:7: error: 'CABLE_TYPE_JIG_USB_OFF_MUIC' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c:282:7: error: 'CABLE_TYPE_JIG_USB_ON_MUIC' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c: In function 'max77693_muic_show_device':
drivers/misc/max77693-muic_serrano.c:300:7: error: 'CABLE_TYPE_NONE_MUIC' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c:302:7: error: 'CABLE_TYPE_USB_MUIC' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c:304:7: error: 'CABLE_TYPE_OTG_MUIC' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c:306:7: error: 'CABLE_TYPE_TA_MUIC' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c:308:7: error: 'CABLE_TYPE_DESKDOCK_MUIC' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c:310:7: error: 'CABLE_TYPE_SMARTDOCK_MUIC' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c:312:7: error: 'CABLE_TYPE_SMARTDOCK_TA_MUIC' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c:314:7: error: 'CABLE_TYPE_SMARTDOCK_USB_MUIC' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c:316:7: error: 'CABLE_TYPE_AUDIODOCK_MUIC' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c:318:7: error: 'CABLE_TYPE_CARDOCK_MUIC' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c:320:7: error: 'CABLE_TYPE_JIG_UART_OFF_MUIC' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c:322:7: error: 'CABLE_TYPE_JIG_UART_OFF_VB_MUIC' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c:324:7: error: 'CABLE_TYPE_JIG_UART_ON_MUIC' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c:326:7: error: 'CABLE_TYPE_JIG_USB_OFF_MUIC' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c:328:7: error: 'CABLE_TYPE_JIG_USB_ON_MUIC' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c:330:7: error: 'CABLE_TYPE_MHL_MUIC' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c:332:7: error: 'CABLE_TYPE_MHL_VB_MUIC' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c:334:7: error: 'CABLE_TYPE_INCOMPATIBLE_MUIC' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c: In function 'max77693_muic_show_manualsw':
drivers/misc/max77693-muic_serrano.c:353:7: error: 'AP_USB_MODE' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c:355:7: error: 'CP_USB_MODE' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c:357:7: error: 'AUDIO_MODE' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c: In function 'max77693_muic_set_manualsw':
drivers/misc/max77693-muic_serrano.c:380:30: error: 'AP_USB_MODE' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c:387:30: error: 'CP_USB_MODE' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c: In function 'max77693_muic_set_uart_sel':
drivers/misc/max77693-muic_serrano.c:588:11: error: 'UART_PATH_AP' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c:598:11: error: 'UART_PATH_CP' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c: In function 'max77693_muic_show_uart_sel':
drivers/misc/max77693-muic_serrano.c:620:7: error: 'UART_PATH_AP' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c:623:7: error: 'UART_PATH_CP' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c: In function 'max77693_muic_set_usb_path':
drivers/misc/max77693-muic_serrano.c:746:7: error: 'AP_USB_MODE' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c:753:7: error: 'AUDIO_MODE' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c:762:7: error: 'CP_USB_MODE' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c:769:7: error: 'OPEN_USB_MODE' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c:786:26: error: 'CABLE_TYPE_CARDOCK_MUIC' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c: In function 'max77693_muic_get_charging_type':
drivers/misc/max77693-muic_serrano.c:810:10: error: 'CABLE_TYPE_NONE_MUIC' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c: In function 'max77693_muic_set_charging_type':
drivers/misc/max77693-muic_serrano.c:822:28: error: 'CABLE_TYPE_NONE_MUIC' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c:822:4: error: type of formal parameter 1 is incomplete
drivers/misc/max77693-muic_serrano.c:824:4: error: type of formal parameter 1 is incomplete
drivers/misc/max77693-muic_serrano.c: In function 'max77693_muic_handle_dock_vol_key':
drivers/misc/max77693-muic_serrano.c:848:26: error: 'CABLE_TYPE_DESKDOCK_MUIC' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c: In function 'max77693_muic_attach_usb_type':
drivers/misc/max77693-muic_serrano.c:970:26: error: 'CABLE_TYPE_MHL_MUIC' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c:971:29: error: 'CABLE_TYPE_MHL_VB_MUIC' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c:978:27: error: 'CABLE_TYPE_JIG_USB_OFF_MUIC' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c:986:10: error: 'AP_USB_MODE' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c:989:27: error: 'CABLE_TYPE_JIG_USB_ON_MUIC' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c:1002:27: error: 'CABLE_TYPE_USB_MUIC' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c:1026:22: error: 'CABLE_TYPE_NONE_MUIC' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c:1038:18: error: 'USB_CABLE_ATTACHED' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c: In function 'max77693_muic_attach_dock_type':
drivers/misc/max77693-muic_serrano.c:1059:27: error: 'CABLE_TYPE_DESKDOCK_MUIC' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c:1069:10: error: 'AUDIO_MODE' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c:1076:27: error: 'CABLE_TYPE_CARDOCK_MUIC' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c:1090:27: error: 'CABLE_TYPE_AUDIODOCK_MUIC' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c:1101:11: error: 'AP_USB_MODE' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c:1105:11: error: 'OPEN_USB_MODE' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c:1113:18: error: 'USB_POWERED_HOST_ATTACHED' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c:1121:27: error: 'CABLE_TYPE_SMARTDOCK_MUIC' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c:1122:27: error: 'CABLE_TYPE_SMARTDOCK_TA_MUIC' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c:1123:27: error: 'CABLE_TYPE_SMARTDOCK_USB_MUIC' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c: In function 'max77693_muic_attach_mhl':
drivers/misc/max77693-muic_serrano.c:1172:26: error: 'CABLE_TYPE_USB_MUIC' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c:1174:18: error: 'USB_CABLE_DETACHED' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c:1181:21: error: 'CABLE_TYPE_MHL_MUIC' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c:1187:22: error: 'CABLE_TYPE_MHL_VB_MUIC' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c: In function 'max77693_muic_handle_jig_uart':
drivers/misc/max77693-muic_serrano.c:1254:7: error: variable 'prev_ct' has initializer but incomplete type
drivers/misc/max77693-muic_serrano.c:1254:23: error: storage size of 'prev_ct' isn't known
drivers/misc/max77693-muic_serrano.c:1291:22: error: 'CABLE_TYPE_JIG_UART_OFF_VB_MUIC' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c:1295:22: error: 'CABLE_TYPE_JIG_UART_OFF_MUIC' undeclared (first use in this function)
drivers/misc/max77693-muic_serrano.c:1254:23: warning: unused variable 'prev_ct' [-Wunused-variable]
error, forbidden warning: max77693-muic_serrano.c:1254
scripts/Makefile.build:307: fail on the instructions for the target 'drivers/misc/max77693-muic_serrano.o'
make[2]: *** [drivers/misc/max77693-muic_serrano.o] Error 1
make[2]: *** Waiting for end other tasks...

And other

CC drivers/gpu/msm/kgsl_iommu.o
scripts/Makefile.build:443: fail on the instructions for the target 'drivers/misc'
make[1]: *** [drivers/misc] Error 2
make[1]: *** Wait for end other tasks...

And a last

LD drivers/media/built-in.o
Makefile:942: fail on the instructions for the target 'drivers'
make: *** [drivers] Error 2

Help pls....