reproduce: # apt-get install sparse # sparse version: v0.6.4-66-g0196afe1-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/legion/linux.git/commit/?id=784438040507c68171fd2c47597f8ab85c8e6ab8 git remote add legion https://git.kernel.org/pub/scm/linux/kernel/git/legion/linux.git git fetch --no-tags legion patchset/cons-font-info/v1.0 git checkout 784438040507c68171fd2c47597f8ab85c8e6ab8 # 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