Hello,
I have tried compile kernel several times, using https://wiki.radxa.com/Rockpi4/dev/kernel-4.4 and https://wiki.radxa.com/Rockpi4/dev/Debian instructions on ubuntu server x86-64, i get the same error in drivers section:
CC [M] drivers/headset_observe/rockchip_headset_core.o
CC kernel/module.o
CC [M] drivers/headset_observe/rk_headset.o
drivers/headset_observe/rockchip_headset_core.c:205:20: warning: ‘rockchip_headset_exit’ defined but not used [-Wunused -function]
error, forbidden warning:rockchip_headset_core.c:205
static void __exit rockchip_headset_exit(void)
^~~~~~~~~~~~~~~~~~~~~
scripts/Makefile.build:283: recipe for target ‘drivers/headset_observe/rockchip_headset_core.o’ failed
make[4]: *** [drivers/headset_observe/rockchip_headset_core.o] Error 1
make[4]: *** Waiting for unfinished jobs…
CC drivers/hid/hid-core.o
CC drivers/hid/hid-input.o
CC drivers/hid/hid-debug.o
LD drivers/hsi/clients/built-in.o
LD drivers/hsi/controllers/built-in.o
LD drivers/hsi/built-in.o
CC drivers/hwmon/hwmon.o
scripts/Makefile.build:484: recipe for target ‘drivers/headset_observe’ failed
make[3]: *** [drivers/headset_observe] Error 2
make[3]: *** Waiting for unfinished jobs…
…
LD drivers/hid/built-in.o
Makefile:1031: recipe for target ‘drivers’ failed
make[2]: *** [drivers] Error 2
scripts/package/Makefile:96: recipe for target ‘bindeb-pkg’ failed
make[1]: *** [bindeb-pkg] Error 2
Makefile:1319: recipe for target ‘bindeb-pkg’ failed
make: *** [bindeb-pkg] Error 2
using “mk-kernel.sh rockpi4b” on rockchip-bsp.git
LD drivers/gpu/drm/built-in.o
LD drivers/gpu/built-in.o
Makefile:1031: recipe for target ‘drivers’ failed
make: *** [drivers] Error 2
MAKE KERNEL IMAGE FAILED.