Compilation error while rebuild kernel
Hi hope you're well.
I got stuck on part 6.Compile kernel source code->Compile and install on the current source code directory->make ARCH=arm uImage vmlinux dtbs LOADADDR=0xC2000040 giving an error as below. Thanks in advance!
CC drivers/usb/dwc2/core.o
CC drivers/usb/dwc2/core_intr.o
CC drivers/usb/dwc2/platform.o
CC drivers/usb/dwc2/drd.o
drivers/usb/dwc2/drd.c: In function ‘dwc2_drd_update’:
drivers/usb/dwc2/drd.c:86:35: error: ‘struct dwc2_hsotg’ has no member named ‘test_mode’; did you mean ‘dr_mode’?
if (!avalid && !bvalid && hsotg->test_mode) {
^~~~~~~~~
dr_mode
drivers/usb/dwc2/drd.c:123:4: error: implicit declaration of function ‘dwc2_hsotg_core_disconnect’; did you mean ‘dwc2_hsotg_core_connect’? [-Werror=implicit-function-declaration]
dwc2_hsotg_core_disconnect(hsotg);
^~~~~~~~~~~~~~~~~~~~~~~~~~
dwc2_hsotg_core_connect
cc1: some warnings being treated as errors
scripts/Makefile.build:303: recipe for target 'drivers/usb/dwc2/drd.o' failed
make[3]: *** [drivers/usb/dwc2/drd.o] Error 1
scripts/Makefile.build:544: recipe for target 'drivers/usb/dwc2' failed
make[2]: *** [drivers/usb/dwc2] Error 2
scripts/Makefile.build:544: recipe for target 'drivers/usb' failed
make[1]: *** [drivers/usb] Error 2
Makefile:1044: recipe for target 'drivers' failed
make: *** [drivers] Error 2
