From: kernel test robot <lkp@intel.com> To: Mark Rutland <mark.rutland@arm.com>, Anatoly Pugachev <matorola@gmail.com> Cc: kbuild-all@lists.01.org, Linux Kernel list <linux-kernel@vger.kernel.org>, Sparc kernel list <sparclinux@vger.kernel.org>, debian-sparc <debian-sparc@lists.debian.org>, Peter Zijlstra <peterz@lists.infradead.org> Subject: Re: [PATCH] HACK: disable instrumentation of xchg/cmpxchg Date: Tue, 6 Jul 2021 07:18:40 +0800 [thread overview] Message-ID: <202107060727.Sr7cyjfx-lkp@intel.com> (raw) In-Reply-To: <20210705195638.GA53988@C02TD0UTHF1T.local> [-- Attachment #1: Type: text/plain, Size: 9409 bytes --] Hi Mark, I love your patch! Yet something to improve: [auto build test ERROR on linux/master] [also build test ERROR on linus/master next-20210701] [cannot apply to asm-generic/master sparc-next/master v5.13] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Mark-Rutland/HACK-disable-instrumentation-of-xchg-cmpxchg/20210706-035817 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git c54b245d011855ea91c5beff07f1db74143ce614 config: xtensa-randconfig-r035-20210705 (attached as .config) compiler: xtensa-linux-gcc (GCC) 9.3.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://github.com/0day-ci/linux/commit/077d46116045ef95775b35f74f003921cb21c955 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Mark-Rutland/HACK-disable-instrumentation-of-xchg-cmpxchg/20210706-035817 git checkout 077d46116045ef95775b35f74f003921cb21c955 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=xtensa If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@intel.com> All errors (new ones prefixed by >>): In file included from include/linux/init.h:5, from lib/atomic64_test.c:10: lib/atomic64_test.c: In function 'test_atomic': >> lib/atomic64_test.c:75:9: error: implicit declaration of function 'atomic_arch_xchg'; did you mean 'atomic_long_xchg'? [-Werror=implicit-function-declaration] 75 | BUG_ON(atomic##bit##_##op(&v, ##args) != ret); \ | ^~~~~~ include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var' 58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond)) | ^~~~ include/asm-generic/bug.h:183:32: note: in expansion of macro 'if' 183 | #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0) | ^~ include/linux/compiler.h:48:24: note: in expansion of macro '__branch_check__' 48 | # define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x))) | ^~~~~~~~~~~~~~~~ include/asm-generic/bug.h:183:36: note: in expansion of macro 'unlikely' 183 | #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0) | ^~~~~~~~ lib/atomic64_test.c:75:2: note: in expansion of macro 'BUG_ON' 75 | BUG_ON(atomic##bit##_##op(&v, ##args) != ret); \ | ^~~~~~ lib/atomic64_test.c:38:2: note: in expansion of macro 'TEST_ARGS' 38 | test(bit, op, ##args); \ | ^~~~ lib/atomic64_test.c:81:2: note: in expansion of macro 'FAMILY_TEST' 81 | FAMILY_TEST(TEST_ARGS, bit, xchg, init, init, new, new); \ | ^~~~~~~~~~~ lib/atomic64_test.c:141:2: note: in expansion of macro 'XCHG_FAMILY_TEST' 141 | XCHG_FAMILY_TEST(, v0, v1); | ^~~~~~~~~~~~~~~~ >> lib/atomic64_test.c:75:9: error: implicit declaration of function 'atomic_arch_cmpxchg'; did you mean 'atomic_try_cmpxchg'? [-Werror=implicit-function-declaration] 75 | BUG_ON(atomic##bit##_##op(&v, ##args) != ret); \ | ^~~~~~ include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var' 58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond)) | ^~~~ include/asm-generic/bug.h:183:32: note: in expansion of macro 'if' 183 | #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0) | ^~ include/linux/compiler.h:48:24: note: in expansion of macro '__branch_check__' 48 | # define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x))) | ^~~~~~~~~~~~~~~~ include/asm-generic/bug.h:183:36: note: in expansion of macro 'unlikely' 183 | #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0) | ^~~~~~~~ lib/atomic64_test.c:75:2: note: in expansion of macro 'BUG_ON' 75 | BUG_ON(atomic##bit##_##op(&v, ##args) != ret); \ | ^~~~~~ lib/atomic64_test.c:38:2: note: in expansion of macro 'TEST_ARGS' 38 | test(bit, op, ##args); \ | ^~~~ lib/atomic64_test.c:86:2: note: in expansion of macro 'FAMILY_TEST' 86 | FAMILY_TEST(TEST_ARGS, bit, cmpxchg, \ | ^~~~~~~~~~~ lib/atomic64_test.c:142:2: note: in expansion of macro 'CMPXCHG_FAMILY_TEST' 142 | CMPXCHG_FAMILY_TEST(, v0, v1, onestwos); | ^~~~~~~~~~~~~~~~~~~ lib/atomic64_test.c: In function 'test_atomic64': >> lib/atomic64_test.c:75:9: error: implicit declaration of function 'atomic64_arch_xchg'; did you mean 'atomic64_cmpxchg'? [-Werror=implicit-function-declaration] 75 | BUG_ON(atomic##bit##_##op(&v, ##args) != ret); \ | ^~~~~~ include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var' 58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond)) | ^~~~ include/asm-generic/bug.h:183:32: note: in expansion of macro 'if' 183 | #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0) | ^~ include/linux/compiler.h:48:24: note: in expansion of macro '__branch_check__' 48 | # define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x))) | ^~~~~~~~~~~~~~~~ include/asm-generic/bug.h:183:36: note: in expansion of macro 'unlikely' 183 | #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0) | ^~~~~~~~ lib/atomic64_test.c:75:2: note: in expansion of macro 'BUG_ON' 75 | BUG_ON(atomic##bit##_##op(&v, ##args) != ret); \ | ^~~~~~ lib/atomic64_test.c:38:2: note: in expansion of macro 'TEST_ARGS' 38 | test(bit, op, ##args); \ | ^~~~ lib/atomic64_test.c:81:2: note: in expansion of macro 'FAMILY_TEST' 81 | FAMILY_TEST(TEST_ARGS, bit, xchg, init, init, new, new); \ | ^~~~~~~~~~~ lib/atomic64_test.c:203:2: note: in expansion of macro 'XCHG_FAMILY_TEST' 203 | XCHG_FAMILY_TEST(64, v0, v1); | ^~~~~~~~~~~~~~~~ >> lib/atomic64_test.c:75:9: error: implicit declaration of function 'atomic64_arch_cmpxchg'; did you mean 'atomic64_try_cmpxchg'? [-Werror=implicit-function-declaration] 75 | BUG_ON(atomic##bit##_##op(&v, ##args) != ret); \ | ^~~~~~ include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var' 58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond)) | ^~~~ include/asm-generic/bug.h:183:32: note: in expansion of macro 'if' 183 | #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0) | ^~ include/linux/compiler.h:48:24: note: in expansion of macro '__branch_check__' 48 | # define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x))) | ^~~~~~~~~~~~~~~~ include/asm-generic/bug.h:183:36: note: in expansion of macro 'unlikely' 183 | #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0) | ^~~~~~~~ lib/atomic64_test.c:75:2: note: in expansion of macro 'BUG_ON' 75 | BUG_ON(atomic##bit##_##op(&v, ##args) != ret); \ | ^~~~~~ lib/atomic64_test.c:38:2: note: in expansion of macro 'TEST_ARGS' 38 | test(bit, op, ##args); \ | ^~~~ lib/atomic64_test.c:86:2: note: in expansion of macro 'FAMILY_TEST' 86 | FAMILY_TEST(TEST_ARGS, bit, cmpxchg, \ | ^~~~~~~~~~~ lib/atomic64_test.c:204:2: note: in expansion of macro 'CMPXCHG_FAMILY_TEST' 204 | CMPXCHG_FAMILY_TEST(64, v0, v1, v2); | ^~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors vim +75 lib/atomic64_test.c 28aa2bda2211f4 Peter Zijlstra 2016-04-18 71 978e5a3692c3b6 Boqun Feng 2015-11-04 72 #define TEST_ARGS(bit, op, init, ret, expect, args...) \ 978e5a3692c3b6 Boqun Feng 2015-11-04 73 do { \ 978e5a3692c3b6 Boqun Feng 2015-11-04 74 atomic##bit##_set(&v, init); \ 978e5a3692c3b6 Boqun Feng 2015-11-04 @75 BUG_ON(atomic##bit##_##op(&v, ##args) != ret); \ 978e5a3692c3b6 Boqun Feng 2015-11-04 76 BUG_ON(atomic##bit##_read(&v) != expect); \ 978e5a3692c3b6 Boqun Feng 2015-11-04 77 } while (0) 978e5a3692c3b6 Boqun Feng 2015-11-04 78 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org [-- Attachment #2: .config.gz --] [-- Type: application/gzip, Size: 29170 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com> To: kbuild-all@lists.01.org Subject: Re: [PATCH] HACK: disable instrumentation of xchg/cmpxchg Date: Tue, 06 Jul 2021 07:18:40 +0800 [thread overview] Message-ID: <202107060727.Sr7cyjfx-lkp@intel.com> (raw) In-Reply-To: <20210705195638.GA53988@C02TD0UTHF1T.local> [-- Attachment #1: Type: text/plain, Size: 9570 bytes --] Hi Mark, I love your patch! Yet something to improve: [auto build test ERROR on linux/master] [also build test ERROR on linus/master next-20210701] [cannot apply to asm-generic/master sparc-next/master v5.13] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Mark-Rutland/HACK-disable-instrumentation-of-xchg-cmpxchg/20210706-035817 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git c54b245d011855ea91c5beff07f1db74143ce614 config: xtensa-randconfig-r035-20210705 (attached as .config) compiler: xtensa-linux-gcc (GCC) 9.3.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://github.com/0day-ci/linux/commit/077d46116045ef95775b35f74f003921cb21c955 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Mark-Rutland/HACK-disable-instrumentation-of-xchg-cmpxchg/20210706-035817 git checkout 077d46116045ef95775b35f74f003921cb21c955 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=xtensa If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@intel.com> All errors (new ones prefixed by >>): In file included from include/linux/init.h:5, from lib/atomic64_test.c:10: lib/atomic64_test.c: In function 'test_atomic': >> lib/atomic64_test.c:75:9: error: implicit declaration of function 'atomic_arch_xchg'; did you mean 'atomic_long_xchg'? [-Werror=implicit-function-declaration] 75 | BUG_ON(atomic##bit##_##op(&v, ##args) != ret); \ | ^~~~~~ include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var' 58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond)) | ^~~~ include/asm-generic/bug.h:183:32: note: in expansion of macro 'if' 183 | #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0) | ^~ include/linux/compiler.h:48:24: note: in expansion of macro '__branch_check__' 48 | # define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x))) | ^~~~~~~~~~~~~~~~ include/asm-generic/bug.h:183:36: note: in expansion of macro 'unlikely' 183 | #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0) | ^~~~~~~~ lib/atomic64_test.c:75:2: note: in expansion of macro 'BUG_ON' 75 | BUG_ON(atomic##bit##_##op(&v, ##args) != ret); \ | ^~~~~~ lib/atomic64_test.c:38:2: note: in expansion of macro 'TEST_ARGS' 38 | test(bit, op, ##args); \ | ^~~~ lib/atomic64_test.c:81:2: note: in expansion of macro 'FAMILY_TEST' 81 | FAMILY_TEST(TEST_ARGS, bit, xchg, init, init, new, new); \ | ^~~~~~~~~~~ lib/atomic64_test.c:141:2: note: in expansion of macro 'XCHG_FAMILY_TEST' 141 | XCHG_FAMILY_TEST(, v0, v1); | ^~~~~~~~~~~~~~~~ >> lib/atomic64_test.c:75:9: error: implicit declaration of function 'atomic_arch_cmpxchg'; did you mean 'atomic_try_cmpxchg'? [-Werror=implicit-function-declaration] 75 | BUG_ON(atomic##bit##_##op(&v, ##args) != ret); \ | ^~~~~~ include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var' 58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond)) | ^~~~ include/asm-generic/bug.h:183:32: note: in expansion of macro 'if' 183 | #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0) | ^~ include/linux/compiler.h:48:24: note: in expansion of macro '__branch_check__' 48 | # define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x))) | ^~~~~~~~~~~~~~~~ include/asm-generic/bug.h:183:36: note: in expansion of macro 'unlikely' 183 | #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0) | ^~~~~~~~ lib/atomic64_test.c:75:2: note: in expansion of macro 'BUG_ON' 75 | BUG_ON(atomic##bit##_##op(&v, ##args) != ret); \ | ^~~~~~ lib/atomic64_test.c:38:2: note: in expansion of macro 'TEST_ARGS' 38 | test(bit, op, ##args); \ | ^~~~ lib/atomic64_test.c:86:2: note: in expansion of macro 'FAMILY_TEST' 86 | FAMILY_TEST(TEST_ARGS, bit, cmpxchg, \ | ^~~~~~~~~~~ lib/atomic64_test.c:142:2: note: in expansion of macro 'CMPXCHG_FAMILY_TEST' 142 | CMPXCHG_FAMILY_TEST(, v0, v1, onestwos); | ^~~~~~~~~~~~~~~~~~~ lib/atomic64_test.c: In function 'test_atomic64': >> lib/atomic64_test.c:75:9: error: implicit declaration of function 'atomic64_arch_xchg'; did you mean 'atomic64_cmpxchg'? [-Werror=implicit-function-declaration] 75 | BUG_ON(atomic##bit##_##op(&v, ##args) != ret); \ | ^~~~~~ include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var' 58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond)) | ^~~~ include/asm-generic/bug.h:183:32: note: in expansion of macro 'if' 183 | #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0) | ^~ include/linux/compiler.h:48:24: note: in expansion of macro '__branch_check__' 48 | # define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x))) | ^~~~~~~~~~~~~~~~ include/asm-generic/bug.h:183:36: note: in expansion of macro 'unlikely' 183 | #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0) | ^~~~~~~~ lib/atomic64_test.c:75:2: note: in expansion of macro 'BUG_ON' 75 | BUG_ON(atomic##bit##_##op(&v, ##args) != ret); \ | ^~~~~~ lib/atomic64_test.c:38:2: note: in expansion of macro 'TEST_ARGS' 38 | test(bit, op, ##args); \ | ^~~~ lib/atomic64_test.c:81:2: note: in expansion of macro 'FAMILY_TEST' 81 | FAMILY_TEST(TEST_ARGS, bit, xchg, init, init, new, new); \ | ^~~~~~~~~~~ lib/atomic64_test.c:203:2: note: in expansion of macro 'XCHG_FAMILY_TEST' 203 | XCHG_FAMILY_TEST(64, v0, v1); | ^~~~~~~~~~~~~~~~ >> lib/atomic64_test.c:75:9: error: implicit declaration of function 'atomic64_arch_cmpxchg'; did you mean 'atomic64_try_cmpxchg'? [-Werror=implicit-function-declaration] 75 | BUG_ON(atomic##bit##_##op(&v, ##args) != ret); \ | ^~~~~~ include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var' 58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond)) | ^~~~ include/asm-generic/bug.h:183:32: note: in expansion of macro 'if' 183 | #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0) | ^~ include/linux/compiler.h:48:24: note: in expansion of macro '__branch_check__' 48 | # define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x))) | ^~~~~~~~~~~~~~~~ include/asm-generic/bug.h:183:36: note: in expansion of macro 'unlikely' 183 | #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0) | ^~~~~~~~ lib/atomic64_test.c:75:2: note: in expansion of macro 'BUG_ON' 75 | BUG_ON(atomic##bit##_##op(&v, ##args) != ret); \ | ^~~~~~ lib/atomic64_test.c:38:2: note: in expansion of macro 'TEST_ARGS' 38 | test(bit, op, ##args); \ | ^~~~ lib/atomic64_test.c:86:2: note: in expansion of macro 'FAMILY_TEST' 86 | FAMILY_TEST(TEST_ARGS, bit, cmpxchg, \ | ^~~~~~~~~~~ lib/atomic64_test.c:204:2: note: in expansion of macro 'CMPXCHG_FAMILY_TEST' 204 | CMPXCHG_FAMILY_TEST(64, v0, v1, v2); | ^~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors vim +75 lib/atomic64_test.c 28aa2bda2211f4 Peter Zijlstra 2016-04-18 71 978e5a3692c3b6 Boqun Feng 2015-11-04 72 #define TEST_ARGS(bit, op, init, ret, expect, args...) \ 978e5a3692c3b6 Boqun Feng 2015-11-04 73 do { \ 978e5a3692c3b6 Boqun Feng 2015-11-04 74 atomic##bit##_set(&v, init); \ 978e5a3692c3b6 Boqun Feng 2015-11-04 @75 BUG_ON(atomic##bit##_##op(&v, ##args) != ret); \ 978e5a3692c3b6 Boqun Feng 2015-11-04 76 BUG_ON(atomic##bit##_read(&v) != expect); \ 978e5a3692c3b6 Boqun Feng 2015-11-04 77 } while (0) 978e5a3692c3b6 Boqun Feng 2015-11-04 78 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org [-- Attachment #2: config.gz --] [-- Type: application/gzip, Size: 29170 bytes --]
next prev parent reply other threads:[~2021-07-05 23:19 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-07-05 15:16 [sparc64] locking/atomic, kernel OOPS on running stress-ng Anatoly Pugachev 2021-07-05 19:56 ` Mark Rutland 2021-07-05 23:18 ` kernel test robot [this message] 2021-07-05 23:18 ` [PATCH] HACK: disable instrumentation of xchg/cmpxchg kernel test robot 2021-07-06 9:11 ` [sparc64] locking/atomic, kernel OOPS on running stress-ng Mark Rutland 2021-07-06 11:51 ` Anatoly Pugachev 2021-07-06 12:00 ` Mark Rutland 2021-07-07 7:47 ` Anatoly Pugachev 2021-07-07 8:26 ` Mark Rutland
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=202107060727.Sr7cyjfx-lkp@intel.com \ --to=lkp@intel.com \ --cc=debian-sparc@lists.debian.org \ --cc=kbuild-all@lists.01.org \ --cc=linux-kernel@vger.kernel.org \ --cc=mark.rutland@arm.com \ --cc=matorola@gmail.com \ --cc=peterz@lists.infradead.org \ --cc=sparclinux@vger.kernel.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.