reproduce: git clone https://github.com/intel/lkp-tests.git ~/lkp-tests # apt-get install sparse # sparse version: v0.6.4-66-g0196afe1 # https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git/commit/?id=1c2cb4152270681e66c4db7415254ca450068b22 git remote add driver-core https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git git fetch --no-tags driver-core const_driver git checkout 1c2cb4152270681e66c4db7415254ca450068b22 # save the config file mkdir build_dir && cp config build_dir/.config ~/lkp-tests/kbuild/make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__ -fmax-errors=unlimited -fmax-warnings=unlimited' O=build_dir ARCH=mips olddefconfig ~/lkp-tests/kbuild/make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__ -fmax-errors=unlimited -fmax-warnings=unlimited' O=build_dir ARCH=mips SHELL=/bin/bash drivers/bus/