tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git core/wip-u128 head: 31c97c3ea0503f4ba1de8de97905d7a36fcbfd2d commit: 31c97c3ea0503f4ba1de8de97905d7a36fcbfd2d [15/15] atomic: Add test cases for cmpxchg128 family config: arc-randconfig-r043-20221219 compiler: arc-elf-gcc (GCC) 12.1.0 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 # https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?id=31c97c3ea0503f4ba1de8de97905d7a36fcbfd2d git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git git fetch --no-tags peterz-queue core/wip-u128 git checkout 31c97c3ea0503f4ba1de8de97905d7a36fcbfd2d # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arc olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arc 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 include/linux/build_bug.h:5, from include/linux/init.h:5, from lib/atomic64_test.c:10: lib/atomic64_test.c: In function 'test_atomic64': >> include/linux/atomic/atomic-instrumented.h:1946:9: error: implicit declaration of function 'arch_cmpxchg64'; did you mean 'arch_cmpxchg'? [-Werror=implicit-function-declaration] 1946 | arch_cmpxchg64(__ai_ptr, __VA_ARGS__); \ | ^~~~~~~~~~~~~~ include/linux/compiler.h:78:45: note: in definition of macro 'unlikely' 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ lib/atomic64_test.c:82:9: note: in expansion of macro 'BUG_ON' 82 | BUG_ON(op(&n, ##args) != ret); \ | ^~~~~~ lib/atomic64_test.c:82:16: note: in expansion of macro 'cmpxchg64' 82 | BUG_ON(op(&n, ##args) != ret); \ | ^~ lib/atomic64_test.c:38:9: note: in expansion of macro 'TEST_ARGS_PLAIN' 38 | test(bit, op, ##args); \ | ^~~~ lib/atomic64_test.c:101:9: note: in expansion of macro 'FAMILY_TEST' 101 | FAMILY_TEST(TEST_ARGS_PLAIN, _, cmpxchg##bit, \ | ^~~~~~~~~~~ lib/atomic64_test.c:223:9: note: in expansion of macro 'CMPXCHG_FAMILY_TEST' 223 | CMPXCHG_FAMILY_TEST(64, v0, v1, v2); | ^~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors vim +1946 include/linux/atomic/atomic-instrumented.h aa525d063851a9 include/asm-generic/atomic-instrumented.h Mark Rutland 2018-09-04 1940 aa525d063851a9 include/asm-generic/atomic-instrumented.h Mark Rutland 2018-09-04 1941 #define cmpxchg64(ptr, ...) \ aa525d063851a9 include/asm-generic/atomic-instrumented.h Mark Rutland 2018-09-04 1942 ({ \ aa525d063851a9 include/asm-generic/atomic-instrumented.h Mark Rutland 2018-09-04 1943 typeof(ptr) __ai_ptr = (ptr); \ e87c4f6642f496 include/linux/atomic/atomic-instrumented.h Marco Elver 2021-11-30 1944 kcsan_mb(); \ ed8af2e4d2a71b include/asm-generic/atomic-instrumented.h Marco Elver 2020-01-21 1945 instrument_atomic_write(__ai_ptr, sizeof(*__ai_ptr)); \ aa525d063851a9 include/asm-generic/atomic-instrumented.h Mark Rutland 2018-09-04 @1946 arch_cmpxchg64(__ai_ptr, __VA_ARGS__); \ aa525d063851a9 include/asm-generic/atomic-instrumented.h Mark Rutland 2018-09-04 1947 }) b06ed71a624ba0 include/asm-generic/atomic-instrumented.h Dmitry Vyukov 2018-01-29 1948 :::::: The code at line 1946 was first introduced by commit :::::: aa525d063851a98e020b827fdd1d7776ae652301 locking/atomics: Switch to generated instrumentation :::::: TO: Mark Rutland :::::: CC: Ingo Molnar -- 0-DAY CI Kernel Test Service https://01.org/lkp