reproduce (this is a W=1 build): # https://github.com/jcmvbkbc/linux-xtensa/commit/c10968c5b4327b1c4ad9b901192f78349104ef59 git remote add jcmvbkbc-xtensa https://github.com/jcmvbkbc/linux-xtensa git fetch --no-tags jcmvbkbc-xtensa xtensa-6.11-esp32 git checkout c10968c5b4327b1c4ad9b901192f78349104ef59 # save the config file mkdir build_dir && cp config build_dir/.config make W=1 O=build_dir ARCH=x86_64 olddefconfig make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/misc/ kernel/events/