Hi Fangrui, FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: fa02fcd94b0c8dff6cc65714510cf25ad194b90d commit: ca9b31f6bb9c6aa9b4e5f0792f39a97bbffb8c51 Makefile: Fix GCC_TOOLCHAIN_DIR prefix for Clang cross compilation date: 4 months ago config: arm-randconfig-r032-20201126 (attached as .config) compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 175ebad958a0ebaf6c56c20ab30b9d4347742c29) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install arm cross compiling tool for clang build # apt-get install binutils-arm-linux-gnueabi # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ca9b31f6bb9c6aa9b4e5f0792f39a97bbffb8c51 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout ca9b31f6bb9c6aa9b4e5f0792f39a97bbffb8c51 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <l...@intel.com> All errors (new ones prefixed by >>): In file included from arch/arm/kernel/asm-offsets.c:11: In file included from include/linux/sched.h:12: In file included from ./arch/arm/include/generated/asm/current.h:1: In file included from include/asm-generic/current.h:5: In file included from include/linux/thread_info.h:38: In file included from arch/arm/include/asm/thread_info.h:14: In file included from arch/arm/include/asm/page.h:160: In file included from arch/arm/include/asm/memory.h:19: >> arch/arm/mach-footbridge/include/mach/memory.h:50:2: error: "Undefined >> footbridge mode" #error "Undefined footbridge mode" ^ In file included from arch/arm/kernel/asm-offsets.c:13: include/linux/dma-mapping.h:819:9: warning: implicit conversion from 'unsigned long long' to 'unsigned long' changes value from 18446744073709551615 to 4294967295 [-Wconstant-conversion] return DMA_BIT_MASK(32); ~~~~~~ ^~~~~~~~~~~~~~~~ include/linux/dma-mapping.h:139:40: note: expanded from macro 'DMA_BIT_MASK' #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1)) ^~~~~ 1 warning and 1 error generated. make[2]: *** [scripts/Makefile.build:114: arch/arm/kernel/asm-offsets.s] Error 1 make[2]: Target '__build' not remade because of errors. make[1]: *** [Makefile:1175: prepare0] Error 2 make[1]: Target 'prepare' not remade because of errors. make: *** [Makefile:185: __sub-make] Error 2 make: Target 'prepare' not remade because of errors. vim +50 arch/arm/mach-footbridge/include/mach/memory.h ^1da177e4c3f415 include/asm-arm/arch-ebsa285/memory.h Linus Torvalds 2005-04-16 49 ^1da177e4c3f415 include/asm-arm/arch-ebsa285/memory.h Linus Torvalds 2005-04-16 @50 #error "Undefined footbridge mode" ^1da177e4c3f415 include/asm-arm/arch-ebsa285/memory.h Linus Torvalds 2005-04-16 51 :::::: The code at line 50 was first introduced by commit :::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2 :::::: TO: Linus Torvalds <torva...@ppc970.osdl.org> :::::: CC: Linus Torvalds <torva...@ppc970.osdl.org> --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org
.config.gz
Description: application/gzip