tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: f76349cf41451c5c42a99f18a9163377e4b364ff commit: b83a908498d68fafca931e1276e145b339cac5fb compiler_attributes.h: move __compiletime_{error|warning} date: 1 year, 1 month ago config: powerpc-randconfig-r022-20220926 compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 791a7ae1ba3efd6bca96338e10ffde557ba83920) 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 powerpc cross compiling tool for clang build # apt-get install binutils-powerpc-linux-gnu # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b83a908498d68fafca931e1276e145b339cac5fb git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout b83a908498d68fafca931e1276e145b339cac5fb # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=powerpc SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from arch/powerpc/kernel/module.c:7: In file included from include/linux/elf.h:6: In file included from arch/powerpc/include/asm/elf.h:8: In file included from include/linux/sched.h:14: In file included from include/linux/pid.h:5: In file included from include/linux/rculist.h:10: In file included from include/linux/list.h:9: In file included from include/linux/kernel.h:12: In file included from include/linux/bitops.h:32: In file included from arch/powerpc/include/asm/bitops.h:62: arch/powerpc/include/asm/barrier.h:49:9: warning: '__lwsync' macro redefined [-Wmacro-redefined] #define __lwsync() __asm__ __volatile__ (stringify_in_c(LWSYNC) : : :"memory") ^ :323:9: note: previous definition is here #define __lwsync __builtin_ppc_lwsync ^ >> arch/powerpc/kernel/module.c:111:2: error: call to __compiletime_assert_232 declared with 'error' attribute: BUILD_BUG_ON failed: TASK_SIZE > MODULES_VADDR BUILD_BUG_ON(TASK_SIZE > MODULES_VADDR); ^ include/linux/build_bug.h:50:2: note: expanded from macro 'BUILD_BUG_ON' BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) ^ include/linux/build_bug.h:39:37: note: expanded from macro 'BUILD_BUG_ON_MSG' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ include/linux/compiler_types.h:322:2: note: expanded from macro 'compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ include/linux/compiler_types.h:310:2: note: expanded from macro '_compiletime_assert' __compiletime_assert(condition, msg, prefix, suffix) ^ include/linux/compiler_types.h:303:4: note: expanded from macro '__compiletime_assert' prefix ## suffix(); \ ^ :119:1: note: expanded from here __compiletime_assert_232 ^ 1 warning and 1 error generated. vim +/error +111 arch/powerpc/kernel/module.c 2ec13df167040c Christophe Leroy 2021-04-01 104 7fbc22ce299316 Christophe Leroy 2020-06-29 105 void *module_alloc(unsigned long size) 7fbc22ce299316 Christophe Leroy 2020-06-29 106 { 8abddd968a303d Nicholas Piggin 2021-05-03 107 #ifdef MODULES_VADDR 2ec13df167040c Christophe Leroy 2021-04-01 108 unsigned long limit = (unsigned long)_etext - SZ_32M; 2ec13df167040c Christophe Leroy 2021-04-01 109 void *ptr = NULL; 2ec13df167040c Christophe Leroy 2021-04-01 110 7fbc22ce299316 Christophe Leroy 2020-06-29 @111 BUILD_BUG_ON(TASK_SIZE > MODULES_VADDR); :::::: The code at line 111 was first introduced by commit :::::: 7fbc22ce29931630da200cfc90fe5a454f54a794 powerpc: Use MODULES_VADDR if defined :::::: TO: Christophe Leroy :::::: CC: Michael Ellerman -- 0-DAY CI Kernel Test Service https://01.org/lkp