Compile Error After Update Kernel Config

I compiled the linux kernel for my milk-v duo 256M board. After I added Joystick driver to the Linux Kernel Setting and saved .config to defconfig. I can not build linux kernel successfully.

The Error Message as below:

/home/work/linux_5.10/drivers/usb/dwc2/hcd_intr.c: In function ‘dwc2_hc_chhltd_intr_dma’:
/home/work/linux_5.10/drivers/usb/dwc2/hcd_intr.c:1988:4: error: expected ‘}’ before ‘else’
1988 | } else {
| ^~~~

1 Like

$ tail -n +1987 linux_5.10/drivers/usb/dwc2/hcd_intr.c | head -n 2

	} else {

Must be some corruption on your side. Just delete the | symbol on line 1988.

Thanks for your reply. I solved the problem and I can use the wireless joystick on the my Milkv DuoS board now.

1 Like