reproduce: # apt-get install sparse # sparse version: v0.6.4-47-g365b9520-dirty # https://github.com/ls-zhu/linux/commit/d111994fe80fd5a91e4677d6e7e624b10de7b66e git remote add ls-zhu https://github.com/ls-zhu/linux git fetch --no-tags ls-zhu test git checkout d111994fe80fd5a91e4677d6e7e624b10de7b66e # save the config file mkdir build_dir && cp config build_dir/.config make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__ -fmax-errors=unlimited -fmax-warnings=unlimited' O=build_dir ARCH=x86_64 olddefconfig make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__ -fmax-errors=unlimited -fmax-warnings=unlimited' O=build_dir ARCH=x86_64 SHELL=/bin/bash ./ arch/x86/kvm/ arch/x86/virt/vmx/tdx/ virt/