reproduce: git clone https://github.com/intel/lkp-tests.git ~/lkp-tests # apt-get install sparse # sparse version: v0.6.4-66-g0196afe1-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git/commit/?id=c52c16d1bee5c3b074989e839eeceed2a0a8cc43 git remote add mtd https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git git fetch --no-tags mtd nand/next git checkout c52c16d1bee5c3b074989e839eeceed2a0a8cc43 # 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=riscv olddefconfig ~/lkp-tests/kbuild/make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__ -fmax-errors=unlimited -fmax-warnings=unlimited' O=build_dir ARCH=riscv SHELL=/bin/bash drivers/mtd/nand/raw/brcmnand/