orangepi-xunlong / OrangePiRK3399_kernel

Other
7 stars 15 forks source link

Image build failure #1

Open karun211 opened 5 years ago

karun211 commented 5 years ago

Hi, I'm getting the following error while trying to build. I'm using rk3399_linux_defconfig config from arch/arm64/configs , didn't make any changes in menu config.

drivers/mfd/fusb302.c: In function ‘vdm_send_discoverysvid’:
drivers/mfd/fusb302.c:1164:3: warning: ‘memset’ used with length equal to number of elements without multiplication by element size [-Wmemset-elt-size]
error, forbidden warning: fusb302.c:1164
scripts/Makefile.build:266: recipe for target 'drivers/mfd/fusb302.o' failed
scripts/Makefile.build:411: recipe for target 'drivers/mfd' failed 

At the end build fails with this message,

LD      drivers/of/built-in.o
Makefile:999: recipe for target 'drivers' failed

Any help or guidance is much appreciated.

karun211 commented 5 years ago

For anyone else that encountered similar issue, I was able to resolve by replacing fusb.c file from rockchip's repo available here